Micha wrote:
> I'm trying to see if I can write a layout file for the currvita latex
> class. The main environment is a list environment that should come out
> something like
>
> \begin{cvlist}{title}
> \item[one] text
> \item[two] text
> \end{cvlist}
>
> I can get the {title} part by adding
> LatexParam {title}
> but that doesn't allow me to change this. Is there a way to insert that
> mandatory argument, layout file style option, tex code or otherwise?
Alas, LyX does not yet support multiple mandatory arguments natively. You can
try one of the following hacks (all untested):
1. use
LatexType List_Environment
LabelString "title"
then you can insert the title via the "Longest label" widget of the paragraph
dialog (see the List environment for an example)
2. Redefine the environment to use an optional arg, use lyxcvlist instead of
cvlist and enter the title via insert->optional argument:
LaTeXName lyxcvlist
OptionalArgs 1
Preamble
\newenvironment\lyxcvlist[1][]{\begin{cvlist}{#1}}{\end{cvlist}
EndPreamble
Jürgen