in the LyX .layout file, an error is given. I cannot figure out a way to include two two values for one command in LyX.

This is not possible in a dynamic way (i.e. you only can specify one parameter into LyX window). Perhaps, a workaround could consist in using two layout styles as the folowing (not tested):

Style Author
Margin        Static
LatexType        Command
InTitle        1
LatexName        AddAuthor
End

Style Affiliation
Margin        Static
LatexType        Command
InTitle        1
LatexName        donothing
Preamble
        \newcommand{\donothing}[1]{{#1}}
EndPreamble
End

... which would generate the following LaTeX code:

\AddAuthor{Author name}\donothing{Affiliation}

Hope that this will help...

Mael.

--
Mael Hilléreau


Reply via email to