On Sun, Feb 25, 2007 at 02:49:10PM +0100, NicoWinger wrote:

> \newcommand{\Deckblatt_Titel}[1]{\pagebreak\startbreaks\setlength{\marginpar
> width}{35mm}}
>  EndPreamble
> End
> (...)
>  
> With the Preamble in the Style Deckblatt_Titel latex has problems...
> Somebody an idea why? Thank you very much...

Yes, you cannot use "_" in a latex command name. Only lower and uppercase
letters are allowed, unless you play with \catcode, which I do not
recommend. The only non-letter character which is easy to use in command
names is "@" because you can make it a letter through \makeatletter
and then turn it again to its category through \makeatother.
Note that LyX automatically encloses the latex preamble between
\makeatletter and \makeatother, so you can safely use "@" there.

-- 
Enrico

Reply via email to