Debian Codegraph @

texmf-dist/doc/generic/textmerg/tmexamp1.tex

raw
1 %%
2 %% This is file `tmexamp1.tex',
3 %% generated with the docstrip utility.
4 %%
5 %% The original source files were:
6 %%
7 %% textmerg.dtx (with options: `examp')
8 %%
9 \documentclass[12pt]{letter}
10 \usepackage{textmerg}
11 \begin{document}
12 \Fields{\Title\Forenames\Surname
13 \Address\Grade}
14 \Merge{results.dat}{%
15 \begin{letter}{\Title\ \Forenames\
16 \Surname\\\Address}
17 \opening{Dear \Title\ \Surname,}
18 This letter is to inform you
19 that you obtained grade \Grade\ in
20 your recent examinations.
21 \closing{Yours faithfully,}
22 \end{letter}}
23 \end{document}
24 \endinput
25 %%
26 %% End of file `tmexamp1.tex'.