summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/latex/latex-tipps-und-tricks/textmerg.tex
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/doc/latex/latex-tipps-und-tricks/textmerg.tex')
-rw-r--r--Master/texmf-dist/doc/latex/latex-tipps-und-tricks/textmerg.tex27
1 files changed, 27 insertions, 0 deletions
diff --git a/Master/texmf-dist/doc/latex/latex-tipps-und-tricks/textmerg.tex b/Master/texmf-dist/doc/latex/latex-tipps-und-tricks/textmerg.tex
new file mode 100644
index 00000000000..9c279161465
--- /dev/null
+++ b/Master/texmf-dist/doc/latex/latex-tipps-und-tricks/textmerg.tex
@@ -0,0 +1,27 @@
+\documentclass{letter}
+\usepackage[latin1]{inputenc}
+\usepackage{german,textmerg,ifthen}
+\MarkEnd{***}
+\Process{1}{\ding} \newcommand{\ding}[1]{$\bullet$ #1}
+\Fields{+\titel\vorname\name\strasse\ort}
+
+\begin{document}
+\Merge{adr.dat}{%
+ \begin{letter}
+ {\titel\ \vorname\ \name\\ \strasse\\ \ort}
+ \opening{Liebe\ifthenelse{\equal{\titel}{Herr}}{r}{}
+ \ \vorname,}
+ ich möchte Dich am 24.7.1999 zu einer Feier im
+ kleinen Rahmen einladen. Bitte bringe die folgenden
+ Dinge mit:\par
+ \begin{tabular}{l}
+ \MultiRead{1}
+ \end{tabular}
+ \closing{Viele Grüße,}
+ \ps{PS. Bitte in \ifthenelse{\equal{\titel}{Frau}}
+ {Abendkleid oder kleinem Schwarzem}
+ {Smoking oder Frack}
+ erscheinen!}
+ \end{letter}
+ }
+\end{document}