Debian Codegraph @

texmf-dist/doc/latex/mi-solns/examples/create-db.tex

raw
1 \documentclass{article}
2 \usepackage[designiv,forcolorpaper]{web}
3 \usepackage{exerquiz}
4
5 \usepackage{mi-solns}
6 \declSOLOut{poems.lst}
7
8 %\copySolnsOff
9
10 % This formatting is optional, the purpose of this file is to create
11 % the poems.lst file, which is to be input by another file.
12 \renewcommand\exlabel{Poet}
13 \renewcommand\exlabelformat{{\scshape\exlabel:}}
14 \renewcommand\exsllabelformat{\protect\textbf{\exlabelsol\ \currentpoet}}
15 \renewcommand\exsllabelformatwp
16 {\protect\textbf{\currentpoet: \currenttitle}}
17 \renewcommand\exsectitle{List of \exlabel s and their Poems}
18 \partsformat{}
19 \def\currentPoet#1{\def\currentpoet{#1}}
20 \def\currentTitle#1{\def\currenttitle{#1}}
21 \partsitemsep{6pt}
22
23 \begin{document}
24
25 \currentPoet{Ogden Nash}
26 \begin{exercise*}
27 \textbf{Ogden Nash}
28 \begin{parts}
29 \item \currentTitle{First Limerick}\textbf{First Limerick}
30 \insExSoln{First Limerick}
31 \mrkForIns{First Limerick}
32 \begin{solution}[]
33 \begin{quote}\obeylines
34 An old person of Troy
35 Is so prudish and coy
36 That it doesn't know yet
37 If it's a girl or a boy.
38 \end{quote}
39 \end{solution}
40
41 \item \currentTitle{The Lama}\textbf{The Lama}
42 \insExSoln{The Lama}
43 \mrkForIns{The Lama}
44 \begin{solution}[]
45 \begin{quote}\obeylines
46 The one-l lama,
47 He's a priest,
48 The two-l llama,
49 He's a beast.
50 And I will bet
51 A silk pajama
52 There isn't any
53 Three-l lllama\footnote{\raggedright The author here is referring to a three-alarm fire, called a ``three-alarmer''.}
54 \end{quote}
55 \end{solution}
56 \end{parts}
57 \end{exercise*}
58
59 \currentPoet{Edward R. Sill}
60 \begin{exercise*}
61 \textbf{Edward R. Sill}
62 \begin{parts}
63 \item \currentTitle{Opportunity}\textbf{Opportunity}
64 \insExSoln{Opportunity}
65 \mrkForIns{Opportunity}
66 \begin{solution}[]
67 \begin{quote}\obeylines
68 This I beheld, or dreamed it in a dream:---
69 There spread a cloud of dust along a plain;
70 And underneath the cloud, or in it, raged
71 A furious battle, and men yelled, and swords
72 Shocked upon swords and shields. A prince's banner
73 Wavered then staggered backward, hemmed by foes.\vspace{\baselineskip}
74
75 A craven hung along the battle's edge,
76 And thought, ``Had I a sword of keener steal---
77 That blue blade that the king's son bears---but this
78 Blunt thing!''---he snapped and flung it from his hand.
79 And lowering crept away and left the field.\vspace{\baselineskip}
80
81 Then came the king's son, wounded, sore bestead,
82 And weaponless, and saw the broken sword,
83 Hilt-buried in the dry and trodden sand,
84 And ran and snatched it, and with battle-shout,
85 Lifted afresh he hewed his enemy down,
86 And saved a great cause that heroic day.
87 \end{quote}
88 \end{solution}
89 \end{parts}
90 \end{exercise*}
91
92 \end{document}