On Mon, Nov 22, 2010 at 3:17 AM, Kevin Middleton <k...@mid-town.org> wrote:
>
> Would you mind posting a small .lyx file demonstrating the ordering of 
> FragileFrame and EndFrame? I'm trying your suggestion with LyX 2.0 beta 1 (OS 
> X), but I can't get it to work. I have added the code below to beamer.layout 
> and reconfigured LyX (not sure if this is necessary).
>
Yes, it is.


>I have a document with the Sweave module loaded and one fragile frame 
>containing some minimal Sweave code in a Chunk.
>
I don't know if it makes a difference, but I use R code in ERT.


> When I try to view, I get an error: "Missing } inserted". The operative part 
> of the log appears to be:
>
> ! Missing } inserted.
> <inserted text>
> }
> l.32 \end{frame}
>
> I have tried adding EndFrame, both inside the FragileFrame and just after it, 
> but that did not help.
>
> Any suggestions would be appreciated.
>
See attached. Document created using 2.0 beta1 on Xubuntu. Also [1]
for the PDF result. Regards
Liviu

[1] http://s000.tinyupload.com/index.php?file_id=15938587467372347593


> Thanks,
> Kevin
>
>
>> I came up with two hacks which sofar work just fine in combination
>> with the Sweave module (for R output). One usage note: you need to use
>> 'EndFrame' env before RragileFrame, when the latter comes immediately
>> after the Beamer title or after a regular Frame. Later I'll look into
>> making this a module; now you'd simply need to add this to your
>> beamer.layout.
>>
>> Regards
>> Liviu
>>
>> InsetLayout Flex:FragileFrame
>>  LyXType      custom
>>  LatexType    Environment
>>  LatexName    frame
>>  LatexParam   [fragile]
>>  Decoration   Classic
>>  MultiPar     1
>>  LabelString  "Fragile Frame"
>>  NeedProtect  0
>>  Spellcheck   1
>> End
>>
>> InsetLayout Flex:FragileTitle
>>  LyXType      custom
>>  LatexType    Command
>>  LatexName    frametitle
>>  LabelString  "Fragile Title"
>>  Decoration   Classic
>>  Spellcheck   1
>> End
>
>



-- 
Do you know how to read?
http://www.alienetworks.com/srtest.cfm
http://goodies.xfce.org/projects/applications/xfce4-dict#speed-reader
Do you know how to write?
http://garbl.home.comcast.net/~garbl/stylemanual/e.htm#e-mail

Attachment: beamer-sweave-template.lyx
Description: Binary data

Reply via email to