Andre Berger wrote:
>
> My own letter layout is still unfinished (better: unfurbished) yet
> because I don't really understand the LyX concept. I'd like to add an
> item to a letter layout, like "\closing" (you know what I mean),
> called "\Anlagenzahl". It should do a "\renewcommand". Taken the
>
> # Closing style definition
> Style Closing
> CopyStyle Letter
> LatexType Command
> LatexName closing
> KeepEmpty 0
> TopSep 1.5
> BottomSep 1.5
> ParSep 1.5
> Align Left
> AlignPossible Left
> LabelString "Grussformel:"
> End
>
> how can I put a "\renewcommand{\Anlagenzahl}{What the user fills in}" into
> this construction?
I am not pretty sure if I correctly understand your problem because I
don't really know what the command Anlagenzahl does, but anyway. The
following style allows you to redefine the command Anlagenzahl to output
some unformatted text #1, when you use this style after the label
Grussformel you must put the text that you want to display in the output
# Closing style definition
Style Closing
CopyStyle Letter
LatexType Anlagenzahl
LatexName closing
KeepEmpty 0
TopSep 1.5
BottomSep 1.5
ParSep 1.5
Align Left
AlignPossible Left
LabelString "Grussformel:"
Preamble
\renewcommand{\Anlagenzahl}[1]{#1}
EndPreambl
End
Hope it helps
--
http://www.iit.upco.es/~oscar
Few things are harder to put up with than the annoyance of a good
example.
-- "Mark Twain, Pudd'nhead Wilson's Calendar"