Debian Codegraph @

texmf-dist/doc/latex/book-of-common-prayer/book-of-common-prayer.tex

raw
1 \documentclass{article}
2 \usepackage{booktabs}
3 \usepackage{hyperref}
4 \usepackage{xcolor}
5 \usepackage{listings}
6 \usepackage{subcaption}
7 \usepackage{book-of-common-prayer}
8 \geometry{
9 paperheight=11in,
10 paperwidth=8.5in,
11 heightrounded,
12 left=1in, right=1in, vmargin=1in
13 }
14 \definecolor{name}{rgb}{0.5,0.5,0.5}
15 \lstset{basicstyle=\normalfont\ttfamily,
16 breaklines=true,
17 otherkeywords={},
18 language=[LaTeX]{TeX},
19 tabsize=2,
20 breaklines=true,
21 keywordstyle=\color{blue},
22 texcsstyle=*\color{blue},
23 commentstyle=\color{comments}\ttfamily,
24 }
25
26 \title{\texttt{book-of-common-prayer}\\
27 \Large Typesetting for liturgical documents in the style of the 1979 Book of Common Prayer \\
28 }
29 \date{February 2022 \\ \textit{Version 1.1.0}}
30 \author{Arlie Coles}
31
32 \begin{document}
33 \maketitle
34
35 \tableofcontents
36
37 \clearpage
38 \section{Introduction}
39
40 \texttt{book-of-common-prayer} is a \LaTeX\ package for liturgical documents in the style of the 1979 Book of Common Prayer\footnote{\url{http://justus.anglican.org/resources/bcp/formatted_1979.htm}}. It provides special typesetting tools for common liturgical situations (e.g. versicle and response, longer prayers, etc.) as well as formatting specifications for an entire document (e.g. font face, section headers, margins, etc.).
41
42 % \blankline
43 \section{Setup}
44
45 You can import \texttt{book-of-common-prayer} in the typical way by writing \lstinline|\usepackage{book-of-common-prayer}| in the preable of your \LaTeX\ document.
46
47 \subsection{Fonts}
48
49 The standard font used in the 1979 Book of Common Prayer is Sabon\footnote{\url{https://www.linotype.com/5598633/sabon-family.html}}. If you have Sabon installed on your computer, you can use it with \texttt{book-of-common-prayer} by writing \lstinline|\usepackage[sabon]{book-of-common-prayer}| in the preamble of your document to import the package.
50
51 You should also have the fonts Arial Unicode MS\footnote{\url{https://docs.microsoft.com/en-us/typography/font-list/arial-unicode-ms}} and Junicode\footnote{\url{https://junicode.sourceforge.io/}} installed on your computer. These two fonts provide some special symbols used by \texttt{book-of-common-prayer}.
52
53 Since \texttt{book-of-common-prayer} uses special fonts, you should compile your document with the Lua\LaTeX\ or Xe\LaTeX\ compiler.
54
55 \subsection{Music}
56
57 \texttt{book-of-common-prayer} works with Lilypond\footnote{\url{http://lilypond.org/}} for inline music notation. If you have musical scores you would like to integrate into your document, you should use the \texttt{lyluatex} package by writing \lstinline|\usepackage{lyluatex}| in the preamble of your document.
58
59 To compile your document with Lilypond scores, you must use Lua\LaTeX, e.g. \lstinline{lualatex -shell-escape your_document.tex}.
60
61 \subsection{Page setup}
62
63 By default, \texttt{book-of-common-prayer} structures the document to be booklet size (a folded 8.5 $\times$ 11" sheet). If you would like a different size, you can override this behavior by writing e.g.
64
65 \begin{lstlisting}
66 \geometry{paperheight=8.5in, paperwidth=5.5in}
67 \end{lstlisting}
68
69 in the preamble of your document.
70
71 \section{Documentation}
72
73 \subsection{Special symbols}
74
75 Table \ref{tab:symbol} shows the special symbols available in \lstinline{book-of-common-prayer}. To produce the formatted output, you must simply type the corresponding \LaTeX\ code.
76
77 \begin{table}[h!]
78 \centering
79 \begin{tabular}{ll}
80 \toprule
81 \LaTeX\ code & Formatted output \\
82 \midrule
83 \lstinline|\versicle| & \versicle \\
84 \lstinline|\response| & \response \\
85 \lstinline|\cross| & \cross \\
86 \lstinline|\scross| & \sabon{\scross} \\
87 \lstinline|\gl| & \gl \\
88 \lstinline|\gr| & \gr \\
89 \bottomrule
90 \end{tabular}
91 \caption{Special symbols available in \lstinline{book-of-common-prayer}.}
92 \label{tab:symbol}
93 \end{table}
94
95 \subsection{Special commands}
96
97 There are also some special commands to fine-tune formatting when needed (usually these are controlled by \LaTeX\, so the below should be used sparingly):
98
99 \begin{itemize}
100 \item \lstinline{\blankline} forces a blank line (similar to pressing \lstinline{Enter} twice in Microsoft Word). Usually, \LaTeX\ manages this type of spacing for you, but you can use this command if you need more manual control.
101 \item \lstinline{\deleteline} deletes an empty line's space (similar to backspacing over a blank line in Microsoft Word).
102 \item \lstinline{\tab} creates an indent (similar to pressing \lstinline{tab} in Microsoft Word).
103 \item \lstinline{\spacer} creates a very small vertical space when this kind of fine control is desired.
104 \end{itemize}
105
106 \subsection{Text formatting}
107
108 Several text formatting bracketings (macros) are available.
109
110 \subsubsection{Instructions}
111
112 \lstinline! \instruct{} ! will format the contents as instructions, i.e. italicized and slightly smaller font size than the body text.
113
114 \begin{table}[h!]
115 \centering
116 \begin{tabular}{l l}
117 \toprule
118 \LaTeX\ code & Formatted output \\
119 \midrule
120 \lstinline! \instruct{Here are instructions.} ! & \sabon{\instruct{Here are instructions.}} \\
121 \bottomrule
122 \end{tabular}
123 \caption{Instructions.}
124 \end{table}
125
126 \lstinline! \instructsmall{} ! does the same, but in an even smaller font size.
127
128 \begin{table}[h!]
129 \centering
130 \begin{tabular}{l l}
131 \toprule
132 \LaTeX\ code & Formatted output \\
133 \midrule
134 \lstinline! \instruct{Here are instructions.} ! & \sabon{\instructsmall{Here are instructions.}} \\
135 \bottomrule
136 \end{tabular}
137 \caption{Small instructions.}
138 \end{table}
139
140 \subsubsection{Bible verses}
141
142 \lstinline! \bibleref{} ! will format a Bible reference (chapter and verse) in a small font in small-caps.
143
144 \begin{table}[h!]
145 \centering
146 \begin{tabular}{l l}
147 \toprule
148 \LaTeX\ code & Formatted output \\
149 \midrule
150 \lstinline! \bibleref{John 3:16} ! & \sabon{\bibleref{John 3:16}} \\
151 \bottomrule
152 \end{tabular}
153 \caption{A single Bible reference.}
154 \end{table}
155
156 \lstinline! \bibleverse{}{} ! takes two arguments: the text of the Bible verse, and its reference (chapter and verse). It formats the former in standard body text, and the latter is formatted in a small font in small caps, right-justified.
157
158 \begin{table}[h!]
159 \centering
160 \begin{tabular}{l l}
161 \toprule
162 \LaTeX\ code & Formatted output \\
163 \midrule
164 \lstinline! \bibleverse{Remember Lot's wife.}{Luke 17:32} ! & \sabon{Remember Lot's wife. \scriptsize\textsc{Luke 17:32} } \\
165 \bottomrule
166 \end{tabular}
167 \caption{An expanded Bible reference.}
168 \end{table}
169
170 \subsubsection{Miscellaneous}
171
172 It is conventional to typset the current monarch’s name (if any) in all caps, italicized. We can do this with \lstinline! \monarch{} !:
173
174 \begin{table}[h!]
175 \centering
176 \begin{tabular}{l l}
177 \toprule
178 \LaTeX\ code & Formatted output \\
179 \midrule
180 \lstinline! \monarch{ELIZABETH} ! & \sabon{\monarch{ELIZABETH}} \\
181 \bottomrule
182 \end{tabular}
183 \caption{Monarch name typesetting.}
184 \end{table}
185
186 To put a box around some text, and italicize the text inside, we can use \lstinline! \boxaround{} !:
187
188 \begin{table}[h!]
189 \centering
190 \begin{tabular}{l l}
191 \toprule
192 \LaTeX\ code & Formatted output \\
193 \midrule
194 \lstinline! \boxaround{A box.} ! & \sabon{\fbox{A box.}} \\
195 \bottomrule
196 \end{tabular}
197 \caption{Boxes around text.}
198 \end{table}
199
200 \continued
201 \clearpage
202 \subsection{Environments}
203
204 Several environments are available in \texttt{book-of-common-prayer}. These are used for common formatting blocks, such as versicle-and-response exchanges or longer prayers.
205
206 \subsubsection{Named responses with \lstinline{responses}}
207
208 Table \ref{tab:env_responses} shows how to use the \lstinline{responses} environment, which typesets response exchanges from named roles. This environment is useful for e.g. exchanges between the priest and the people. One named role and the text associated with it must be provided per line. The named role will be italicized and the text associated with that role will be spaced rightward.
209
210 Supported roles are \lstinline{priest}, \lstinline{deacon}, \lstinline{officiant}, \lstinline{servers}, and \lstinline{people}. Support for roles in French is also available (as \lstinline{pretre}, \lstinline{diacre}, \lstinline{officiant}, \lstinline{servants}, and \lstinline{peuple} respectively). The text associated with the \lstinline{people}/\lstinline{peuple} role is always bolded.
211
212 Other supported roles that will render as non-bolded are: \lstinline{subdeacon}, \lstinline{epistoler}, \lstinline{lector}.
213
214 % \pagebreak
215 \begin{table}[h!]
216 \centering
217 \begin{tabular}{ll}
218 \toprule
219 \LaTeX\ code & Formatted output \\
220 \midrule
221 \begin{lstlisting}
222 \begin{responses}
223 \priest{The priest can speak.}
224 \deacon{The deacon too.}
225 \officiant{So can an officiant.}
226 \servers{The servers too.}
227 \people{The people can respond.}
228
229 \pretre{Le prêtre parle.}
230 \diacre{Le diacre aussi.}
231 \officiant{L'officiant parle aussi.}
232 \servants{Les servants aussi.}
233 \peuple{Le peuple repond.}
234 \end{responses}
235 \end{lstlisting}
236 &
237 \sabon{
238 \begin{responsesex}
239 \priest{The priest can speak.}
240 \deacon{The deacon too.}
241 \officiant{So can an officiant.}
242 \servers{The servers too.}
243 \people{The people can respond.}
244 & \\
245 \pretre{Le prêtre parle.}
246 \diacre{Le diacre aussi.}
247 \officiant{L'officiant parle aussi.}
248 \servants{Les servants aussi.}
249 \peuple{Le peuple repond.}
250 \end{responsesex}
251 }
252 \\
253 \bottomrule
254 \end{tabular}
255 \caption{The \lstinline{responses} environment.}
256 \label{tab:env_responses}
257 \end{table}
258
259 % \blankline
260 \subsubsection{Versicle-response responses with \lstinline{vresponses}}
261
262 Table \ref{tab:env_vresponses} shows how to use the \lstinline{vresponses} environment, which typesets versicle-response exchanges. This environment works the same way as the \lstinline{responses} environment, but does not include named roles. Instead, turns in the exchange are headed by \versicle and \response characters, and we indicate which turn we are on by using \lstinline{V} and \lstinline{R} (as we might have used \lstinline{priest} in the \lstinline{responses} environment). The text associated with the response is always bolded.
263
264 \begin{table}[h]
265 \centering
266 \begin{tabular}{ll}
267 \toprule
268 \LaTeX\ code & Formatted output \\
269 \midrule
270 \begin{lstlisting}
271 \begin{vresponses}
272 \V{Here is the versicle.}
273 \R{Here is the response.}
274 \end{vresponses}
275 \end{lstlisting}
276 &
277 \sabon{
278 \begin{vresponsesex}
279 \V{Here is the versicle.}
280 \R{Here is the response.}
281 \end{vresponsesex}
282 }
283 \\
284 \bottomrule
285 \end{tabular}
286 \caption{The \lstinline{vresponses} environment.}
287 \label{tab:env_vresponses}
288 \end{table}
289
290 Sometimes, if the response is long, we might want to format it further. We can do this by placing the response inside of an \lstinline|\rlong{}| bracketing. We can then use line breaks (\lstinline{\\}) and tabs (\lstinline{\tab}) to format the response as we like. Table \ref{tab:env_vresponses_rlong} shows an example of this.
291
292 \clearpage
293 \begin{table}[h!]
294 \centering
295 \begin{tabular}{ll}
296 \toprule
297 \LaTeX\ code & Formatted output \\
298 \midrule
299 \begin{lstlisting}
300 \begin{vresponses}
301 \V{Our Father,}
302 \R{\rlong{
303 Who art in heaven, \\
304 \tab hallowed be thy name. \\
305 Thy Kingdom come; \\
306 \tab thy will be done \\
307 \tab on earth as it is in heaven.}
308 }
309 \end{vresponses}
310 \end{lstlisting}
311 &
312 \sabon{
313 \begin{vresponsesex}
314 \V{Our Father,}
315 \R{\rlong{Who art in heaven, \\
316 \tab hallowed be thy name. \\
317 Thy Kingdom come; \\
318 \tab thy will be done \\
319 \tab on earth as it is in heaven.
320 }}
321 \end{vresponsesex}
322 }
323 \\
324 \bottomrule
325 \end{tabular}
326 \caption{The \lstinline{vresponses} environment used with a long, formatted response.}
327 \label{tab:env_vresponses_rlong}
328 \end{table}
329
330 \subsubsection{Doubled versicle-response responses with \lstinline{vresponsesdouble}}
331
332 Table \ref{tab:env_vresponsesdouble} shows how to use the \lstinline{vresponsesdouble} environment, which typesets versicle-response exchanges that are doubled up on one line. This environment works the same way as the \lstinline{vresponses} environment, but the versicle and response are included on the same line. Each turn is headed with \lstinline{\VR} and takes two arguments in brackets: one for the versicle text and the other for the response text. This can be useful when responses are repeated or space is at a premium. The text associated with the response is always bolded.
333
334 This environment takes one argument that represents the proportion of the line width that should be taken by the versicle. For example, calling \lstinline|\begin{vresponsesdouble}[0.5]| will allot half the line width for the versicle (and the remaining half to the response).
335
336 \begin{table}[h]
337 \centering
338 \begin{tabular}{ll}
339 \toprule
340 \LaTeX\ code & Formatted output \\
341 \midrule
342 \begin{lstlisting}
343 \begin{vresponsesdouble}[0.7]
344 \VR{Joy to thee, O Queen of Heaven;}
345 {Alleluia.}
346 \VR{He whom thou wast meet to bear,}
347 {Alleluia.}
348 \VR{As He promised hath arisen;}
349 {Alleluia.}
350 \VR{Pour for us to God thy prayer.}
351 {Alleluia.}
352 \end{vresponses}
353 \end{lstlisting}
354 &
355 \sabon{
356 \begin{vresponsesdoubleex}[0.2]
357 \VR{Joy to thee, O Queen of Heaven;}{Alleluia.}
358 \VR{He whom thou wast meet to bear,}{Alleluia.}
359 \VR{As He promised hath arisen;}{Alleluia.}
360 \VR{Pour for us to God thy prayer.}{Alleluia.}
361 \end{vresponsesdoubleex}
362 }
363 \\
364 \bottomrule
365 \end{tabular}
366 \caption{The \lstinline{vresponsesdouble} environment.}
367 \label{tab:env_vresponsesdouble}
368 \end{table}
369
370 % \blankline
371 \subsubsection{Prayers with \lstinline{prayer}}
372
373 Table \ref{tab:env_prayer} shows how to use the \lstinline{prayer} environment, which typesets longer prayers that you may desire to format. As in the \lstinline{vresponses} environment, you can use \lstinline{\tab} to indent, but you do not need to use \lstinline{\\} for a line break. If the prayer is to be said by everyone, you may wish to surround it with a \lstinline|\textbf{}| to bold it.
374
375 % \pagebreak
376 \begin{table}[h!]
377 \centering
378 \begin{tabular}{ll}
379 \toprule
380 \LaTeX\ code & Formatted output \\
381 \midrule
382 \begin{lstlisting}
383 \begin{prayer}
384 \textbf{
385 Almighty God,
386 \tab Father of our Lord Jesus Christ,
387 \tab Maker of all things, Judge of all men:
388 }
389 \end{prayer}
390 \end{lstlisting}
391 &
392 \sabon{
393 \begin{tabular}{l}
394 \textbf{Almighty God,} \\
395 \tab \textbf{Father of our Lord Jesus Christ,} \\
396 \tab \textbf{Maker of all things, Judge of all men:} \\
397 \end{tabular}
398 }
399 \\
400 \bottomrule
401 \end{tabular}
402 \caption{The \lstinline{prayer} environment.}
403 \label{tab:env_prayer}
404 \end{table}
405
406 % \blankline
407 \subsubsection{Two-column prayers with \lstinline{twocolprayer}}
408
409 Table \ref{tab:env_twocolprayer} shows how to use the \lstinline{twocolprayer} environment, which typesets prayers in two columns. This is useful for side-by-side texts in e.g. Latin and English. You can indicate a switch in column with the \lstinline{&} character.
410
411 \begin{table}[h!]
412 \centering
413 \begin{tabular}{ll}
414 \toprule
415 \LaTeX\ code & Formatted output \\
416 \midrule
417 \begin{lstlisting}
418 \begin{twocolprayer}
419 Sanctus, sanctus, sanctus, &
420 Holy, holy, holy, \\
421 Dominus, Deus sabaoth. &
422 Lord God of hosts.
423 \end{twocolprayer}
424 \end{lstlisting}
425 &
426 \sabon{
427 \begin{tabular}{ll}
428 Sanctus, sanctus, sanctus, & Holy, holy, holy, \\
429 Dominus, Deus sabaoth. & Lord God of hosts.
430 \end{tabular}
431 }
432 \\
433 \bottomrule
434 \end{tabular}
435 \caption{The \lstinline{twocolprayer} environment.}
436 \label{tab:env_twocolprayer}
437 \end{table}
438
439 \subsubsection{Three-column prayers with \lstinline{threecolprayer}}
440
441 Table \ref{tab:env_threecolprayer} shows how to use the \lstinline{threecolprayer} environment, which typesets prayers in three columns. This is useful for responsive prayers. You can indicate a switch in column with the \lstinline{&} character.
442
443 \begin{table}[h!]
444 \centering
445 \begin{tabular}{ll}
446 \toprule
447 \LaTeX\ code & Formatted output \\
448 \midrule
449 \begin{lstlisting}
450 \begin{threecolprayer}
451 Kyrie eleison,
452 & \textbf{Kyrie eleison,}
453 & Kyrie eleison. \\
454 \textbf{Christe eleison,}
455 & Christe eleison,
456 & \textbf{Christe eleison.} \\
457 Kyrie eleison,
458 & \textbf{Kyrie eleison,}
459 & Kyrie eleison.
460 \end{threecolprayer}
461 \end{lstlisting}
462 &
463 \sabon{
464 \begin{tabular}{lll}
465 Kyrie eleison, & \textbf{Kyrie eleison,} & Kyrie eleison. \\
466 \textbf{Christe eleison,} & Christe eleison, & \textbf{Christe eleison.} \\
467 Kyrie eleison, & \textbf{Kyrie eleison,} & Kyrie eleison.
468 \end{tabular}
469 }
470 \\
471 \bottomrule
472 \end{tabular}
473 \caption{The \lstinline{threecolprayer} environment.}
474 \label{tab:env_threecolprayer}
475 \end{table}
476
477
478 \subsubsection{Psalm typesetting}
479
480 It is possible to typeset psalms with a combination of an enumerated list and \lstinline{\psalmverse}, as shown in Table \ref{tab:psalms}.
481
482 \begin{table}[h]
483 \centering
484 \begin{xtabular}{p{.45\textwidth}p{.45\textwidth}}
485 \toprule
486 \LaTeX\ code & Formatted output \\
487 \midrule
488 \begin{lstlisting}
489 \begin{enumerate}[
490 leftmargin=*,
491 label=\textsc{\arabic*}
492 ]
493 \item \psalmverse
494 {The Lord is my shepherd:}
495 {Therefore can I lack nothing.}
496 \item \psalmverse
497 {He shall feed me
498 in a green pasture:}
499 {and lead me forth beside
500 the waters of comfort.}
501 \end{enumerate}
502 \end{lstlisting}
503 &
504 \sabon{
505 \begin{enumerate}[
506 leftmargin=*,
507 label=\textsc{\arabic*}
508 ]
509 \item \psalmverse
510 {The Lord is my shepherd:}
511 {Therefore can I lack nothing.}
512 \item \psalmverse
513 {He shall feed me
514 in a green pasture:}
515 {and lead me forth beside
516 the waters of comfort.}
517 \end{enumerate}
518 }
519 \\
520 \bottomrule
521 \end{xtabular}
522 \caption{Typesetting psalms with an enumerated list and \lstinline{\\psalmverse}.}
523 \label{tab:psalms}
524 \end{table}
525
526
527 \end{document}