Preset LaTeX parameters/arguments
Daniel
xracoonx at gmx.de
Wed Oct 28 15:51:15 UTC 2020
On 2020-10-28 13:01, Daniel wrote:
> Hi,
>
> Is it possible to define a layout/paragraph style with a preset LaTeX
> parameter/argument?
>
> I tried `LatexParam` but that just outputs the text without interacting
> with the arguments inserted via Argument insets. For example, if I use
>
> LatexParam [label*=\alph*)]
>
> to a Numbered List, the result is
>
> \begin{enumerate}[label*=\alph*)]
> \item
> \end{enumerate}
>
> However, if I try to add another (optional) argument via the List
> Preamble inset, say `ref=\alph*` I get
>
> \begin{enumerate}[label*=\alph*)][ref=\alph*]
> \item
> \end{enumerate}
>
> which gives an error. Instead it seems what I would need is
>
> \begin{enumerate}[label*=\alph*), ref=\alph*]
> \item
> \end{enumerate}
>
> Is there a way to achieve this in LyX?
>
> Daniel
>
All right, found it. Adding a `PresetArg` to the argument definition
does the trick.
Daniel
More information about the lyx-users
mailing list