- don't use German abbreviations (such as "w") and expressions.
- add some documentation.
* lib/examples/de/serienbrief[1-3]:
- fix spelling
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23031
a592a061-630c-0410-9148-
cb99ea01b6c8
+% Syntax:
+% \adrentry{Lastname} -> #1
+% {Firstname} -> #2
+% {Address} -> #3
+% {Telephone} -> #4
+% {F1} -> #5
+% {F2} -> #6
+% {Comment} -> #7
+% {ID} -> #8
+%
+% The F1 and F2 fields are free custom fields (F1 is used for gender
+% in this example). If you need more fields, there's also an \addrentry
+% entry type (note the additional 'd'), which has one additional field
+% (cf. the KOMA-script documentation for details).
+% NOTE: the ID must be unique.
+
+
+\adrentry{Miller}
+ {John}
+ {43 Straight Street\\Boston}
+ {033-3445-90}
+ {m}
+ {}
+ {Customer}
+ {JOMILL}
+
\adrentry{Boehme}
{Wilhelm}
{Ubierweg 49\\754127 Dingsda}
{0227557/35448}
{m}
{}
- {alter Kollege}
+ {Friend}
{WILBOE}
+
\adrentry{Zylla}
{Rieke}
{Salierweg 9\\850289 Kolonia}
{022811/458290}
- {w}
+ {f}
{}
- {Versicherung}
+ {Supervisor}
{RIEZY}
+
\adrentry{Klausen}
{Daniela}
{Promenadenweg 17\\23155 Fuhlingen}
{0672289/30945}
- {w}
+ {f}
{}
- {Freundin}
+ {fellow student}
{DANKLA}
+
\adrentry{Tollmann}
{Gerd}
{Ginsterweg 119\\48890 Karlingen}
{074418/90833}
{m}
{}
- {Urlaub}
+ {Holiday 2004}
{GERTO}
\begin_body
\begin_layout Name
-Das LyX Entwickler Team
+Das LyX-Entwicklerteam
\end_layout
\begin_layout SenderAddress
\end_layout
\begin_layout Backaddress
-Das LyX Entwickler Team
+Das LyX-Entwicklerteam
\newline
Planstr.
140
\end_layout
\begin_layout Signature
-Das LyX Team
+Das LyX-Team
\end_layout
\begin_layout Subject
-Neues KOMA letter Layout
+Neues KOMA-Brief-Layout
\end_layout
\begin_layout Place
\begin_layout Address
\begin_inset ERT
-status collapsed
+status open
\begin_layout Standard
+{}
+\backslash
+if #5f{Frau}
+\backslash
+fi
+\end_layout
+
+\begin_layout PlainLayout
+
+
+\backslash
+if #5m{Herrn}
+\backslash
+fi
+\end_layout
+
+\begin_layout PlainLayout
+
#2 #1
\backslash
\backslash
-if #5w{Sehr geehrte Frau #1,}
+if #5f{Sehr geehrte Frau #1,}
\backslash
fi
\end_layout
LaTeX-Vorspann
\family default
finden sich die Einstellmöglichkeiten der meisten gebräuchlichen Parameter.
- Die KOMA Script Dokumentation
+ Die KOMA
+\begin_inset ERT
+status collapsed
+
+\begin_layout PlainLayout
+
+"=
+\end_layout
+
+\end_inset
+
+Script
+\begin_inset ERT
+status collapsed
+
+\begin_layout PlainLayout
+
+"=
+\end_layout
+
+\end_inset
+
+Dokumentation
\begin_inset Foot
status collapsed
\end_layout
\begin_layout PS
-p.\InsetSpace \thinspace{}
-s.: Blaufarbige Items sollen vor der Adresse eingefügt werden, magentafarbige
+P.\InsetSpace \thinspace{}
+S.: Blaufarbige Items sollen vor der Adresse eingefügt werden, magentafarbige
danach.
\end_layout
\begin_layout CC
-Die LyX User
+Die LyX-User
\end_layout
\begin_layout EndLetter
\begin_body
\begin_layout Name
-Das LyX Entwickler Team
+Das LyX-Entwicklerteam
\end_layout
\begin_layout SenderAddress
\end_layout
\begin_layout Backaddress
-Das LyX Entwickler Team
+Das LyX-Entwicklerteam
\newline
Planstr.
140
\end_layout
\begin_layout Signature
-Das LyX Team
+Das LyX-Team
\end_layout
\begin_layout Subject
-Neues KOMA letter Layout
+Neues KOMA-Brief-Layout
\end_layout
\begin_layout Place
LaTeX-Vorspann
\family default
finden sich die Einstellmöglichkeiten der meisten gebräuchlichen Parameter.
- Die KOMA Script Dokumentation
+ Die KOMA
+\begin_inset ERT
+status collapsed
+
+\begin_layout PlainLayout
+
+"=
+\end_layout
+
+\end_inset
+
+Script
+\begin_inset ERT
+status collapsed
+
+\begin_layout PlainLayout
+
+"=
+\end_layout
+
+\end_inset
+
+Dokumentation
\begin_inset Foot
status collapsed
\end_layout
\begin_layout PS
-p.\InsetSpace \thinspace{}
-s.: Blaufarbige Items sollen vor der Adresse eingefügt werden, magentafarbige
+P.\InsetSpace \thinspace{}
+S.: Blaufarbige Items sollen vor der Adresse eingefügt werden, magentafarbige
danach.
\end_layout
\begin_layout CC
-Die LyX User
+Die LyX-User
\end_layout
\begin_layout EndLetter
\begin_body
\begin_layout Name
-Das LyX Entwickler Team
+Das LyX-Entwicklerteam
\end_layout
\begin_layout SenderAddress
\end_layout
\begin_layout Backaddress
-Das LyX Entwickler Team
+Das LyX-Entwicklerteam
\newline
Planstr.
140
\end_layout
\begin_layout Signature
-Das LyX Team
+Das LyX-Team
\end_layout
\begin_layout Subject
-Neues KOMA letter Layout
+Neues KOMA-Brief-Layout
\end_layout
\begin_layout Place
\backslash
-if #5w
+if #5f
\end_layout
\end_inset
\end_layout
\begin_layout Address
+Frau
\begin_inset ERT
status collapsed
\backslash
\backslash
+
+\end_layout
+
+\begin_layout Standard
+
#3
\end_layout
LaTeX-Vorspann
\family default
finden sich die Einstellmöglichkeiten der meisten gebräuchlichen Parameter.
- Die KOMA Script Dokumentation
+ Die KOMA
+\begin_inset ERT
+status collapsed
+
+\begin_layout PlainLayout
+
+"=
+\end_layout
+
+\end_inset
+
+Script
+\begin_inset ERT
+status collapsed
+
+\begin_layout PlainLayout
+
+"=
+\end_layout
+
+\end_inset
+
+Dokumentation
\begin_inset Foot
status collapsed
\end_layout
\begin_layout PS
-p.\InsetSpace \thinspace{}
-s.: Blaufarbige Items sollen vor der Adresse eingefügt werden, magentafarbige
+P.\InsetSpace \thinspace{}
+S.: Blaufarbige Items sollen vor der Adresse eingefügt werden, magentafarbige
danach.
\end_layout
\begin_layout CC
-Die LyX User
+Die LyX-User
\end_layout
\begin_layout EndLetter
\backslash
renewcommand*{
\backslash
-adrentry}[8]{
+adrentry}[8]{%
\end_layout
\end_inset
\begin_layout Address
\begin_inset ERT
-status collapsed
+status open
\begin_layout Standard
\backslash
\backslash
+
+\end_layout
+
+\begin_layout Standard
+
#3
\end_layout
\backslash
-if #5w{Dear Mrs.~#1,}
+if #5f{Dear Mrs.~#1,}
\backslash
fi
\end_layout
\backslash
-if #5w
+if #5f
\end_layout
\end_inset
status open
\begin_layout Standard
-when person is female
+condition for this letter: gender [#5] must be female [f]
\end_layout
\end_inset
\begin_layout Address
\begin_inset ERT
-status collapsed
+status open
\begin_layout Standard
\backslash
\backslash
+
+\end_layout
+
+\begin_layout Standard
+
#3
\end_layout