Andre Berger wrote:
>
> Thank you. I made my own .cls for a multi-user purpose. It'ss a very
> dirty hack of scrlettr.cls, and I'm forced to use a certain document
> structure.
>
> \input{briefkopfAndre}%user's letter head
> \input{briefMain}%compute width of minipage for From
> \renewcommand{\Anrede}{Herrn/Frau/Firma}%To the german pendant of Mr.,
> Mrs. etc (in english; not in koma-script)
> \renewcommand{\AnlagenZahl}{0}%number of enclosures, ifthen use \AnlagenNamen
> \renewcommand{\AnlagenNamen}{Name1 \newline Name2}
> \input{briefMisc}%Compute USING THE RENEW'd COMMANDS
> ...
>
> So to point it out, I'm obliged to use the \renewcommand at a certain
> point, which is not in the preamble. The structure itself work in LyX
> if I use the TeX style. But this looks ugly esp. in LyX, so I'd like
> to create input fields for \Anrede, \AnlagenZahl, and \AnlagenNamen.
>
For me it is not very clear how this can be solve, but did you try to
create a style layout with two parameters for renewcommand with two
arguments one of them \Anrede and the other one Herrn/Frau/Firma ? it
can happen that lyx doesn't manage properly the "\" in the very first
parameter, but some other alternatives could be valid, so if this one
doesn't work you can e-mail me a short tex example file and all the
other stuff that you need to work with your class to understand how it
works and I'll try to find a solution, sometimes the layouts in lyx can
be a little bit tricky
> Sorry to not have been clear enough.
>
> Andre
--
http://www.iit.upco.es/~oscar
Oh, love is real enough, you will find it some day, but it has one
arch-enemy -- and that is life.
-- Jean Anouilh, "Ardele"