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
-- 
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users

Reply via email to