Tim Michelsen wrote:

> Hi,
> I've installed the beamer package.
> When I open the template that comes with the package I get some grey
> boxes with optional text.
> This would be added to latex commands as an optional argument when I
> export
>  to latex:
> \command[optional]{argument}
> 
> How to I insert these optional arguments/OptArg with LyX?
> 
> When I do "optional-insert" in the buffer I get: command disabled
> 
> LyX Version: 1.3.2
> 
> Greetings
> Tim

Hi, Tim.

You'll have to modify your beamer.layout file so that the appropriate
environments have a line 'OptionalArgs 1'.

Angus


# Caption style definition
Style Caption
  Margin                First_Dynamic
  LatexType             Command
  LatexName             caption
  NeedProtect           1
  LabelSep              xx
  ParSkip               0.4
  TopSep                0.5
  Align                 Center
  AlignPossible         Center
  LabelType             Sensitive
  LabelString   Caption
  OptionalArgs          1

  # label font definition
  LabelFont
    Series              Bold
  EndFont
End

-- 
Angus

Reply via email to