Debian Codegraph @

texmf-dist/doc/latex/ledmac/ledbraonain.tex

raw
1 %%
2 %% This is file `ledbraonain.tex',
3 %% generated with the docstrip utility.
4 %%
5 %% The original source files were:
6 %%
7 %% ledmac.dtx (with options: `braonain')
8 %%
9 %% Author: Peter Wilson (Herries Press) herries dot press at earthlink dot net
10 %% Copyright 2003 -- 2005 Peter R. Wilson
11 %%
12 %% This work may be distributed and/or modified under the
13 %% conditions of the LaTeX Project Public License, either
14 %% version 1.3 of this license or (at your option) any
15 %% later version.
16 %% The latest version of the license is in
17 %% http://www.latex-project.org/lppl.txt
18 %% and version 1.3 or later is part of all distributions of
19 %% LaTeX version 2003/06/01 or later.
20 %%
21 %% This work has the LPPL maintenance status "unmaintained".
22 %%
23 %% This work consists of the files listed in the README file.
24 %%
25 %%% This is ledbraonain.tex, a sample critical verse edition.
26 %%% Originally written for TeX processing with edmac and edstanza
27 %%% by Wayne Sullivan.
28 %%% Extensively modified by Peter Wilson for LaTeX and the ledmac package.
29
30 \documentclass{article}
31 \usepackage{ledmac}
32
33 \setlength{\textheight}{40pc}
34 \setlength{\textwidth}{24pc}
35 \bigskipamount=12pt plus 6pt minus 6pt
36 \newcommand*{\notetextfont}{\footnotesize}
37
38 %%% Just one footnote series
39 \footparagraph{C}
40 \count\Cfootins=800
41 \makeatletter
42 %% but using two different formats
43 \def\xparafootfmt#1#2#3{%
44 \ledsetnormalparstuff
45 {\notenumfont\printlines#1|}\enspace
46 %%% {\select@lemmafont#1|#2}\rbracket\enskip
47 \notetextfont #3\penalty-10 }
48 \def\yparafootfmt#1#2#3{%
49 \ledsetnormalparstuff
50 %%% {\notenumfont\printlines#1|}\enspace
51 %%% {\select@lemmafont#1|#2}\rbracket\enskip
52 \notetextfont #3\penalty-10 }
53
54 \let\Cfootfmt=\xparafootfmt
55 \skip\Cfootins=\bigskipamount
56 \makeatother
57
58 %% This is the default, but just to demonstrate...
59 \setlength{\stanzaindentbase}{20pt}
60
61 %% MUST SET THE INDENTS
62 %% indent multiples; first=hangindent.
63 %% Must all be non-negative whole numbers
64 \setstanzaindents{4,1,2,1,2,3,3,1,2,1}
65
66 %% Set stanza line penalties
67 %% Must be nonnegative whole numbers.
68 %% An initial zero indicates no penalties.
69 \setstanzapenalties{1,5000,10500,5000,10500,5000,5000,5000,0}
70
71 %% Put some space between stanzas
72 \let\endstanzaextra=\bigbreak % ==> \bigskip \penalty -200
73
74 %% (almost) force line break in foot paragraph
75 \mathchardef\IMM=9999
76 \def\lbreak{\hfil\penalty-\IMM}
77
78 %% Number each stanza in bold
79 \newcounter{stanzanum}
80 \setcounter{stanzanum}{0}
81 \newcommand*{\numberit}{%
82 \flagstanza[0.5\stanzaindentbase]{\textbf{\thestanzanum}}}
83 %% Use the hook to insert the number (and counteract a new line)
84 %% and reset the line number to zero
85 \newcommand*{\startstanzahook}{\refstepcounter{stanzanum}%
86 \numberit\vskip-\baselineskip%
87 \setlinenum{0}}
88
89 %% Want to label the footnotes with the stanza and line number
90 %% We'll use \linenum to replace the sub-line number
91 %% with the stanza number, redefining \edtext to do this
92 %% automatically for us.
93 %%%%%%%%%%%%%%%%%%%%%%%%%
94 \makeatletter
95
96 \renewcommand{\edtext}[2]{\leavevmode
97 \begingroup
98 \no@expands
99 \xdef\@tag{#1}%
100 \set@line
101 \global\insert@count=0
102 \ignorespaces \linenum{||\the\c@stanzanum}#2\relax
103 \flag@start
104 \endgroup
105 #1%
106 \ifx\end@lemmas\empty \else
107 \gl@p\end@lemmas\to\x@lemma
108 \x@lemma
109 \global\let\x@lemma=\relax
110 \fi
111 \flag@end}
112
113 %% We need only a very simple macro for footnote numbers,
114 %% to produce the stanza number (sub-line) then the line number.
115 \def\printstanzalines#1|#2|#3|#4|#5|#6|#7|{\begingroup
116 #3\fullstop \linenumrep{#2}
117 \endgroup}
118 \let\oldprintlines\printlines
119
120 \makeatother
121 %%%%%%%%%%%%%%%%%%%%%%%%%
122
123 \pagestyle{empty}
124
125 \begin{document}
126
127 \beginnumbering
128
129 \pstart \centering \textbf{22} \pend
130
131 \bigskip
132 %% do not print line number beside heading
133 \setcounter{firstlinenum}{1000}
134 %% and heading footnotes use a different format
135 \let\Cfootfmt=\yparafootfmt
136
137 \pstart
138 \centerline{[Se\'an \'O Braon\'ain cct] chuim Tom\'ais U\'{\i}
139 \edtext{Dh\'unlaing}{\Cfootnote{\textbf{22} \textit{Teideal}: Dhuinnluinng T,
140 Se\'aghan Mac Domhnaill cct B\lbreak}}}
141 \pend
142
143 \pstart
144 \centerline{[Fonn: M\'airse\'ail U\'{'i} Sh\'uilleabh\'ain (P\'ainseach
145 na nUbh]}
146 \pend
147
148 \bigskip
149
150 %% revert to the regular footnote format
151 \let\Cfootfmt=\xparafootfmt
152 %% but use our special number printing routine
153 \let\printlines\printstanzalines
154 %% Use letters for line numbering
155 \linenumberstyle{alph}
156 %% number lines from the second onwards
157 \setcounter{firstlinenum}{2}
158 \setcounter{linenumincrement}{1}
159
160 %% Each verse starts with \stanza.
161 %% Lines end with &; the last line with \&.
162
163 \stanza
164 A \edtext{dhuine}{\Cfootnote{dhuinne T}} gan ch\'eill do
165 \edtext{mhaisligh}{\Cfootnote{mhaslaidh T, mhaslaig B}} an chl\'eir&
166 is tharcaisnigh naomhscruipt na bhf\'aige,&
167 na haitheanta \edtext{r\'eab}{\Cfootnote{raob T}} 's an
168 t-aifreann thr\'eig&
169 \edtext{re}{\Cfootnote{le B}} taithneamh do chlaonchreideamh
170 Mh\'artain,&
171 c\'a rachair \edtext{'od}{\Cfootnote{dod B}} dh\'{\i}on ar
172 \'Iosa Nasardha&
173 nuair \edtext{chaithfimid}{\Cfootnote{chaithfam\'{\i}d T}} cruinn
174 bheith ar \edtext{mhaoileann}{\Cfootnote{maoilinn B}} Josepha?&
175 N\'{\i} caraid Mac Crae chuim t'anama '
176 \edtext{phl\'e}{\Cfootnote{phleidh T}}&
177 n\'a Calvin \edtext{bhiais}{\Cfootnote{bh\'{\i}os B}} taobh
178 \edtext{ris}{\Cfootnote{leis B}} an l\'a sin.\&
179
180 \stanza
181 N\'ach damanta an sc\'eal don chreachaire
182 \edtext{chlaon}{\Cfootnote{claon B}}&
183 ghlac baiste na cl\'eire 'na ph\'aiste&
184 's do \edtext{glanadh}{\Cfootnote{glannuig T}} mar ghr\'ein
185 \'on bpeaca r\'o-dhaor&
186 tr\'{\i} \edtext{ainibhfios}{\Cfootnote{ainnibhfios T, ainnbhfios B}}
187 \edtext{\'Eva}{\Cfootnote{\'Eabha B}} rinn \'Adam,&
188 tuitim ar\'{\i}s f\'e chuing na haicme sin&
189 tug atharrach br\'{\i} don scr\'{\i}bhinn bheannaithe,&
190 d'aistrigh b\'easa \edtext{agus}{\Cfootnote{is B}} reachta na cl\'eire&
191 's n\'ach \edtext{tugann}{\Cfootnote{tuigionn T}} aon
192 gh\'eilleadh don Ph\'apa?\&
193
194 \stanza
195 Gach \edtext{scolaire}{\Cfootnote{sgollaire T}} baoth, n\'{\i}
196 \edtext{mholaim}{\Cfootnote{mholluim T}} a cheird&
197 \edtext{'t\'a ag obair}{\Cfootnote{'t\'ag ccobar T}}
198 \edtext{le}{\Cfootnote{re B}} g\'eilleadh d\'a th\'aille&
199 don \edtext{doirbhchoin chlaon}{\Cfootnote{dorbhchon daor B}}
200 d\'a ngorthar Mac Crae,&
201 deisceabal \edtext{straeigh}{\Cfootnote{straodhaig T}} as an
202 gcoll\'aiste.&
203 T\'a \edtext{\edtext{adaithe}{\Cfootnote{fadaighthe B}}
204 th\'{\i}os}{\Cfootnote{fhadoghthe ts\'{\i}os T}} in
205 \'{\i}ochtar ifrinn,&
206 gan \edtext{solas}{\Cfootnote{sollus T}} gan soilse i
207 dt\'{\i}orthaibh dorcha,&
208 tuigsint an l\'einn, gach
209 \edtext{cuirpeacht}{\Cfootnote{cuirripeacht T}} d\'ein&
210 is \edtext{Lucifer}{\Cfootnote{Luicifer T, L\'ucifer B}} aosta
211 'na \edtext{mh\'aistir}{\Cfootnote{mhaighistir T}}.\&
212
213 \endnumbering
214
215 \end{document}
216
217 \endinput
218 %%
219 %% End of file `ledbraonain.tex'.