> You can also try to define an optional argument for Frame in the layout. We
> should do this anyway.

Simple replacement of plain with fragile does not seem to work.

Style BeginFragileFrame
 KeepEmpty         1
 LatexType         Command
 LatexName         lyxframeend{}\lyxfragileframe
 Margin            First_Dynamic
 NextNoIndent      1
 ParSkip           0
 TopSep            2.5
 BottomSep         0.5
 ParSep            0
 Align             Center
 AlignPossible     center
 LabelType         Static
 LabelBottomSep    0
 LeftMargin        M
 LabelString       "Fragile Frame "

 Font
   Series          Bold
   Size            Largest
   Color           Blue
 EndFont

 LabelFont
   Family          Roman
   Color           latex
 EndFont

 Preamble
   \makeatletter
   [EMAIL PROTECTED]@lyxframestop}%
   [EMAIL PROTECTED]@ifnextchar<{\@@lyxfragileframe}{\@@lyxfragileframe<*>}}%
   \long\def\@@lyxfragileframe<#1>[EMAIL PROTECTED]
     \frame<#1>[fragile]{\frametitle{#2}#3}}
   \makeatother
 EndPreamble
End

I guess Herbot should know why [fragile] does not work, and how to
define this fragile frame.

Bo

Reply via email to