Debian Codegraph @

texmf-dist/source/latex/bibleref-lds/bibleref-lds.dtx

raw
1 % \iffalse meta-comment
2 %
3 % Copyright 2012 Chad Parry
4 %
5 % This work may be distributed and/or modified under the
6 % conditions of the LaTeX Project Public License, either version 1.3
7 % of this license or (at your option) any later version.
8 % The latest version of this license is in
9 % http://www.latex-project.org/lppl.txt
10 % and version 1.3 or later is part of all distributions of LaTeX
11 % version 2005/12/01 or later.
12 %
13 % \fi
14 %
15 % \iffalse
16 %
17 %<code>
18 %<code>\NeedsTeXFormat{LaTeX2e}
19 %<code>\ProvidesPackage{bibleref-lds}[2012/02/26 v1.0 LDS Bible reference style]
20 %<code>
21 %<code>\RequirePackage{bibleref-mouth}[2012/02/26]
22 %<code>\RequirePackage{ifthen}
23 %<code>\RequirePackage{hyperref}
24 %<code>
25 %
26 %<*driver>
27 \documentclass{ltxdoc}
28 \usepackage{bibleref-lds}
29 \usepackage{afterpage}
30 \usepackage{longtable}
31 \usepackage[protrusion]{microtype}
32 \usepackage{hyperref}
33 \EnableCrossrefs
34 \CodelineIndex
35 \RecordChanges
36 \frenchspacing
37 \sloppy
38 \begin{document}
39 \DocInput{bibleref-lds.dtx}
40 \end{document}
41 %</driver>
42 % \fi
43 %
44 % \CheckSum{421}
45 %
46 % \CharacterTable
47 % {Upper-case \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z
48 % Lower-case \a\b\c\d\e\f\g\h\i\j\k\l\m\n\o\p\q\r\s\t\u\v\w\x\y\z
49 % Digits \0\1\2\3\4\5\6\7\8\9
50 % Exclamation \! Double quote \" Hash (number) \#
51 % Dollar \$ Percent \% Ampersand \&
52 % Acute accent \' Left paren \( Right paren \)
53 % Asterisk \* Plus \+ Comma \,
54 % Minus \- Point \. Solidus \/
55 % Colon \: Semicolon \; Less than \<
56 % Equals \= Greater than \> Question mark \?
57 % Commercial at \@ Left bracket \[ Backslash \\
58 % Right bracket \] Circumflex \^ Underscore \_
59 % Grave accent \` Left brace \{ Vertical bar \|
60 % Right brace \} Tilde \~}
61 %
62 % \changes{v1.0}{2012/02/26}{Initial version}
63 %
64 % \GetFileInfo{bibleref-lds.sty}
65 %
66 % \title{
67 % The \textsf{bibleref-lds} package%
68 % \thanks{This document corresponds to \textsf{bibleref-mouth}~\fileversion, dated~\filedate.}
69 % }
70 % \author{Chad Parry \\ \href{mailto:[email protected]}{\nolinkurl{[email protected]}}}
71 %
72 % \maketitle
73 %
74 % \begin{abstract}
75 % The \textsf{bibleref-lds} package is an extension of the \textsf{bibleref-mouth} package that supports references for the scriptures of The Church of Jesus Christ of Latter-day Saints (LDS).
76 % To write a reference, the document should use the command \verb|\bibleref|\marg{reference}, exactly as with the stock \textsf{bibleref-mouth} package.
77 % \end{abstract}
78 %
79 % \StopEventually{
80 % \PrintIndex
81 % }
82 %
83 % \let\origverbatim\verbatim
84 % \let\origendverbatim\endverbatim
85 % \renewenvironment{verbatim}{%
86 % \origverbatim%
87 % \microtypesetup{protrusion=false}%
88 % }{%
89 % \origendverbatim%
90 % }
91 % \newcommand*{\callback}{\meta{\textbackslash{}callback}}
92 %
93 % \section{Usage}
94 %
95 % The usage is identical to that of the \textsf{bibleref-mouth} package, and so readers should first familiarize themselves with that documentation.
96 % For example, a hypertext reference like the following can be produced by the command below:
97 % \bibleref{2 Ne 9:28-29}.
98 %
99 % \begin{verbatim}
100 %\bibleref{2 Ne 9:28-29}
101 % \end{verbatim}
102 %
103 % This package supports the canonical LDS scriptures, as listed in Table~\ref{books}.
104 % It also adds new aliases for some Bible books, as listed in Table~\ref{biblebooks}.
105 % The ``short abbreviation'' in the table is the abbreviation used on the thumb index of many editions.
106 % The table uses boldface for books that are changed from the existing \textsf{bibleref-mouth} abbreviation.
107 % Numbered books can be specified with Arabic or Roman numerals.
108 % Abbreviations may have an optional trailing period.
109 % All spaces are optional.
110 % For example, it is equally acceptable to say
111 % \verb|IINephi|,
112 % \verb|IINe.|,
113 % \verb|IINe|,
114 % \verb|2Nephi|,
115 % \verb|2Ne.|,
116 % \verb|2Ne|,
117 % \verb|II Nephi|,
118 % \verb|II Ne.|,
119 % \verb|II Ne|,
120 % \verb|2 Nephi|,
121 % \verb|2 Ne.|, or
122 % \verb|2 Ne|.
123 %
124 % This package defines two new styles: \texttt{lds} and \texttt{lds.org}.
125 % The former uses the standard abbreviations for books according to the practice in the LDS church.
126 % The latter uses the same abbreviations, and additionally creates a link to the scriptures on the official LDS website.
127 % The \texttt{lds.org} style is set as the current style, although it can be overridden by a user.
128 % Users can customize the link text using the \hyperlink{provideldsdotorgstyle}{\cs{provideldsdotorgstyle}} command.
129 %
130 % This package also renames one Bible book from ``Song of Songs'' to ``Song of Solomon.''
131 %
132 % \makeatletter
133 % \brl@foreachbook@abbrv{\providebiblebook{abbrvname}}{.}{}{ }{\&}{\brm@number@arabicspace}
134 % \brl@foreachbook@thumb{\providebiblebook{thumbname}}{.}{}{ }{\&}{\brm@number@arabicspace}
135 % \newcommand{\bookrow}[2]{#2 & \brm@bookname{abbrvname}{#1} & \brm@bookname{thumbname}{#1}\\}
136 % \begin{table}[tbh]
137 % \caption{Supported Books}\label{books}
138 % \begin{center}
139 % \begin{tabular}{lp{0.33\textwidth}p{0.33\textwidth}}
140 % \bfseries Book & \bfseries Standard Abbreviation & \bfseries Short Abbreviation\\
141 % \brl@foreachbook@full{\bookrow}{ }{-}{}{\brm@number@arabicspace}
142 % \end{tabular}
143 % \end{center}
144 % \end{table}
145 % \makeatother
146 %
147 % \makeatletter
148 % \brm@foreachbook@altabbrv{\providebiblebook{altabbrvasciiname}}{.}{\ }{\brm@number@arabicspaceascii}{\brm@number@arabicspaceascii}
149 % \brm@foreachbook@altabbrv{\providebiblebook{ldsabbrvasciiname}}{.}{\ }{\brm@number@arabicspaceascii}{\brm@number@arabicspaceascii}
150 % \brl@foreachbook@bible@abbrv{\providebiblebook{ldsabbrvasciiname}}{.}{\brm@number@arabicspaceascii}
151 % \brm@foreachbook@altabbrv{\providebiblebook{ldsabbrvname}}{.}{\ }{\brm@number@arabicspace}{\brm@number@arabicspace}
152 % \brl@foreachbook@bible@abbrv{\providebiblebook{ldsabbrvname}}{.}{\brm@number@arabicspace}
153 % \brm@foreachbook@altabbrv{\providebiblebook{ldsthumbasciiname}}{.}{\ }{\brm@number@arabicspaceascii}{\brm@number@arabicspaceascii}
154 % \brl@foreachbook@bible@thumb{\providebiblebook{ldsthumbasciiname}}{.}{\ }{\brm@number@arabicspaceascii}{\brm@number@arabicspaceascii}
155 % \brm@foreachbook@altabbrv{\providebiblebook{ldsthumbname}}{.}{\ }{\brm@number@arabicspace}{\brm@number@arabicspace}
156 % \brl@foreachbook@bible@thumb{\providebiblebook{ldsthumbname}}{.}{\ }{\brm@number@arabicspace}{\brm@number@arabicspace}
157 % \newcommand*{\comparebooks}[2]{\brm@ifsamestr{#1}{#2}{}{\bfseries}}
158 % \newcommand{\biblebookrow}[2]{\brm@ifnameexists{\brm@bookref{lds.org}{#1}}{\brm@bookname{fullname}{#1} & \comparebooks{\brm@bookname{altabbrvasciiname}{#1}}{\brm@bookname{ldsabbrvasciiname}{#1}}\brm@bookname{ldsabbrvname}{#1} & \comparebooks{\brm@bookname{altabbrvasciiname}{#1}}{\brm@bookname{ldsthumbasciiname}{#1}}\brm@bookname{ldsthumbname}{#1}\\}{}}
159 % \afterpage{
160 % \clearpage
161 % \begin{center}
162 % \begin{longtable}{p{0.34\textwidth}p{0.33\textwidth}p{0.33\textwidth}}
163 % \caption{Additional Abbreviations}\label{biblebooks}\\
164 % \bfseries Book & \bfseries Standard Abbreviation & \bfseries Short Abbreviation\\
165 % \endfirsthead
166 % \caption{Additional Abbreviations (continued)}\\
167 % \bfseries Book & \bfseries Standard Abbreviation & \bfseries Short Abbreviation\\
168 % \endhead
169 % \brm@foreachbook@full{\biblebookrow}{}{}{}{}{}{}{}{}
170 % \end{longtable}
171 % \end{center}
172 % \newpage
173 % }
174 % \makeatother
175 %
176 % \section{Implementation}
177 %
178 % All the internal macros have a name beginning with \verb|brl@|, which stands for \textsf{bibleref-lds}, so as to avoid polluting the global namespace.
179 %
180 % \subsection{Book Names}
181 %
182 % \begin{macro}{\brl@foreachbook@full}
183 % The full book names are accessible through \verb|\brl@foreachbook@full|\-\marg{callback}\-\marg{space}\-\marg{dash}\-\marg{bookof}\-\marg{booknumberstyle}
184 % The callback argument is expected to have the signature \callback\-\marg{book}\marg{bookname}.
185 % The number style argument is expected to be a function with the signature \callback\marg{number}.
186 % \begin{macrocode}
187 \newcommand*{\brl@foreachbook@full}[5]{%
188 #1{INephi}{#5{1}#4Nephi}%
189 #1{IINephi}{#5{2}#4Nephi}%
190 #1{Jacob}{#4Jacob}%
191 #1{Enos}{#4Enos}%
192 #1{Jarom}{#4Jarom}%
193 #1{Omni}{#4Omni}%
194 #1{WordsofMormon}{Words#2of#2Mormon}%
195 #1{Mosiah}{#4Mosiah}%
196 #1{Alma}{#4Alma}%
197 #1{Helaman}{#4Helaman}%
198 #1{IIINephi}{#5{3}#4Nephi}%
199 #1{IVNephi}{#5{4}#4Nephi}%
200 #1{Mormon}{#4Mormon}%
201 #1{Ether}{#4Ether}%
202 #1{Moroni}{#4Moroni}%
203 #1{DoctrineandCovenants}{Doctrine#2and#2Covenants}%
204 #1{OfficialDeclaration}{Official#2Declaration}%
205 #1{Moses}{#4Moses}%
206 #1{Abraham}{#4Abraham}%
207 #1{JosephSmith-Matthew}{Joseph#2Smith#3Matthew}%
208 #1{JosephSmith-History}{Joseph#2Smith#3History}%
209 #1{ArticlesofFaith}{Articles#2of#2Faith}%
210 }
211 % \end{macrocode}
212 % \end{macro}
213 %
214 % \begin{macro}{\brl@foreachbook@abbrv}
215 % The abbreviated book names are accessible through \verb|\brl@foreachbook@abbrv|\-\marg{callback}\-\marg{standardperiod}\-\marg{optionalperiod}\-\marg{space}\-\marg{ampersand}\-\marg{booknumberstyle}
216 % The optional period argument is for books that are normally written without a period, but which could reasonably have an alias defined which does use a period.
217 % The callback argument is expected to have the signature \callback\-\marg{book}\marg{bookname}.
218 % The number style argument is expected to be a function with the signature \callback\marg{number}.
219 % \begin{macrocode}
220 \newcommand*{\brl@foreachbook@abbrv}[6]{%
221 #1{INephi}{#6{1}Ne#2}%
222 #1{IINephi}{#6{2}Ne#2}%
223 #1{Jacob}{Jacob}%
224 #1{Enos}{Enos}%
225 #1{Jarom}{Jarom}%
226 #1{Omni}{Omni}%
227 #1{WordsofMormon}{W#3#4of#4M#3}%
228 #1{Mosiah}{Mosiah}%
229 #1{Alma}{Alma}%
230 #1{Helaman}{Hel#2}%
231 #1{IIINephi}{#6{3}Ne#2}%
232 #1{IVNephi}{#6{4}Ne#2}%
233 #1{Mormon}{Morm#2}%
234 #1{Ether}{Ether}%
235 #1{Moroni}{Moro#2}%
236 #1{DoctrineandCovenants}{D#3#5C#3}%
237 #1{OfficialDeclaration}{O#3D#3}%
238 #1{Moses}{Moses}%
239 #1{Abraham}{Abr#2}%
240 #1{JosephSmith-Matthew}{J#3S#3-M#3}%
241 #1{JosephSmith-History}{J#3S#3-H#3}%
242 #1{ArticlesofFaith}{A#3#4of#4F#3}%
243 }
244 % \end{macrocode}
245 % \end{macro}
246 %
247 % \begin{macro}{\brl@foreachbook@thumb}
248 % The shorter abbreviated book names are accessible through \verb|\brl@foreachbook@thumb|\-\marg{callback}\-\marg{period}\-\marg{space}\-\marg{ampersand}\-\marg{booknumberstyle}
249 % These are the abbreviations that are used on the thumb index of many editions.
250 % The optional period argument is for books that are normally written without a period, but which could reasonably have an alias defined which does use a period.
251 % The callback argument is expected to have the signature \callback\-\marg{book}\marg{bookname}.
252 % The number style argument is expected to be a function with the signature \callback\marg{number}.
253 % \begin{macrocode}
254 \newcommand*{\brl@foreachbook@thumb}[6]{%
255 #1{INephi}{#6{1}Ne#2}%
256 #1{IINephi}{#6{2}Ne#2}%
257 #1{Jacob}{Jac#2}%
258 #1{Enos}{Eno#2}%
259 #1{Jarom}{Jar#2}%
260 #1{Omni}{Omn#2}%
261 #1{WordsofMormon}{W#3#4Mn#3}%
262 #1{Mosiah}{Msh#2}%
263 #1{Alma}{Alma}%
264 #1{Helaman}{Hel#2}%
265 #1{IIINephi}{#6{3}Ne#2}%
266 #1{IVNephi}{#6{4}Ne#2}%
267 #1{Mormon}{Mor#2}%
268 #1{Ether}{Eth#2}%
269 #1{Moroni}{Mni#2}%
270 #1{DoctrineandCovenants}{D#3#5C#3}%
271 #1{OfficialDeclaration}{O#3D#3}%
272 #1{Moses}{Mos#2}%
273 #1{Abraham}{Abr#2}%
274 #1{JosephSmith-Matthew}{J#3S#3-M#3}%
275 #1{JosephSmith-History}{J#3S#3-H#3}%
276 #1{ArticlesofFaith}{A#3#4of#4F#3}%
277 }
278 % \end{macrocode}
279 % \end{macro}
280 %
281 % \begin{macro}{\brl@foreachbook@bible@abbrv}
282 % The modified Bible book abbrevations are accessible through \verb|\brl@foreachbook@bible@abbrv|\-\marg{callback}\-\marg{period}\-\marg{epistlenumberstyle}
283 % These are the standard abbreviations that are used in official LDS publications, but that are different from the popularly accepted abbreviations in the \textsf{bibleref-mouth} package.
284 % The callback argument is expected to have the signature \callback\-\marg{book}\marg{bookname}.
285 % The number style argument is expected to be a function with the signature \callback\marg{number}.
286 % \begin{macrocode}
287 \newcommand*{\brl@foreachbook@bible@abbrv}[3]{%
288 #1{Exodus}{Ex#2}%
289 #1{Esther}{Esth#2}%
290 #1{Ecclesiastes}{Eccl#2}%
291 #1{SongofSongs}{Song#2}%
292 #1{Hosea}{Hosea}%
293 #1{Obadiah}{Obad#2}%
294 #1{Micah}{Micah}%
295 #1{Nahum}{Nahum}%
296 #1{Philippians}{Philip#2}%
297 #1{IThessalonians}{#3{1}Thes#2}%
298 #1{IIThessalonians}{#3{2}Thes#2}%
299 #1{Titus}{Titus}%
300 #1{James}{James}%
301 #1{IJohn}{#3{1}Jn#2}%
302 #1{IIJohn}{#3{2}Jn#2}%
303 #1{IIIJohn}{#3{3}Jn#2}%
304 }
305 % \end{macrocode}
306 % \end{macro}
307 %
308 % \begin{macro}{\brl@foreachbook@bible@thumb}
309 % Some modified short Bible book abbrevations are accessible through \verb|\brl@foreachbook@bible@thumb|\-\marg{callback}\-\marg{period}\-\marg{space}\-\marg{booknumberstyle}\-\marg{epistlenumberstyle}
310 % These are the abbreviations that are used on the thumb index of many editions, and that are different from the popularly accepted abbreviations in the \textsf{bibleref-mouth} package.
311 % The callback argument is expected to have the signature \callback\-\marg{book}\marg{bookname}.
312 % The two number style arguments are expected to be functions with the signature \callback\marg{number}.
313 % \begin{macrocode}
314 \newcommand*{\brl@foreachbook@bible@thumb}[5]{%
315 #1{Exodus}{Exo#2}%
316 #1{Deuteronomy}{Deu#2}%
317 #1{Joshua}{Jos#2}%
318 #1{Judges}{Jdg#2}%
319 #1{Ruth}{Rth#2}%
320 #1{Ezra}{Ezr#2}%
321 #1{Esther}{Est#2}%
322 #1{Psalms}{Psm#2}%
323 #1{Proverbs}{Pro#2}%
324 #1{Ecclesiastes}{Ecl#2}%
325 #1{SongofSongs}{S#2#3S#2}%
326 #1{Ezekiel}{Ezk#2}%
327 #1{Joel}{Jol#2}%
328 #1{Amos}{Amo#2}%
329 #1{Obadiah}{Oba#2}%
330 #1{Jonah}{Jna#2}%
331 #1{Zephaniah}{Zph#2}%
332 #1{Zechariah}{Zch#2}%
333 #1{Matthew}{Mat#2}%
334 #1{Mark}{Mrk#2}%
335 #1{Luke}{Luk#2}%
336 #1{John}{Jhn#2}%
337 #1{Philippians}{Phl#2}%
338 #1{IThessalonians}{#5{1}Ths#2}%
339 #1{IIThessalonians}{#5{2}Ths#2}%
340 #1{Philemon}{Phm#2}%
341 #1{IJohn}{#5{1}Jhn#2}%
342 #1{IIJohn}{#5{2}Jhn#2}%
343 #1{IIIJohn}{#5{3}Jhn#2}%
344 }
345 % \end{macrocode}
346 % \end{macro}
347 %
348 % \subsection{Book Aliases}
349 %
350 % Various book aliases are provided for all the book names, including versions of the full names, the abbreviated names, and the short abbreviated names.
351 % The book numbers can be done with either Arabic or Roman numerals.
352 % The abbreviations are supported both with and without periods.
353 % An ampersand can be represented as either \verb|&| or \verb|and|.
354 % \begin{macrocode}
355 \brl@foreachbook@full{\providebiblebookalias}{}{-}{}%
356 {\brm@number@upperromanascii}
357 \brl@foreachbook@full{\providebiblebookalias}{}{-}{}%
358 {\brm@number@arabic}
359 \brl@foreachbook@abbrv{\providebiblebookalias}{}{}{}{&}%
360 {\brm@number@upperromanascii}
361 \brl@foreachbook@abbrv{\providebiblebookalias}{}{}{}{&}%
362 {\brm@number@arabic}
363 \brl@foreachbook@abbrv{\providebiblebookalias}{.}{.}{}{&}%
364 {\brm@number@upperromanascii}
365 \brl@foreachbook@abbrv{\providebiblebookalias}{.}{.}{}{&}%
366 {\brm@number@arabic}
367 \brl@foreachbook@abbrv{\providebiblebookalias}{}{}{}{and}%
368 {\brm@number@upperromanascii}
369 \brl@foreachbook@thumb{\providebiblebookalias}{}{}{}{&}%
370 {\brm@number@upperromanascii}
371 \brl@foreachbook@thumb{\providebiblebookalias}{}{}{}{&}%
372 {\brm@number@arabic}
373 \brl@foreachbook@thumb{\providebiblebookalias}{.}{.}{}{&}%
374 {\brm@number@upperromanascii}
375 \brl@foreachbook@thumb{\providebiblebookalias}{.}{.}{}{&}%
376 {\brm@number@arabic}
377 \brl@foreachbook@thumb{\providebiblebookalias}{}{}{}{and}%
378 {\brm@number@upperromanascii}
379 \brl@foreachbook@bible@abbrv{\providebiblebookalias}{}%
380 {\brm@number@upperromanascii}
381 \brl@foreachbook@bible@abbrv{\providebiblebookalias}{}%
382 {\brm@number@arabic}
383 \brl@foreachbook@bible@abbrv{\providebiblebookalias}{.}%
384 {\brm@number@upperromanascii}
385 \brl@foreachbook@bible@abbrv{\providebiblebookalias}{.}%
386 {\brm@number@arabic}
387 \brl@foreachbook@bible@thumb{\providebiblebookalias}{}{}%
388 {\brm@number@upperromanascii}{\brm@number@upperromanascii}
389 \brl@foreachbook@bible@thumb{\providebiblebookalias}{}{}%
390 {\brm@number@arabic}{\brm@number@arabic}
391 \brl@foreachbook@bible@thumb{\providebiblebookalias}{.}{}%
392 {\brm@number@upperromanascii}{\brm@number@upperromanascii}
393 \brl@foreachbook@bible@thumb{\providebiblebookalias}{.}{}%
394 {\brm@number@arabic}{\brm@number@arabic}
395 % \end{macrocode}
396 %
397 % \subsection{Formatted Book Names}
398 %
399 % Several different forms of book names are created by default.
400 % These commands define the callback as \verb|\providebiblebook{|\meta{stylename}\verb|}|, which creates a version of each book name in the given style.
401 % The LDS book names are added to the existing styles that are defined in the \textsf{bibleref-mouth} package.
402 % \begin{macrocode}
403 \brl@foreachbook@full{\providebiblebook{fullname}}{\ }{---}{}%
404 {\brm@number@arabicspace}
405 \brl@foreachbook@abbrv{\providebiblebook{jerusalem}}{}{}{\ }{\&}%
406 {\brm@number@arabicspace}
407 \brl@foreachbook@abbrv{\providebiblebook{anglosaxon}}{.}{}{\ }{\&}%
408 {\brm@number@upperromanspace}
409 \brl@foreachbook@abbrv{\providebiblebook{JEH}}{.}{}{\ }{\&}%
410 {\brm@number@arabicspace}
411 \brl@foreachbook@full{\providebiblebook{MHRA}}{\ }{---}{}%
412 {\brm@number@scromanspace}
413 \brl@foreachbook@abbrv{\providebiblebook{NTG}}{}{}{\ }{\&}%
414 {\brm@number@arabicspace}
415 \brl@foreachbook@abbrv{\providebiblebook{MLA}}{.}{}{\ }{\&}%
416 {\brm@number@arabicspace}
417 \brl@foreachbook@abbrv{\providebiblebook{chicago}}{.}{}{\ }{\&}%
418 {\brm@number@arabicspace}
419 % \end{macrocode}
420 %
421 % \subsection{Renamed Book}
422 %
423 % The book commonly called ``Song of Songs'' is known in LDS publications as ``Song of Solomon.''
424 % That name is overridden for the existing styles that use it in the \textsf{bibleref-mouth} package.
425 % \begin{macrocode}
426 \providebiblebook{fullname}{SongofSongs}{Song of Solomon}
427 \providebiblebook{text}{SongofSongs}{Song of Solomon}
428 % \end{macrocode}
429 %
430 % \subsection{LDS Style}
431 %
432 % The style of book names used in LDS publications is similar to the existing styles but not identical to any of them, so a new format is defined here.
433 % \begin{macrocode}
434 \brl@foreachbook@abbrv{\providebiblebook{lds}}%
435 {.}{}{\ }{\&}{\brm@number@arabicspace}
436 \brm@foreachbook@altabbrv{\providebiblebook{lds}}%
437 {.}{\ }{\brm@number@arabicspace}{\brm@number@arabicspace}
438 \brl@foreachbook@bible@abbrv{\providebiblebook{lds}}%
439 {.}{\brm@number@arabicspace}
440 % \end{macrocode}
441 %
442 % The style of references used in LDS publications is similar to the existing styles but not identical to any of them, so a new one is defined here.
443 % \begin{macrocode}
444 \providebiblestyle{lds}{\standardbiblestyle{lds}%
445 {\ }{:}{; }{; }{, }{--}%
446 {\brm@number@arabic}{\brm@number@arabic}%
447 {#1}{#2}{#3}}
448 % \end{macrocode}
449 %
450 % \subsection{Text Style}
451 %
452 % This style outputs a textual description of the reference.
453 % It overrides the corresponding style in the \textsf{bibleref-mouth} package, and adds support for LDS scriptures.
454 % The main difference is that not all LDS books are organized into chapters.
455 %
456 % \emph{This style depends on the non-expandable text style in the \textsf{bibleref-mouth} package, so it may not be used in an expandable context.}
457 %
458 % \begin{macro}{\brl@formatchapter}
459 % This style normally outputs a chapter with a ``chapter'' label.
460 % However, there are a few exceptions.
461 % The Doctrine and Covenants is divided into sections.
462 % The Offical Declaraions and the Articles of Faith also do not have chapters.
463 % \begin{macrocode}
464 \newcommand*{\brl@formatchapter}[1]{%
465 \brm@ifsamestr{\thebook{#1}}{DoctrineandCovenants}{%
466 section \brm@number@stomach@text{\thechapter{#1}}%
467 }{%
468 \brm@ifsamestr{\thebook{#1}}{OfficialDeclaration}{%
469 \Numberstringnum{\thechapter{#1}}%
470 }{%
471 \brm@ifsamestr{\thebook{#1}}{ArticlesofFaith}{%
472 }{%
473 chapter \brm@number@stomach@text{\thechapter{#1}}%
474 }%
475 }%
476 }%
477 }
478 % \end{macrocode}
479 % \end{macro}
480 %
481 % \begin{macro}{\brl@formatverse}
482 % This style normally outputs a verse with a ``verse'' label.
483 % However, there is one exception.
484 % The Articles of Faith are composed articles.
485 % \begin{macrocode}
486 \newcommand*{\brl@formatverse}[1]{%
487 \brm@ifsamestr{\thebook{#1}}{ArticlesofFaith}{%
488 article \brm@number@stomach@text{\theverse{#1}}%
489 }{%
490 verse \brm@number@stomach@text{\theverse{#1}}%
491 }%
492 }
493 % \end{macrocode}
494 % \end{macro}
495 %
496 % \begin{macro}{\brl@bkchsep}
497 % A book is normally separated from a chapter by a comma.
498 % However, there are a couple exceptions.
499 % The Official Declarations use a dash.
500 % The Articles of Faith don't have chapters, so they don't need a separator.
501 % \begin{macrocode}
502 \newcommand*{\brl@bkchsep}[1]{%
503 \brm@ifsamestr{\thebook{#1}}{OfficialDeclaration}{%
504 ---%
505 }{%
506 \brm@ifsamestr{\thebook{#1}}{ArticlesofFaith}{%
507 }{%
508 ,\ %
509 }%
510 }%
511 }
512 % \end{macrocode}
513 % \end{macro}
514 %
515 % \begin{macro}{\brl@chvsep}
516 % A chapter is normally separated from a verse by a space.
517 % However, there is one exception.
518 % The Articles of Faith don't have a chapter, and so they use a comma, similar to the way other books have a book separator.
519 % \begin{macrocode}
520 \newcommand*{\brl@chvsep}[1]{%
521 \brm@ifsamestr{\thebook{#1}}{ArticlesofFaith}{%
522 ,\ %
523 }{%
524 \ %
525 }%
526 }
527 % \end{macrocode}
528 % \end{macro}
529 %
530 % \begin{macro}{\brl@text@filter}
531 % A filter for standard formats is \verb|\brl@text@filter|\-\marg{lastpassage}\marg{passage}\-\marg{infixseparators}\-\marg{prefixes}\-\marg{formatters}\-\marg{delegate}.
532 % It makes sure that the correct separators are used, which depend on the book name.
533 % \begin{macrocode}
534 \newcommand*{\brl@text@filter}[6]{%
535 #6%
536 {#1}%
537 {#2}%
538 {\brm@packseparators{\brl@bkchsep{#2}}{\brl@chvsep{#2}}}%
539 {#4}%
540 {#5}%
541 }
542 % \end{macrocode}
543 % \end{macro}
544 %
545 % The style of book names needs to be extended to support LDS books.
546 % \begin{macrocode}
547 \brl@foreachbook@full{\providebiblebook{text}}{\ }{---}{Book of }%
548 {\brm@number@stomach@ordspace}
549 % \end{macrocode}
550 %
551 % The style of references uses the helpers in this section to format correct text descriptions of LDS references.
552 % No separators are given, because they would be overridden in \cs{brl@text@filter} anyway.
553 % \begin{macrocode}
554 \providebiblestyle{text}{%
555 \brm@standard@filtered%
556 {}%
557 {\brm@packpassage{,\ and\ }{,\ and\ }{,\ and\ }}%
558 {\brm@packpassage{\ to\ }{\ to\ }{\ to\ }}%
559 {\brm@packpassage%
560 {\thebookname{text}}%
561 {\brl@formatchapter}%
562 {\brl@formatverse}}%
563 {\brl@text@filter}%
564 {#1}{#2}{#3}%
565 }
566 % \end{macrocode}
567 %
568 % \subsection{Linked Style}
569 %
570 % This section defines a style that links to \url{http://www.lds.org/scriptures}.
571 %
572 % First all the books must be associated with a valid URL path component.
573 % \begin{macrocode}
574 \providebiblebook{lds.org}{Genesis}{gen}
575 \providebiblebook{lds.org}{Exodus}{ex}
576 \providebiblebook{lds.org}{Leviticus}{lev}
577 \providebiblebook{lds.org}{Numbers}{num}
578 \providebiblebook{lds.org}{Deuteronomy}{deut}
579 \providebiblebook{lds.org}{Joshua}{josh}
580 \providebiblebook{lds.org}{Judges}{judg}
581 \providebiblebook{lds.org}{Ruth}{ruth}
582 \providebiblebook{lds.org}{ISamuel}{1\_sam}
583 \providebiblebook{lds.org}{IISamuel}{2\_sam}
584 \providebiblebook{lds.org}{IKings}{1\_kgs}
585 \providebiblebook{lds.org}{IIKings}{2\_kgs}
586 \providebiblebook{lds.org}{IChronicles}{1\_chr}
587 \providebiblebook{lds.org}{IIChronicles}{2\_chr}
588 \providebiblebook{lds.org}{Ezra}{ezra}
589 \providebiblebook{lds.org}{Nehemiah}{neh}
590 \providebiblebook{lds.org}{Esther}{esth}
591 \providebiblebook{lds.org}{Job}{job}
592 \providebiblebook{lds.org}{Psalms}{ps}
593 \providebiblebook{lds.org}{Proverbs}{prov}
594 \providebiblebook{lds.org}{Ecclesiastes}{eccl}
595 \providebiblebook{lds.org}{SongofSongs}{song}
596 \providebiblebook{lds.org}{Isaiah}{isa}
597 \providebiblebook{lds.org}{Jeremiah}{jer}
598 \providebiblebook{lds.org}{Lamentations}{lam}
599 \providebiblebook{lds.org}{Ezekiel}{ezek}
600 \providebiblebook{lds.org}{Daniel}{dan}
601 \providebiblebook{lds.org}{Hosea}{hosea}
602 \providebiblebook{lds.org}{Joel}{joel}
603 \providebiblebook{lds.org}{Amos}{amos}
604 \providebiblebook{lds.org}{Obadiah}{obad}
605 \providebiblebook{lds.org}{Jonah}{jonah}
606 \providebiblebook{lds.org}{Micah}{micah}
607 \providebiblebook{lds.org}{Nahum}{nahum}
608 \providebiblebook{lds.org}{Habakkuk}{hab}
609 \providebiblebook{lds.org}{Zephaniah}{zeph}
610 \providebiblebook{lds.org}{Haggai}{hag}
611 \providebiblebook{lds.org}{Zechariah}{zech}
612 \providebiblebook{lds.org}{Malachi}{mal}
613 \providebiblebook{lds.org}{Matthew}{matt}
614 \providebiblebook{lds.org}{Mark}{mark}
615 \providebiblebook{lds.org}{Luke}{luke}
616 \providebiblebook{lds.org}{John}{john}
617 \providebiblebook{lds.org}{Acts}{acts}
618 \providebiblebook{lds.org}{Romans}{rom}
619 \providebiblebook{lds.org}{ICorinthians}{1\_cor}
620 \providebiblebook{lds.org}{IICorinthians}{2\_cor}
621 \providebiblebook{lds.org}{Galatians}{gal}
622 \providebiblebook{lds.org}{Ephesians}{eph}
623 \providebiblebook{lds.org}{Philippians}{philip}
624 \providebiblebook{lds.org}{Colossians}{col}
625 \providebiblebook{lds.org}{IThessalonians}{1\_thes}
626 \providebiblebook{lds.org}{IIThessalonians}{2\_thes}
627 \providebiblebook{lds.org}{ITimothy}{1\_tim}
628 \providebiblebook{lds.org}{IITimothy}{2\_tim}
629 \providebiblebook{lds.org}{Titus}{titus}
630 \providebiblebook{lds.org}{Philemon}{philem}
631 \providebiblebook{lds.org}{Hebrews}{heb}
632 \providebiblebook{lds.org}{James}{james}
633 \providebiblebook{lds.org}{IPeter}{1\_pet}
634 \providebiblebook{lds.org}{IIPeter}{2\_pet}
635 \providebiblebook{lds.org}{IJohn}{1\_jn}
636 \providebiblebook{lds.org}{IIJohn}{2\_jn}
637 \providebiblebook{lds.org}{IIIJohn}{3\_jn}
638 \providebiblebook{lds.org}{Jude}{jude}
639 \providebiblebook{lds.org}{Revelation}{rev}
640 \providebiblebook{lds.org}{INephi}{1\_ne}
641 \providebiblebook{lds.org}{IINephi}{2\_ne}
642 \providebiblebook{lds.org}{Jacob}{jacob}
643 \providebiblebook{lds.org}{Enos}{enos}
644 \providebiblebook{lds.org}{Jarom}{jarom}
645 \providebiblebook{lds.org}{Omni}{omni}
646 \providebiblebook{lds.org}{WordsofMormon}{w\_of\_m}
647 \providebiblebook{lds.org}{Mosiah}{mosiah}
648 \providebiblebook{lds.org}{Alma}{alma}
649 \providebiblebook{lds.org}{Helaman}{hel}
650 \providebiblebook{lds.org}{IIINephi}{3\_ne}
651 \providebiblebook{lds.org}{IVNephi}{4\_ne}
652 \providebiblebook{lds.org}{Mormon}{morm}
653 \providebiblebook{lds.org}{Ether}{ether}
654 \providebiblebook{lds.org}{Moroni}{moro}
655 \providebiblebook{lds.org}{DoctrineandCovenants}{dc}
656 \providebiblebook{lds.org}{OfficialDeclaration}{od}
657 \providebiblebook{lds.org}{Moses}{moses}
658 \providebiblebook{lds.org}{Abraham}{abr}
659 \providebiblebook{lds.org}{JosephSmith-Matthew}{js\_m}
660 \providebiblebook{lds.org}{JosephSmith-History}{js\_h}
661 \providebiblebook{lds.org}{ArticlesofFaith}{a\_of\_f}
662 % \end{macrocode}
663 %
664 % This style emits a URL that points to \url{http://scriptures.lds.org/}.
665 % There is a newer URL at \url{http://lds.org/scriptures/}, but with the older URL the anchors are placed better.
666 % The older URL will redirect to the newer URL.
667 % \begin{macrocode}
668 \providebiblestyle{lds.org-url}{%
669 http://scriptures.lds.org/%
670 \thebookname{lds.org}{#1}/%
671 \ifhaschapter{#1}{%
672 \thechapter{#1}/%
673 \ifhasverse{#1}{%
674 \theverse{#1}%
675 }{%
676 }%
677 }{%
678 }%
679 \brl@ldsdotorgurl@passage{#1}{#2}{-}%
680 #3{
681 \brl@ldsdotorgurl@list{\ifhasbook{#2}{#2}{#1}}%
682 }{%
683 }%
684 \ifhasverse{#1}{%
685 \#\theverse{#1}%
686 }{%
687 }%
688 }
689 % \end{macrocode}
690 %
691 % \begin{macro}{\brl@ldsdotorgurl@passage}
692 % A single portion of the URL for a passage is generated by \verb|\brl@ldsdotorgurl@passage|\-\marg{lastpassage}\-\marg{passage}\-\marg{separator}.
693 % \begin{macrocode}
694 \newcommand*{\brl@ldsdotorgurl@passage}[3]{%
695 \ifhasbook{#2}{%
696 \ifsamebook{#1}{#2}{%
697 \ifsamechapter{#1}{#2}{%
698 \ifsameverse{#1}{#2}{%
699 }{%
700 #3\theverse{#2}%
701 }%
702 }{%
703 \brm@error{Links cannot span chapters}%
704 }%
705 }{%
706 \brm@error{Links cannot span books}%
707 }%
708 }{%
709 }%
710 }
711 % \end{macrocode}
712 % \end{macro}
713 %
714 % \begin{macro}{\brl@ldsdotorgurl@list}
715 % A portion of the URL for lists of verses is generated by \verb|\brl@ldsdotorgurl@passage|\-\marg{lastpassage}\-\marg{beginpassage}\-\marg{endpassage}\-\marg{list}.
716 % \begin{macrocode}
717 \newcommand*{\brl@ldsdotorgurl@list}[4]{%
718 \brl@ldsdotorgurl@passage{#1}{#2}{,}%
719 \brl@ldsdotorgurl@passage{#2}{#3}{-}%
720 #4{
721 \brl@ldsdotorgurl@list{\ifhasbook{#3}{#3}{#2}}%
722 }{%
723 }%
724 }
725 % \end{macrocode}
726 % \end{macro}
727 %
728 % \begin{macro}{\provideldsdotorgstyle}
729 % \hypertarget{provideldsdotorgstyle}{}
730 % Different users might wish to define links for a variety of styles.
731 % For example, a user might wish to have either full text or abbreviated text being linked.
732 % To provide this flexibility, this command will define a new link style.
733 % There are more than nine parameters that are needed, and \TeX only allows nine parameters to any one command.
734 % The workaround is to consume the first nine arguments in this command and then consume the rest of the arguments in \cs{brl@ldsdotorg@consumeargs}.
735 % The signature, including all parameters, is \verb|\provideldsdotorgstyle|\-\marg{stylename}\-\marg{bookstyle}\-\marg{bkchsep}\marg{chvsep}\-\marg{bksep}\marg{chsep}\marg{vsep}\-\marg{rangesep}\-\marg{chapterstyle}\-\marg{versestyle}.
736 % The user first gives the name for this new style, and then the name for the style of book names, and then the formatting for the link text.
737 %
738 % This command is not able to take an arbitrary style name to use as the link text, like \cs{providebiblegatewaystyle} can, because the link text needs to be divided into multiple links for each chapter.
739 % Links to the LDS website cannot span chapter boundaries.
740 % \begin{macrocode}
741 \newcommand*{\provideldsdotorgstyle}[8]{%
742 \brl@ldsdotorg@consumeargs{#1}{#2}%
743 {\brm@packseparators{#3}{#4}}%
744 {\brm@packpassage{#5}{#6}{#7}}%
745 {\brm@packpassage{#8}{#8}{#8}}%
746 }
747 % \end{macrocode}
748 % \end{macro}
749 %
750 % \begin{macro}{\brl@ldsdotorg@consumeargs}
751 % This command helps collect arguments by consuming five arguments from \cs{provideldsdotorgstyle} and two remaining arguments for the number formatters.
752 % It's signature is \verb|\brl@ldsdotorg@consumeargs|\-\marg{stylename}\-\marg{bookstyle}\-\marg{infixseparators}\-\marg{listseparators}\-\marg{rangeseparators}\-\marg{chapterstyle}\-\marg{versestyle}.
753 % \begin{macrocode}
754 \newcommand*{\brl@ldsdotorg@consumeargs}[7]{%
755 \brl@ldsdotorg@providestyle{#1}{#3}{#4}{#5}%
756 {\brm@packpassage{\thebookname{#2}}%
757 {\brm@formatchapter{#6}}%
758 {\brm@formatverse{#7}}}%
759 }
760 % \end{macrocode}
761 % \end{macro}
762 %
763 % \begin{macro}{\brl@ldsdotorg@providestyle}
764 % The actual link style is created by the \verb|\brl@ldsdotorg@providestyle|\-\marg{stylename}\-\marg{infixseparators}\-\marg{listseparators}\-\marg{rangeseparators}\-\marg{formatters} command.
765 % \begin{macrocode}
766 \newcommand*{\brl@ldsdotorg@providestyle}[5]{%
767 \providebiblestyle{#1}{%
768 \brl@ldsdotorg@style{#2}{#3}{#4}{#5}{##1}{##2}{##3}%
769 }%
770 }
771 % \end{macrocode}
772 % \end{macro}
773 %
774 % \begin{macro}{\brl@ldsdotorg@style}
775 % The link style is generated by the \verb|\brl@ldsdotorg@style|\-\marg{infixseparators}\-\marg{listseparators}\-\marg{rangeseparators}\-\marg{formatters}\-\marg{beginpassage}\-\marg{endpassage}\-\marg{list} command.
776 % \begin{macrocode}
777 \newcommand*{\brl@ldsdotorg@style}[7]{%
778 \brl@ldsdotorg@range%
779 {\brm@packpassage{}{}{}}%
780 {#5}{#6}{#1}%
781 {\brm@packpassage{}{}{}}%
782 {#3}{#4}%
783 #7{%
784 \brl@ldsdotorg@list{#1}{#2}{#3}{#4}{\ifhasbook{#6}{#6}{#5}}%
785 }{%
786 }%
787 }
788 % \end{macrocode}
789 % \end{macro}
790 %
791 % \begin{macro}{\brl@ldsdotorg@list}
792 % Additional references in a list are generated by the \verb|\brl@ldsdotorg@list|\-\marg{infixseparators}\-\marg{listseparators}\-\marg{rangeseparators}\-\marg{formatters}\-\marg{lastpassage}\-\marg{beginpassage}\-\marg{endpassage}\-\marg{list} command.
793 % \begin{macrocode}
794 \newcommand*{\brl@ldsdotorg@list}[8]{%
795 \brl@ldsdotorg@range{#5}{#6}{#7}{#1}{#2}{#3}{#4}%
796 #8{%
797 \brl@ldsdotorg@list{#1}{#2}{#3}{#4}{\ifhasbook{#7}{#7}{#6}}%
798 }{%
799 }%
800 }
801 % \end{macrocode}
802 % \end{macro}
803 %
804 % \begin{macro}{\brl@number@empty}
805 % In order to output only the punctuation for a passage, there must be a way to suppress the output of the chapter and verse numbers.
806 % A special number formatter for this is \verb|\brl@number@empty|\-\marg{number}.
807 % It always outputs the empty string.
808 % \begin{macrocode}
809 \newcommand*{\brl@number@empty}[1]{}
810 % \end{macrocode}
811 % \end{macro}
812 %
813 % \begin{macro}{\brl@ldsdotorg@range}
814 % Ranges of references are generated by the \verb|\brl@ldsdotorg@range|\-\marg{lastpassage}\-\marg{beginpassage}\-\marg{endpassage}\-\marg{infixseparators}\-\marg{listseparators}\-\marg{rangeseparators}\-\marg{formatters} command.
815 % It decides which punctuation would be necessary and then delegates to \cs{brl@ldsdotorg@href}.
816 % The punctuation is not straightforward, because sometimes a reference must be split into multiple separate links.
817 % Also, in between the links, there might be some punctuation that does not link anywhere.
818 % This can be done using the regular \cs{brm@standard@passage} helper.
819 % Sometimes the helper is invoked with no punctuation, so it outputs only a formatted passage.
820 % Sometimes it is invoked with empty number formatters and only punctuation, so it outputs only the delimiters around a passage.
821 % \begin{macrocode}
822 \newcommand*{\brl@ldsdotorg@range}[7]{%
823 \brl@ldsdotorg@href{#2}{#3}{%
824 \brm@standard@passage{#1}{#2}%
825 {\brm@packpassage{}{}{}}%
826 {#5}%
827 {\brm@packpassage%
828 {\brl@number@empty}%
829 {\brl@number@empty}%
830 {\brl@number@empty}}%
831 }{%
832 \brm@standard@passage{#1}{#2}{#4}%
833 {\brm@packpassage{}{}{}}%
834 {#7}%
835 }{%
836 \brm@standard@passage{#2}{#3}%
837 {\brm@packpassage{}{}{}}%
838 {#6}%
839 {\brm@packpassage%
840 {\brl@number@empty}%
841 {\brl@number@empty}%
842 {\brl@number@empty}}%
843 }{%
844 \brm@standard@passage{#2}{#3}{#4}{\brm@packpassage{}{}{}}{#7}%
845 }%
846 }
847 % \end{macrocode}
848 % \end{macro}
849 %
850 % \begin{macro}{\brl@ldsdotorg@href}
851 % A single range of references that has been checked by \cs{brl@ldsdotorg@range} is processed further by \verb|\brl@ldsdotorg@href|\-\marg{beginpassage}\-\marg{endpassage}\-\marg{prefix}\-\marg{formattedbeginpassage}\-\marg{rangeseparator}\-\marg{formattedendpassage}.
852 % \begin{macrocode}
853 \newcommand*{\brl@ldsdotorg@href}[6]{%
854 \ifsamebook{#1}{#2}{%
855 \ifsamechapter{#1}{#2}{%
856 \brl@ldsdotorg@samechapter{#1}{#2}{#3}{#4}{#5}{#6}%
857 }{%
858 \brl@ldsdotorg@spanchapter{#1}{#2}{#3}{#4}{#5}{#6}%
859 }%
860 }{%
861 \brl@ldsdotorg@spanchapter{#1}{#2}{#3}{#4}{#5}{#6}%
862 }%
863 }
864 % \end{macrocode}
865 % \end{macro}
866 %
867 % \begin{macro}{\brl@ldsdotorg@samechapter}
868 % If a reference is to a range of verses within one chapter, then the link is generated by \verb|\brl@ldsdotorg@samechapter|\-\marg{beginpassage}\-\marg{endpassage}\-\marg{prefix}\-\marg{formattedbeginpassage}\-\marg{rangeseparator}\-\marg{formattedendpassage}.
869 % \begin{macrocode}
870 \newcommand*{\brl@ldsdotorg@samechapter}[6]{%
871 #3%
872 \href{%
873 \brm@delegatestyle{lds.org-url}{#1}{#2}{\brm@nillist}%
874 }{%
875 #4#5#6%
876 }%
877 }
878 % \end{macrocode}
879 % \end{macro}
880 %
881 % \begin{macro}{\brl@ldsdotorg@spanchapter}
882 % If a reference is to a range of verses that are not within one chapter, then the links are generated by \verb|\brl@ldsdotorg@spanchapter|\-\marg{beginpassage}\-\marg{endpassage}\-\marg{prefix}\-\marg{formattedbeginpassage}\-\marg{rangeseparator}\-\marg{formattedendpassage}.
883 % The begin and end of the range have to be separate links because a single link cannot span chapters.
884 % \begin{macrocode}
885 \newcommand*{\brl@ldsdotorg@spanchapter}[6]{%
886 #3%
887 \href{%
888 \brm@delegatestyle{lds.org-url}{#1}%
889 {\brm@packpassage{}{}{}}%
890 {\brm@nillist}%
891 }{%
892 #4%
893 }%
894 #5%
895 \ifhasbook{#2}{%
896 \href{%
897 \brm@delegatestyle{lds.org-url}{#2}%
898 {\brm@packpassage{}{}{}}%
899 {\brm@nillist}%
900 }{%
901 #6%
902 }%
903 }{%
904 }%
905 }
906 % \end{macrocode}
907 % \end{macro}
908 %
909 % This style uses the standard LDS abbreviations and has links to the official LDS website.
910 % This is the default style if it has not been overridden by the user.
911 % \begin{macrocode}
912 \provideldsdotorgstyle{lds.org}{lds}%
913 {\ }{:}{; }{; }{, }{--}%
914 {\brm@number@arabic}{\brm@number@arabic}
915 % \end{macrocode}
916 %
917 % This style uses the full names of books and has links to the offical LDS website.
918 % A user can choose this style with the following command.
919 %
920 % \begin{verbatim}
921 %\setbiblestyle{lds.org-fullname}
922 % \end{verbatim}
923 %
924 % \begin{macrocode}
925 \provideldsdotorgstyle{lds.org-fullname}{fullname}%
926 {\ }{:}{; }{;}{,}{--}%
927 {\brm@number@arabic}{\brm@number@arabic}
928 % \end{macrocode}
929 %
930 % \subsection{Default Style}
931 %
932 % The default style for documents that don't override it is the one that outputs the full name of the books.
933 % \begin{macrocode}
934 \setbiblestyle{lds.org}
935 % \end{macrocode}
936 % \Finale
937 \endinput