LatexParam before Argument

Ehud Behar ehud.behar at posteo.pm
Sat Apr 8 15:20:33 UTC 2023


 

I want to create the following latex code in my Lyx document:

begin{myenv}{}
[arg 1]
code
end{myenv}

So I inserted this into the Local Layout:

Style myenv
 LatexType Environment
 LatexName myenv
 LatexParam "{}"
 Argument 1
 LabelString "entry 1"
 AutoInsert 1
 LeftDelim "<br/>["
 RightDelim "]"
 EndArgument
End

But turns out that LyX sweeps the order of "Argument" and "LatexParam",
because what this local layout gives is
begin{myenv}
[arg 1]{}
code
end{myenv}

Any idea how to solve it? Or a different approach to get the code I
want?

A screenshot is here [1].
 

Links:
------
[1] https://gcdnb.pbrd.co/images/x59ATebvzVOr.png
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lyx.org/pipermail/lyx-users/attachments/20230408/90362044/attachment.html>


More information about the lyx-users mailing list