[R] Swaeve, Beamer and \alt

Jarrod Hadfield j.hadfield at ed.ac.uk
Sat Feb 9 18:48:14 CET 2013


Hi,

Unfortunately not, nor \begin{frame}[fragile], which does work with  
the uncover environment.

Cheers,

Jarrod
Quoting Uwe Ligges <ligges at statistik.tu-dortmund.de> on Sat, 09 Feb  
2013 18:45:39 +0100:

>
>
> On 09.02.2013 17:00, Jarrod Hadfield wrote:
>> Hi,
>>
>> I am having trouble getting \alt (or \altenv) to work with Schunk/Sinput
>> and was wondering if anybody had had success? With the slide
>>
>> \begin{frame}[fragile]\frametitle{Basic R}
>> \alt<2>{
>> <<echo=TRUE>>=
>> 2+2
>> @
>> }{
>> <<echo=TRUE, eval=FALSE>>=
>> 2+2
>> @
>> }
>> \end{frame}
>>
>> I get the error message:
>>
>>
>> ! FancyVerb Error:
>>   Extraneous input `> 2+2 \end {Sinput} \end {Schunk} ' between
>> \begin{Sinput}[
>> <key=value>] and line end
>> .
>> \FV at Error ... {FancyVerb Error:
>> \space \space #1
>> }
>>
>> which cannot be fixed using the fragile or containsverbatim options for
>> the frame.
>>
>> Thanks for any help,
>>
>>
>> Jarrod
>>
>>
>
> Untested: Does \begin{frame}[containsverbatim] help?
>
> Best,
> Uwe Ligges
>
>



-- 
The University of Edinburgh is a charitable body, registered in
Scotland, with registration number SC005336.



More information about the R-help mailing list