| 1 |
% \iffalse meta-comment |
| 2 |
% |
| 3 |
% Copyright (c) 2026 David Purton <[email protected]> |
| 4 |
% |
| 5 |
% This work may be distributed and/or modified under the conditions of |
| 6 |
% the LaTeX Project Public License, either version 1.3c of this license |
| 7 |
% or (at your option) any later version. The latest version of this |
| 8 |
% license is in |
| 9 |
% http://www.latex-project.org/lppl.txt |
| 10 |
% and version 1.3c or later is part of all distributions of LaTeX |
| 11 |
% version 2005/12/01 or later. |
| 12 |
% |
| 13 |
%<*driver> |
| 14 |
\RequirePackage{pdfmanagement} |
| 15 |
\documentclass[a4paper]{ltxdoc} |
| 16 |
\usepackage{microtype} |
| 17 |
\usepackage{mlmodern} |
| 18 |
\usepackage{multicol} |
| 19 |
\usepackage{enumitem} |
| 20 |
\usepackage[font=small, skip=6pt]{caption} |
| 21 |
\usepackage{graphicx} |
| 22 |
\usepackage{xcolor} |
| 23 |
\usepackage{listings} |
| 24 |
\usepackage{bibleref-sbl} |
| 25 |
|
| 26 |
\newcommand{\testbook}[1]{% |
| 27 |
\item[\bibleverse{#1}] {\brsblfullname\bibleverse{#1}} |
| 28 |
} |
| 29 |
|
| 30 |
\setlist[description]{nosep, font=\normalfont, labelwidth=2cm, leftmargin=3cm, |
| 31 |
topsep=\medskipamount} |
| 32 |
|
| 33 |
\AddToHook{env/macrocode/before}{% |
| 34 |
\addvspace{\medskipamount}} |
| 35 |
|
| 36 |
\AddToHook{env/macro/before}{% |
| 37 |
\addvspace{\medskipamount}} |
| 38 |
|
| 39 |
\begin{document} |
| 40 |
\DocInput{\jobname.dtx} |
| 41 |
\end{document} |
| 42 |
%</driver> |
| 43 |
% \fi |
| 44 |
% |
| 45 |
% \title{The \pkg{bibleref-sbl} Package} |
| 46 |
% \author{David Purton\thanks{Email: \url{[email protected]}}} |
| 47 |
% \date{2026-04-04 v1.0} |
| 48 |
% |
| 49 |
% \maketitle |
| 50 |
% |
| 51 |
% \begin{abstract} |
| 52 |
% The \pkg{bibleref-sbl} package extends the \pkg{bibleref} and |
| 53 |
% \pkg{bibleref-parse} packages to support Bible book names as specified by |
| 54 |
% the \emph{Society of Biblical Literature Handbook of |
| 55 |
% Style}.\footnote{\emph{The SBL Handbook of Style: For Biblical Studies and |
| 56 |
% Related Disciplines}, 2nd ed.\@ (SBL Press, 2014).} This includes |
| 57 |
% adjustment of abbreviations, addition of extra Deuterocanonical books, an |
| 58 |
% interface for acceptable options and correct |
| 59 |
% index sorting. |
| 60 |
% \end{abstract} |
| 61 |
% |
| 62 |
% \tableofcontents |
| 63 |
% |
| 64 |
% \section{Introduction} |
| 65 |
% |
| 66 |
% \subsection{Usage} |
| 67 |
% |
| 68 |
% For usage, see the \pkg{bibleref} documentation. This package also works |
| 69 |
% with \pkg{bibleref-parse}. Package options and commands unique to |
| 70 |
% \pkg{bibleref-sbl} are documented below. |
| 71 |
% |
| 72 |
% Abbreviated book names have been added to ensure that all SBL abbreviations |
| 73 |
% can be used with \cs{bibleverse} and \cs{ibibleverse}, though spaces should |
| 74 |
% be omitted. See Table \ref{examplereferences}. |
| 75 |
% |
| 76 |
% \begin{table} |
| 77 |
% \centering |
| 78 |
% \caption{Example Bible references}\label{examplereferences} |
| 79 |
% \begin{tabular}{ll} |
| 80 |
% |\bibleverse{1Sam}(1:1)| & \bibleverse{1Sam}(1:1) \\ |
| 81 |
% |\bibleverse{Ps}(8:)| & \bibleverse{Ps}(8:) \\ |
| 82 |
% |\bibleverse{Pss}(1-2:)| & \bibleverse{Pss}(1-2:) \\ |
| 83 |
% |\bibleverse{SgThree}(:2-4)| & \bibleverse{SgThree}(:2-4) \\ |
| 84 |
% |\bibleverse{Ps151}(:3)| & \bibleverse{Ps151}(:3) \\ |
| 85 |
% |\bibleverse{1Cor}(10:31-11:1)| & \bibleverse{1Cor}(10:31-11:1) \\ |
| 86 |
% \end{tabular} |
| 87 |
% \end{table} |
| 88 |
% |
| 89 |
% \subsection{Bug Reports and Feature Requests} |
| 90 |
% |
| 91 |
% Bug reports and feature requests can be made at the \pkg{sbltex} GitHub |
| 92 |
% repository. See \url{https://github.com/dcpurton/sbltex}. |
| 93 |
% |
| 94 |
% \section{Package Options} |
| 95 |
% |
| 96 |
% \begin{macro}{cant} |
| 97 |
% \SetKeys[brsbl]{cant} |
| 98 |
% Use Canticles instead of Song of Songs, e.g., |
| 99 |
% \begin{description} |
| 100 |
% \testbook{Cant} |
| 101 |
% \end{description} |
| 102 |
% \end{macro} |
| 103 |
% |
| 104 |
% \begin{macro}{eccl} |
| 105 |
% \SetKeys[brsbl]{eccl} |
| 106 |
% Use Ecclesiastes instead of Qoheleth, e.g.,\hfill\emph{(Default)} |
| 107 |
% \begin{description} |
| 108 |
% \testbook{Eccl} |
| 109 |
% \end{description} |
| 110 |
% \end{macro} |
| 111 |
% |
| 112 |
% \begin{macro}{englishorder} |
| 113 |
% Use English order for Old Testament books in index.\hfill\emph{(Default)} |
| 114 |
% |
| 115 |
% \medskip |
| 116 |
% |
| 117 |
% \noindent This option sets \cs{brsblot} to `Old Testament/Hebrew Bible'. |
| 118 |
% \end{macro} |
| 119 |
% |
| 120 |
% \begin{macro}{hebreworder} |
| 121 |
% Use Hebrew order for Old Testament books in index. |
| 122 |
% |
| 123 |
% \medskip |
| 124 |
% |
| 125 |
% \noindent This option sets \cs{brsblot} to `Hebrew Bible/Old Testament'. |
| 126 |
% \end{macro} |
| 127 |
% |
| 128 |
% \begin{macro}{makeindexsorting} |
| 129 |
% Set up Bible book order sorting for |makeindex|.\hfill\emph{(Default)} |
| 130 |
% |
| 131 |
% \medskip |
| 132 |
% |
| 133 |
% \noindent This option sets up sorting for |makeindex| so Bible books sort |
| 134 |
% in Bible book order rather than alphabetical order. You might set this to |
| 135 |
% |false| if you are using |xindy| for sorting. |
| 136 |
% |
| 137 |
% This options must be set at load time. |
| 138 |
% \end{macro} |
| 139 |
% |
| 140 |
% \begin{macro}{qoh} |
| 141 |
% \SetKeys[brsbl]{qoh} |
| 142 |
% Use Qoheleth instead of Ecclesiastes, e.g., |
| 143 |
% \begin{description} |
| 144 |
% \testbook{Qoh} |
| 145 |
% \end{description} |
| 146 |
% \end{macro} |
| 147 |
% |
| 148 |
% \begin{macro}{song} |
| 149 |
% \SetKeys[brsbl]{song} |
| 150 |
% Use Song of Songs instead of Canticles, e.g.,\hfill\emph{(Default)} |
| 151 |
% \begin{description} |
| 152 |
% \testbook{Song} |
| 153 |
% \end{description} |
| 154 |
% \end{macro} |
| 155 |
% |
| 156 |
% \section{Commands} |
| 157 |
% |
| 158 |
% \begin{macro}{\brsblabbrvname} |
| 159 |
% Activate SBL abbreviations for book names. |
| 160 |
% \end{macro} |
| 161 |
% |
| 162 |
% \begin{macro}{\brsblfullname} |
| 163 |
% Activate SBL full names for book names. |
| 164 |
% \end{macro} |
| 165 |
% |
| 166 |
% \begin{macro}{\brsbldefaults} |
| 167 |
% Set SBL default format and delimiters. |
| 168 |
% \end{macro} |
| 169 |
% |
| 170 |
% \begin{macro}{\brsblot, \brsbldb, \brsblnt} |
| 171 |
% Name of categories for Old Testament, Deuterocanonical books and New |
| 172 |
% Testament books used in index. They default to `Old Testament/Hebrew |
| 173 |
% Bible', `Deuterocanonical Books' and `New Testament' respectively. If the |
| 174 |
% option |hebreworder| is set then \cs{brsblot} defaults to `Hebrew |
| 175 |
% Bible/Old Testament'. |
| 176 |
% \end{macro} |
| 177 |
% |
| 178 |
% \begin{macro}{\Bibleverse, \iBibleverse} |
| 179 |
% At the beginning of a sentence the full book name should be used rather |
| 180 |
% than an abbreviation. \cs{Bibleverse} and \cs{iBibleverse} provide |
| 181 |
% variants of \cs{bibleverse} and \cs{ibibleverse} to handle this. |
| 182 |
% \end{macro} |
| 183 |
% |
| 184 |
% \begin{macro}{\pBibleverse, \piBibleverse} |
| 185 |
% If \pkg{bibleref-parse} is loaded define \cs{pBibleverse} and |
| 186 |
% \cs{piBibleverse} which use \cs{Bibleverse} and \cs{iBibleverse} |
| 187 |
% respectively. |
| 188 |
% \end{macro} |
| 189 |
% |
| 190 |
% \begin{macro}{\pibible} |
| 191 |
% The \pkg{bibleref-parse} package is missing this function which is |
| 192 |
% analogous to the \pkg{bibleref} \cs{ibible} function. This package adds it |
| 193 |
% for completeness and consistency. |
| 194 |
% \end{macro} |
| 195 |
% |
| 196 |
% \section{Supported Book Names} |
| 197 |
% |
| 198 |
% \enlargethispage{1ex} |
| 199 |
% |
| 200 |
% \subsection{\brsblot} |
| 201 |
% |
| 202 |
% \begin{multicols}{2} |
| 203 |
% \begin{description} |
| 204 |
% \testbook{Gen} |
| 205 |
% \testbook{Exod} |
| 206 |
% \testbook{Lev} |
| 207 |
% \testbook{Num} |
| 208 |
% \testbook{Deut} |
| 209 |
% \testbook{Josh} |
| 210 |
% \testbook{Judg} |
| 211 |
% \testbook{Ruth} |
| 212 |
% \testbook{1Sam} |
| 213 |
% \testbook{1Kgdms} |
| 214 |
% \testbook{2Sam} |
| 215 |
% \testbook{2Kgdms} |
| 216 |
% \testbook{1Kgs} |
| 217 |
% \testbook{3Kgdms} |
| 218 |
% \testbook{2Kgs} |
| 219 |
% \testbook{4Kgdms} |
| 220 |
% \testbook{1Chr} |
| 221 |
% \testbook{2Chr} |
| 222 |
% \testbook{Ezra} |
| 223 |
% \testbook{Neh} |
| 224 |
% \testbook{Esth} |
| 225 |
% \testbook{Job} |
| 226 |
% \testbook{Ps} |
| 227 |
% \testbook{Pss} |
| 228 |
% \testbook{Prov} |
| 229 |
% \testbook{Eccl} |
| 230 |
% \testbook{Song} |
| 231 |
% \testbook{Isa} |
| 232 |
% \testbook{Jer} |
| 233 |
% \testbook{Lam} |
| 234 |
% \testbook{Ezek} |
| 235 |
% \testbook{Dan} |
| 236 |
% \testbook{Hos} |
| 237 |
% \testbook{Joel} |
| 238 |
% \testbook{Amos} |
| 239 |
% \testbook{Obad} |
| 240 |
% \testbook{Jonah} |
| 241 |
% \testbook{Mic} |
| 242 |
% \testbook{Nah} |
| 243 |
% \testbook{Hab} |
| 244 |
% \testbook{Zeph} |
| 245 |
% \testbook{Hag} |
| 246 |
% \testbook{Zech} |
| 247 |
% \testbook{Mal} |
| 248 |
% \end{description} |
| 249 |
% \end{multicols} |
| 250 |
% |
| 251 |
% \subsection{\brsbldb} |
| 252 |
% |
| 253 |
% \begin{multicols}{2} |
| 254 |
% \begin{description} |
| 255 |
% \testbook{Tob} |
| 256 |
% \testbook{Jdt} |
| 257 |
% \testbook{AddEsth} |
| 258 |
% \testbook{Wis} |
| 259 |
% \testbook{Sir} |
| 260 |
% \testbook{Bar} |
| 261 |
% \testbook{EpJer} |
| 262 |
% \testbook{AddDan} |
| 263 |
% \testbook{PrAzar} |
| 264 |
% \testbook{SgThree} |
| 265 |
% \testbook{Sus} |
| 266 |
% \testbook{Bel} |
| 267 |
% \testbook{1Macc} |
| 268 |
% \testbook{2Macc} |
| 269 |
% \testbook{1Esd} |
| 270 |
% \testbook{PrMan} |
| 271 |
% \testbook{Ps151} |
| 272 |
% \testbook{3Macc} |
| 273 |
% \testbook{2Esd} |
| 274 |
% \testbook{4Macc} |
| 275 |
% \end{description} |
| 276 |
% \end{multicols} |
| 277 |
% |
| 278 |
% \subsection{\brsblnt} |
| 279 |
% |
| 280 |
% \begin{multicols}{2} |
| 281 |
% \begin{description} |
| 282 |
% \testbook{Matt} |
| 283 |
% \testbook{Mark} |
| 284 |
% \testbook{Luke} |
| 285 |
% \testbook{John} |
| 286 |
% \testbook{Acts} |
| 287 |
% \testbook{Rom} |
| 288 |
% \testbook{1Cor} |
| 289 |
% \testbook{2Cor} |
| 290 |
% \testbook{Gal} |
| 291 |
% \testbook{Eph} |
| 292 |
% \testbook{Phil} |
| 293 |
% \testbook{Col} |
| 294 |
% \testbook{1Thess} |
| 295 |
% \testbook{2Thess} |
| 296 |
% \testbook{1Tim} |
| 297 |
% \testbook{2Tim} |
| 298 |
% \testbook{Titus} |
| 299 |
% \testbook{Phlm} |
| 300 |
% \testbook{Heb} |
| 301 |
% \testbook{Jas} |
| 302 |
% \testbook{1Pet} |
| 303 |
% \testbook{2Pet} |
| 304 |
% \testbook{1John} |
| 305 |
% \testbook{2John} |
| 306 |
% \testbook{3John} |
| 307 |
% \testbook{Jude} |
| 308 |
% \testbook{Rev} |
| 309 |
% \end{description} |
| 310 |
% \end{multicols} |
| 311 |
% |
| 312 |
% \section{Indexing} |
| 313 |
% |
| 314 |
% By default books will sort in Bible book order with |makeindex|. This can be |
| 315 |
% disabled by passing |makeindexsorting=false| to the \pkg{bibleref-sbl} |
| 316 |
% package at load time. |
| 317 |
% |
| 318 |
% Sorting is set up using the \cs{biblerefmap} command and using a following |
| 319 |
% format: |
| 320 |
% |
| 321 |
% \begin{center} |
| 322 |
% |\biblerefmap{|\meta{book name}|}{|\meta{category order}|@|\meta{category |
| 323 |
% text}|!|\meta{book order}|}| |
| 324 |
% \end{center} |
| 325 |
% where |
| 326 |
% \begin{center} |
| 327 |
% \begin{tabular}{rcc} |
| 328 |
% & \meta{category order} & \meta{category text} \\ |
| 329 |
% Old Testament/Hebrew Bible & 10 & \cs{brsblot} \\ |
| 330 |
% Deuterocanonical Books & 20 & \cs{brsbldb} \\ |
| 331 |
% New Testament & 30 & \cs{brsblnt} \\ |
| 332 |
% \end{tabular} |
| 333 |
% \end{center} |
| 334 |
% So, for Genesis: |
| 335 |
% \begin{center} |
| 336 |
% |\biblerefmap{Gen}{10@\brsblot !01}| |
| 337 |
% \end{center} |
| 338 |
% And Revelation: |
| 339 |
% \begin{center} |
| 340 |
% |\biblerefmap{Rev}{30@\brsblnt !27}| |
| 341 |
% \end{center} |
| 342 |
% This allows other common categories like \emph{Ancient Near Eastern Texts} |
| 343 |
% or \emph{Dead Sea Scrolls} to be inserted in between in an Index of Ancient |
| 344 |
% Sources using other values for \meta{category order}. |
| 345 |
% |
| 346 |
% A simple index could be implemented as shown in Figure |
| 347 |
% \ref{exampleindexsource}. The output is in Figure \ref{exampleindexoutput}. |
| 348 |
% In this example a custom \texttt{ist} file is used to use |\quad\hfill| as |
| 349 |
% the delimeter between the reference and the page number rather than the |
| 350 |
% default comma. A separate index file is set up for \texttt{makeindex} and |
| 351 |
% configured for \pkg{bibleref} by redefining the \cs{biblerefindex} command. |
| 352 |
% |
| 353 |
% Note that SBL requires page numbers to be compressed and references in |
| 354 |
% footnotes to be indicated with n.\ and nn. Automating this requires a |
| 355 |
% significant amount of complex code. See the \pkg{sblidx} package for a full |
| 356 |
% SBL index implementation. |
| 357 |
% |
| 358 |
% \lstset{ |
| 359 |
% language={[LaTeX]TeX}, |
| 360 |
% morekeywords={\biblerefindex, \idxn, \idxnn, \printindex, \ibibleverse}, |
| 361 |
% basicstyle=\small\ttfamily, |
| 362 |
% keywordstyle=\color{blue!70!black}, |
| 363 |
% frame=single, |
| 364 |
% tabsize=2, |
| 365 |
% } |
| 366 |
% |
| 367 |
% \begin{figure}[b!] |
| 368 |
% \iffalse |
| 369 |
%<*example> |
| 370 |
% \fi |
| 371 |
\begin{lstlisting} |
| 372 |
\documentclass{article} |
| 373 |
\begin{filecontents}[overwrite]{\jobname.ist} |
| 374 |
delim_2 "\\quad\\hfill" |
| 375 |
\end{filecontents} |
| 376 |
|
| 377 |
\usepackage{imakeidx} |
| 378 |
\usepackage[font=small, itemlayout=relhang, subindent=0pt, |
| 379 |
columns=1, subsubindent=0.25in, hangindent=0.25in, |
| 380 |
initsep=0pt plus 2pt]{idxlayout} |
| 381 |
\makeindex[name=\jobname-ancient-sources, |
| 382 |
title=Ancient Souces Index, options=-s \jobname.ist -q] |
| 383 |
\usepackage{bibleref-sbl} |
| 384 |
\renewcommand{\biblerefindex}{% |
| 385 |
\index[\jobname-ancient-sources]} |
| 386 |
\newcommand*{\idxn}[2]{#2 n.~#1} |
| 387 |
\newcommand*{\idxnn}[2]{#2 nn.~#1} |
| 388 |
|
| 389 |
\begin{document} |
| 390 |
\setcounter{page}{30}\ibibleverse{Gen}(22:20-22) |
| 391 |
\clearpage |
| 392 |
\setcounter{page}{47} |
| 393 |
\ibibleverse[idxnn{15--16}]{Gen}(22:20-22) |
| 394 |
\clearpage |
| 395 |
\setcounter{page}{57} |
| 396 |
\ibibleverse[idxnn{8--9 and 12}]{Exod}(2:3) |
| 397 |
\clearpage |
| 398 |
\setcounter{page}{63}\ibibleverse{Exod}(2:3) |
| 399 |
\clearpage |
| 400 |
\setcounter{page}{70}\ibibleverse{Gen}(1:2) |
| 401 |
\clearpage |
| 402 |
\setcounter{page}{113}\ibibleverse[(]{Gen}(1:7) |
| 403 |
\clearpage |
| 404 |
\setcounter{page}{115}\ibibleverse[)]{Gen}(1:7) |
| 405 |
\clearpage |
| 406 |
\setcounter{page}{173}\ibibleverse{Gen}(1:2) |
| 407 |
\clearpage |
| 408 |
\setcounter{page}{204}\ibibleverse[idxn{3}]{Gen}(1:2) |
| 409 |
\clearpage |
| 410 |
\printindex[\jobname-ancient-sources] |
| 411 |
\end{document} |
| 412 |
\end{lstlisting} |
| 413 |
% \iffalse |
| 414 |
%</example> |
| 415 |
% \fi |
| 416 |
% \caption{Example Ancient Sources Index \TeX\ Source} |
| 417 |
% \label{exampleindexsource} |
| 418 |
% \end{figure} |
| 419 |
% |
| 420 |
% \begin{figure} |
| 421 |
% \centering |
| 422 |
% \fbox{% |
| 423 |
% \begin{minipage}{6cm} |
| 424 |
% \section*{Ancient Sources Index} |
| 425 |
% Old Testament/Hebrew Bible \\ |
| 426 |
% Genesis \\ |
| 427 |
% \hspace*{0.25in}1:2\hfill 70, 173, 204 n.~3 \\ |
| 428 |
% \hspace*{0.25in}1:7\hfill 113--115 \\ |
| 429 |
% \hspace*{0.25in}22:20--22\hfill 30, 47 nn.~15--16 \\ |
| 430 |
% Exodus \\ |
| 431 |
% \hspace*{0.25in}2:3\hfill 57 nn.~8--9 and 12, 63 |
| 432 |
% \end{minipage} |
| 433 |
% } |
| 434 |
% \caption{Example Ancient Sources Index Output} |
| 435 |
% \label{exampleindexoutput} |
| 436 |
% \end{figure} |
| 437 |
% |
| 438 |
% \section{Implementation} |
| 439 |
% |
| 440 |
% \setlength{\parindent}{0em} |
| 441 |
% |
| 442 |
% \begin{macrocode} |
| 443 |
%<*package> |
| 444 |
% \end{macrocode} |
| 445 |
% |
| 446 |
% \begin{macrocode} |
| 447 |
\NeedsTeXFormat{LaTeX2e} |
| 448 |
\ProvidesPackage{bibleref-sbl} |
| 449 |
[2026-04-04 v1.0 Society of Biblical Literature Bibleref Style (DCP)] |
| 450 |
% \end{macrocode} |
| 451 |
% |
| 452 |
% \begin{macrocode} |
| 453 |
\RequirePackage{bibleref} |
| 454 |
% \end{macrocode} |
| 455 |
% |
| 456 |
% Patch \cs{@bible@verse} to handle Psalm 151 which requires \cs{BRbkchsep} to |
| 457 |
% be \cs{BRchvsep} in order to print correctly. |
| 458 |
% |
| 459 |
% \begin{macrocode} |
| 460 |
\patchcmd{\@bible@verse} |
| 461 |
{\BRbkchsep} |
| 462 |
{\ifstrequal{#1}{Ps151} |
| 463 |
{\BRchvsep} |
| 464 |
{\ifstrequal{#1}{PsalmCLI} |
| 465 |
{\BRchvsep} |
| 466 |
{\BRbkchsep}}} |
| 467 |
{} |
| 468 |
{} |
| 469 |
% \end{macrocode} |
| 470 |
% |
| 471 |
% \begin{macro}{\Bibleverse, \iBibleverse} |
| 472 |
% |
| 473 |
% At the beginning of a sentence the full book name should be used rather |
| 474 |
% than an abbreviation. \cs{Bibleverse} and \cs{iBibleverse} provide |
| 475 |
% variants of \cs{bibleverse} and \cs{ibibleverse} to handle this. |
| 476 |
% |
| 477 |
% \begin{macrocode} |
| 478 |
\DeclareRobustCommand*{\Bibleverse}{% |
| 479 |
\let\@bv@restore\relax |
| 480 |
\begingroup |
| 481 |
\brsblfullname |
| 482 |
\AddToHookNext{cmd/@end@@bibleverse/after}{\endgroup}% |
| 483 |
\@bible@verse |
| 484 |
} |
| 485 |
% \end{macrocode} |
| 486 |
% |
| 487 |
% \begin{macrocode} |
| 488 |
\DeclareRobustCommand*{\iBibleverse}[1][\bvidxpgformat]{% |
| 489 |
\def\@bv@idxpgformat{#1}% |
| 490 |
\@bv@idxtrue |
| 491 |
\def\@bv@idxentry{}% |
| 492 |
\Bibleverse |
| 493 |
} |
| 494 |
% \end{macrocode} |
| 495 |
% \end{macro} |
| 496 |
% |
| 497 |
% \begin{macro}{\pBibleverse, \piBibleverse} |
| 498 |
% |
| 499 |
% If \pkg{bibleref-parse} is loaded define \cs{pBibleverse} and |
| 500 |
% \cs{piBibleverse} which use \cs{Bibleverse} and \cs{iBibleverse} |
| 501 |
% respectively. |
| 502 |
% |
| 503 |
% \begin{macrocode} |
| 504 |
\AtEndPreamble{ |
| 505 |
\@ifpackageloaded{bibleref-parse} |
| 506 |
{\newcommand{\pBibleverse}[2][]{% |
| 507 |
\brp@parse[#1]{#2}% |
| 508 |
\brp@convert |
| 509 |
\let\brp@do\Bibleverse |
| 510 |
\brp@brlist} |
| 511 |
\newcommand{\piBibleverse}[2][]{% |
| 512 |
\brp@parse[#1]{#2}% |
| 513 |
\brp@convert |
| 514 |
\let\brp@do\iBibleverse |
| 515 |
\brp@brlist}} |
| 516 |
{} |
| 517 |
} |
| 518 |
% \end{macrocode} |
| 519 |
% \end{macro} |
| 520 |
% |
| 521 |
% \begin{macro}{\pibible} |
| 522 |
% |
| 523 |
% If \pkg{bibleref-parse} is loaded, ensure that \cs{pibible} is defined. |
| 524 |
% This function, which is analogous to the \pkg{bibleref} \cs{ibible} |
| 525 |
% function is missing. |
| 526 |
% |
| 527 |
% \begin{macrocode} |
| 528 |
\AtEndPreamble{ |
| 529 |
\@ifpackageloaded{bibleref-parse} |
| 530 |
{\@ifundefined{pibible} |
| 531 |
{\newcommand{\pibible}[2][]{% |
| 532 |
\brp@parse[#1]{#2}% |
| 533 |
\brp@convert |
| 534 |
\let\brp@do\ibible |
| 535 |
\brp@brlist}} |
| 536 |
{}} |
| 537 |
{} |
| 538 |
} |
| 539 |
% \end{macrocode} |
| 540 |
% \end{macro} |
| 541 |
% |
| 542 |
% Set up package options. |
| 543 |
% |
| 544 |
% \begin{macrocode} |
| 545 |
\newif\if@brsbl@cant |
| 546 |
\newif\if@brsbl@hebreworder |
| 547 |
\newif\if@brsbl@qoh |
| 548 |
\newif\if@brsbl@makeindexsorting |
| 549 |
\@brsbl@makeindexsortingtrue |
| 550 |
\DeclareKeys[brsbl] |
| 551 |
{ |
| 552 |
cant.if = @brsbl@cant , |
| 553 |
eccl.ifnot = @brsbl@qoh , |
| 554 |
englishorder.ifnot = @brsbl@hebreworder , |
| 555 |
hebreworder.if = @brsbl@hebreworder , |
| 556 |
makeindexsorting.if = @brsbl@makeindexsorting , |
| 557 |
makeindexsorting.usage = load , |
| 558 |
qoh.if = @brsbl@qoh , |
| 559 |
song.ifnot = @brsbl@cant , |
| 560 |
} |
| 561 |
\ProcessKeyOptions[brsbl] |
| 562 |
% \end{macrocode} |
| 563 |
% |
| 564 |
% Add missing SBL Bible books. |
| 565 |
% |
| 566 |
% \begin{macrocode} |
| 567 |
\addbiblebook{IKingdoms}{\BRbooknumberstyle{1}Kingdoms} |
| 568 |
\addbiblebook{IIKingdoms}{\BRbooknumberstyle{2}Kingdoms} |
| 569 |
\addbiblebook{IIIKingdoms}{\BRbooknumberstyle{3}Kingdoms} |
| 570 |
\addbiblebook{IVKingdoms}{\BRbooknumberstyle{4}Kingdoms} |
| 571 |
\addbiblebook{Psalm}{Psalm} |
| 572 |
\addbiblebook{AdditionstoEsther}{Additions to Esther} |
| 573 |
\addbiblebook{EpistleofJeremiah}{Epistle of Jeremiah} |
| 574 |
\addbiblebook{AdditionstoDaniel}{Additions to Daniel} |
| 575 |
\addbiblebook{PrayerofAzariah}{Prayer of Azariah} |
| 576 |
\addbiblebook{SongoftheThreeYoungMen}{Song of the Three Young Men} |
| 577 |
\addbiblebook{Susanna}{Susanna} |
| 578 |
\addbiblebook{BelandtheDragon}{Bel and the Dragon} |
| 579 |
\addbiblebook{IEsdras}{\BRbooknumberstyle{1}Esdras} |
| 580 |
\addbiblebook{PrayerofManasseh}{Prayer of Manasseh} |
| 581 |
\addbiblebook{PsalmCLI}{Psalm 151} |
| 582 |
\addbiblebook{IIIMaccabees}{\BRbooknumberstyle{3}Maccabees} |
| 583 |
\addbiblebook{IIEsdras}{\BRbooknumberstyle{2}Esdras} |
| 584 |
\addbiblebook{IVMaccabees}{\BRbooknumberstyle{4}Maccabees} |
| 585 |
% \end{macrocode} |
| 586 |
% |
| 587 |
% Add missing SBL abbreviations for use in \meta{book title} arguments. |
| 588 |
% |
| 589 |
% \begin{macro}{\brsbl@provideabbrv}\marg{abbrev}\marg{book} |
| 590 |
% |
| 591 |
% \medskip |
| 592 |
% |
| 593 |
% Macro to test if a book abbreviation is defined and if not define it. |
| 594 |
% |
| 595 |
% \begin{macrocode} |
| 596 |
\newcommand*{\brsbl@provideabbrv}[2]{% |
| 597 |
\@ifundefined{br@#1}{% |
| 598 |
\expandafter\def\csname br@#1\endcsname{\csname br@#2\endcsname}% |
| 599 |
}{}% |
| 600 |
} |
| 601 |
% \end{macrocode} |
| 602 |
% \end{macro} |
| 603 |
% |
| 604 |
% \begin{macro}{\brsbl@setabbrv}\marg{abbrev}\marg{book} |
| 605 |
% |
| 606 |
% \medskip |
| 607 |
% |
| 608 |
% Macro to set an abbreviation. Unlike \cs{brsbl@provideabbrv} this macro |
| 609 |
% overwrites an existing definition. |
| 610 |
% |
| 611 |
% \begin{macrocode} |
| 612 |
\newcommand*{\brsbl@setabbrv}[2]{% |
| 613 |
\expandafter\def\csname br@#1\endcsname{\csname br@#2\endcsname}% |
| 614 |
} |
| 615 |
% \end{macrocode} |
| 616 |
% \end{macro} |
| 617 |
% |
| 618 |
% \begin{macrocode} |
| 619 |
\brsbl@provideabbrv{1Sam}{ISamuel} |
| 620 |
\brsbl@provideabbrv{1Kgdms}{IKingdoms} |
| 621 |
\brsbl@provideabbrv{2Sam}{IISamuel} |
| 622 |
\brsbl@provideabbrv{2Kgdms}{IIKingdoms} |
| 623 |
\brsbl@provideabbrv{1Kgs}{IKings} |
| 624 |
\brsbl@provideabbrv{3Kgdms}{IIIKingdoms} |
| 625 |
\brsbl@provideabbrv{2Kgs}{IIKings} |
| 626 |
\brsbl@provideabbrv{4Kgdms}{IVKingdoms} |
| 627 |
\brsbl@provideabbrv{1Chr}{IChronicles} |
| 628 |
\brsbl@provideabbrv{2Chr}{IIChronicles} |
| 629 |
\brsbl@setabbrv{Ps}{Psalm} |
| 630 |
\brsbl@provideabbrv{Pss}{Psalms} |
| 631 |
\brsbl@provideabbrv{Qoh}{Ecclesiastes} |
| 632 |
\brsbl@provideabbrv{Cant}{SongofSongs} |
| 633 |
% \end{macrocode} |
| 634 |
% |
| 635 |
% \begin{macrocode} |
| 636 |
\brsbl@provideabbrv{Tob}{Tobit} |
| 637 |
\brsbl@provideabbrv{AddEsth}{AdditionstoEsther} |
| 638 |
\brsbl@provideabbrv{EpJer}{EpistleofJeremiah} |
| 639 |
\brsbl@provideabbrv{AddDan}{AdditionstoDaniel} |
| 640 |
\brsbl@provideabbrv{PrAzar}{PrayerofAzariah} |
| 641 |
\brsbl@provideabbrv{SgThree}{SongoftheThreeYoungMen} |
| 642 |
\brsbl@provideabbrv{Sus}{Susanna} |
| 643 |
\brsbl@provideabbrv{Bel}{BelandtheDragon} |
| 644 |
\brsbl@provideabbrv{1Macc}{IMaccabees} |
| 645 |
\brsbl@provideabbrv{2Macc}{IIMaccabees} |
| 646 |
\brsbl@provideabbrv{1Esd}{IEsdras} |
| 647 |
\brsbl@provideabbrv{PrMan}{PrayerofManasseh} |
| 648 |
\brsbl@provideabbrv{Ps151}{PsalmCLI} |
| 649 |
\brsbl@provideabbrv{3Macc}{IIIMaccabees} |
| 650 |
\brsbl@provideabbrv{2Esd}{IIEsdras} |
| 651 |
\brsbl@provideabbrv{4Macc}{IVMaccabees} |
| 652 |
% \end{macrocode} |
| 653 |
% |
| 654 |
% \begin{macrocode} |
| 655 |
\brsbl@provideabbrv{1Cor}{ICorinthians} |
| 656 |
\brsbl@provideabbrv{2Cor}{IICorinthians} |
| 657 |
\brsbl@provideabbrv{1Thess}{IThessalonians} |
| 658 |
\brsbl@provideabbrv{2Thess}{IIThessalonians} |
| 659 |
\brsbl@provideabbrv{1Tim}{ITimothy} |
| 660 |
\brsbl@provideabbrv{2Tim}{IITimothy} |
| 661 |
\brsbl@provideabbrv{Phlm}{Philemon} |
| 662 |
\brsbl@provideabbrv{1Pet}{IPeter} |
| 663 |
\brsbl@provideabbrv{2Pet}{IIPeter} |
| 664 |
\brsbl@provideabbrv{1John}{IJohn} |
| 665 |
\brsbl@provideabbrv{2John}{IIJohn} |
| 666 |
\brsbl@provideabbrv{3John}{IIIJohn} |
| 667 |
% \end{macrocode} |
| 668 |
% |
| 669 |
% \begin{macro}{\brsblfullname} |
| 670 |
% |
| 671 |
% Define new \cs{brsblfullname} macro which adjusts \cs{brfullname} book |
| 672 |
% names to bring them into line with SBL requirements. |
| 673 |
% |
| 674 |
% \begin{macrocode} |
| 675 |
\newcommand*\brsblfullname{% |
| 676 |
\brfullname |
| 677 |
\brsbldefaults |
| 678 |
\setbooktitle{IKingdoms}{\BRbooknumberstyle{1}Kingdoms}% |
| 679 |
\setbooktitle{IIKingdoms}{\BRbooknumberstyle{2}Kingdoms}% |
| 680 |
\setbooktitle{IIIKingdoms}{\BRbooknumberstyle{3}Kingdoms}% |
| 681 |
\setbooktitle{IVKingdoms}{\BRbooknumberstyle{4}Kingdoms}% |
| 682 |
\setbooktitle{Psalm}{Psalm}% |
| 683 |
\setbooktitle{Psalms}{Psalms}% |
| 684 |
\setbooktitle{Ecclesiastes}{% |
| 685 |
\BRbookof\if@brsbl@qoh Qoheleth\else Ecclesiastes\fi}% |
| 686 |
\setbooktitle{SongofSongs}{% |
| 687 |
\BRbookof\if@brsbl@cant Canticles\else Song of Songs\fi}% |
| 688 |
\setbooktitle{AdditionstoEsther}{Additions to Esther}% |
| 689 |
\setbooktitle{Ecclesiasticus}{Sirach}% |
| 690 |
\setbooktitle{EpistleofJeremiah}{Epistle of Jeremiah}% |
| 691 |
\setbooktitle{AdditionstoDaniel}{Additions to Daniel}% |
| 692 |
\setbooktitle{PrayerofAzariah}{Prayer of Azariah}% |
| 693 |
\setbooktitle{SongoftheThreeYoungMen}{Song of the Three Young Men}% |
| 694 |
\setbooktitle{Susanna}{Susanna}% |
| 695 |
\setbooktitle{BelandtheDragon}{Bel and the Dragon}% |
| 696 |
\setbooktitle{IEsdras}{\BRbooknumberstyle{1}Esdras}% |
| 697 |
\setbooktitle{PrayerofManasseh}{Prayer of Manasseh}% |
| 698 |
\setbooktitle{PsalmCLI}{Psalm 151}% |
| 699 |
\setbooktitle{IIIMaccabees}{\BRbooknumberstyle{3}Maccabees}% |
| 700 |
\setbooktitle{IIEsdras}{\BRbooknumberstyle{2}Esdras}% |
| 701 |
\setbooktitle{IVMaccabees}{\BRbooknumberstyle{4}Maccabees}% |
| 702 |
} |
| 703 |
% \end{macrocode} |
| 704 |
% \end{macro} |
| 705 |
% |
| 706 |
% \begin{macro}{\brsblabbrvname} |
| 707 |
% |
| 708 |
% Define new \cs{brsblabbrvname} macro which adjusts \cs{braltabbrvname} |
| 709 |
% abbreviations to bring them into line with SBL requirements. |
| 710 |
% |
| 711 |
% \begin{macrocode} |
| 712 |
\newcommand*\brsblabbrvname{% |
| 713 |
\braltabbrvname |
| 714 |
\brsbldefaults |
| 715 |
% \end{macrocode} |
| 716 |
% |
| 717 |
% \pkg{bibleref-parse} patches \cs{braltabbrvname} which overwrites |
| 718 |
% definitions for |AddEsth|, |EpJer| and |AddDan|, so correct them in this |
| 719 |
% case. |
| 720 |
% |
| 721 |
% \begin{macrocode} |
| 722 |
\@ifpackageloaded{bibleref-parse} |
| 723 |
{\brsbl@setabbrv{AddEsth}{AdditionstoEsther}% |
| 724 |
\brsbl@setabbrv{EpJer}{EpistleofJeremiah}% |
| 725 |
\brsbl@setabbrv{AddDan}{AdditionstoDaniel}} |
| 726 |
{}% |
| 727 |
% \end{macrocode} |
| 728 |
% |
| 729 |
% \begin{macrocode} |
| 730 |
\setbooktitle{IKingdoms}{\BRbooknumberstyle{1}Kgdms}% |
| 731 |
\setbooktitle{IIKingdoms}{\BRbooknumberstyle{2}Kgdms}% |
| 732 |
\setbooktitle{IIIKingdoms}{\BRbooknumberstyle{3}Kgdms}% |
| 733 |
\setbooktitle{IVKingdoms}{\BRbooknumberstyle{4}Kgdms}% |
| 734 |
\setbooktitle{Psalm}{Ps}% |
| 735 |
\setbooktitle{Psalms}{Pss}% |
| 736 |
\setbooktitle{Esther}{Esth}% |
| 737 |
\setbooktitle{Ecclesiastes}{\if@brsbl@qoh Qoh\else Eccl\fi}% |
| 738 |
\setbooktitle{SongofSongs}{\if@brsbl@cant Cant\else Song\fi}% |
| 739 |
\setbooktitle{Tobit}{Tob}% |
| 740 |
\setbooktitle{Judith}{Jdt}% |
| 741 |
\setbooktitle{AdditionstoEsther}{Add Esth}% |
| 742 |
\setbooktitle{Wisdom}{Wis}% |
| 743 |
\setbooktitle{Ecclesiasticus}{Sir}% |
| 744 |
\setbooktitle{Baruch}{Bar}% |
| 745 |
\setbooktitle{EpistleofJeremiah}{Ep Jer}% |
| 746 |
\setbooktitle{AdditionstoDaniel}{Add Dan}% |
| 747 |
\setbooktitle{PrayerofAzariah}{Pr Azar}% |
| 748 |
\setbooktitle{SongoftheThreeYoungMen}{Sg Three}% |
| 749 |
\setbooktitle{Susanna}{Sus}% |
| 750 |
\setbooktitle{BelandtheDragon}{Bel}% |
| 751 |
\setbooktitle{IMaccabees}{\BRbooknumberstyle{1}Macc}% |
| 752 |
\setbooktitle{IIMaccabees}{\BRbooknumberstyle{2}Macc}% |
| 753 |
\setbooktitle{IEsdras}{\BRbooknumberstyle{1}Esd}% |
| 754 |
\setbooktitle{PrayerofManasseh}{Pr Man}% |
| 755 |
\setbooktitle{PsalmCLI}{Ps 151}% |
| 756 |
\setbooktitle{IIIMaccabees}{\BRbooknumberstyle{3}Macc}% |
| 757 |
\setbooktitle{IIEsdras}{\BRbooknumberstyle{2}Esd}% |
| 758 |
\setbooktitle{IVMaccabees}{\BRbooknumberstyle{4}Macc}% |
| 759 |
\setbooktitle{Titus}{Titus}% |
| 760 |
\setbooktitle{Philemon}{Phlm}% |
| 761 |
} |
| 762 |
% \end{macrocode} |
| 763 |
% \end{macro} |
| 764 |
% |
| 765 |
% \begin{macro}{\brsblidxname} |
| 766 |
% |
| 767 |
% Define new \cs{brsblindexname} macro which uses full book names in the |
| 768 |
% index. |
| 769 |
% |
| 770 |
% \begin{macrocode} |
| 771 |
\newcommand*\brsblidxname{% |
| 772 |
\brsbldefaults |
| 773 |
\setindexbooktitle{Gen}{Genesis}% |
| 774 |
\setindexbooktitle{Exod}{Exodus}% |
| 775 |
\setindexbooktitle{Lev}{Leviticus}% |
| 776 |
\setindexbooktitle{Num}{Numbers}% |
| 777 |
\setindexbooktitle{Deut}{Deuteronomy}% |
| 778 |
\setindexbooktitle{Josh}{Joshua}% |
| 779 |
\setindexbooktitle{Judg}{Judges}% |
| 780 |
\setindexbooktitle{Ruth}{Ruth}% |
| 781 |
\setindexbooktitle{1Sam}{\BRbooknumberstyle{1}Samuel}% |
| 782 |
\setindexbooktitle{1Kgdms}{\BRbooknumberstyle{1}Kingdoms}% |
| 783 |
\setindexbooktitle{2Sam}{\BRbooknumberstyle{2}Samuel}% |
| 784 |
\setindexbooktitle{2Kgdms}{\BRbooknumberstyle{2}Kingdoms}% |
| 785 |
\setindexbooktitle{1Kgs}{\BRbooknumberstyle{1}Kings}% |
| 786 |
\setindexbooktitle{3Kgdms}{\BRbooknumberstyle{3}Kingdoms}% |
| 787 |
\setindexbooktitle{2Kgs}{\BRbooknumberstyle{2}Kings}% |
| 788 |
\setindexbooktitle{4Kgdms}{\BRbooknumberstyle{4}Kingdoms}% |
| 789 |
\setindexbooktitle{1Chr}{\BRbooknumberstyle{1}Chronicles}% |
| 790 |
\setindexbooktitle{2Chr}{\BRbooknumberstyle{2}Chronicles}% |
| 791 |
\setindexbooktitle{Ezra}{Ezra}% |
| 792 |
\setindexbooktitle{Neh}{Nehemiah}% |
| 793 |
\setindexbooktitle{Ps}{Psalms}% |
| 794 |
\setindexbooktitle{Pss}{Psalms}% |
| 795 |
\setindexbooktitle{Prov}{Proverbs}% |
| 796 |
\setindexbooktitle{Eccl}{\if@brsbl@qoh Qoheleth\else Ecclesiastes\fi}% |
| 797 |
\setindexbooktitle{Qoh}{\if@brsbl@qoh Qoheleth\else Ecclesiastes\fi}% |
| 798 |
\setindexbooktitle{Song}{\if@brsbl@cant Canticles\else Song of Songs\fi}% |
| 799 |
\setindexbooktitle{Cant}{\if@brsbl@cant Canticles\else Song of Songs\fi}% |
| 800 |
\setindexbooktitle{Isa}{Isaiah}% |
| 801 |
\setindexbooktitle{Jer}{Jeremiah}% |
| 802 |
\setindexbooktitle{Lam}{Lamentations}% |
| 803 |
\setindexbooktitle{Ezek}{Ezekiel}% |
| 804 |
\setindexbooktitle{Dan}{Daniel}% |
| 805 |
\setindexbooktitle{Hos}{Hosea}% |
| 806 |
\setindexbooktitle{Joel}{Joel}% |
| 807 |
\setindexbooktitle{Amos}{Amos}% |
| 808 |
\setindexbooktitle{Obad}{Obadiah}% |
| 809 |
\setindexbooktitle{Jonah}{Jonah}% |
| 810 |
\setindexbooktitle{Mic}{Micah}% |
| 811 |
\setindexbooktitle{Nah}{Nahum}% |
| 812 |
\setindexbooktitle{Hab}{Habakkuk}% |
| 813 |
\setindexbooktitle{Zeph}{Zephaniah}% |
| 814 |
\setindexbooktitle{Hag}{Haggai}% |
| 815 |
\setindexbooktitle{Zech}{Zechariah}% |
| 816 |
\setindexbooktitle{Mal}{Malachi}% |
| 817 |
% \end{macrocode} |
| 818 |
% |
| 819 |
% \begin{macrocode} |
| 820 |
\setindexbooktitle{Tob}{Tobit}% |
| 821 |
\setindexbooktitle{Jdt}{Judith}% |
| 822 |
\setindexbooktitle{AddEsth}{Additions to Esther}% |
| 823 |
\setindexbooktitle{Wis}{Wisdom}% |
| 824 |
\setindexbooktitle{Sir}{Sirach}% |
| 825 |
\setindexbooktitle{Bar}{Baruch}% |
| 826 |
\setindexbooktitle{EpJer}{Epistle of Jeremiah}% |
| 827 |
\setindexbooktitle{AddDan}{Additions to Daniel}% |
| 828 |
\setindexbooktitle{PrAzar}{Prayer of Azariah}% |
| 829 |
\setindexbooktitle{SgThree}{Song of the Three Young Men}% |
| 830 |
\setindexbooktitle{Sus}{Susanna}% |
| 831 |
\setindexbooktitle{Bel}{Bel and the Dragon}% |
| 832 |
\setindexbooktitle{1Macc}{\BRbooknumberstyle{1}Maccabees}% |
| 833 |
\setindexbooktitle{2Macc}{\BRbooknumberstyle{2}Maccabees}% |
| 834 |
\setindexbooktitle{1Esd}{\BRbooknumberstyle{1}Esdras}% |
| 835 |
\setindexbooktitle{PrMan}{Prayer of Manasseh}% |
| 836 |
\setindexbooktitle{Ps151}{Psalm 151}% |
| 837 |
\setindexbooktitle{3Macc}{\BRbooknumberstyle{3}Maccabees}% |
| 838 |
\setindexbooktitle{2Esd}{\BRbooknumberstyle{2}Esdras}% |
| 839 |
\setindexbooktitle{4Macc}{\BRbooknumberstyle{4}Maccabees}% |
| 840 |
% \end{macrocode} |
| 841 |
% |
| 842 |
% \begin{macrocode} |
| 843 |
\setindexbooktitle{Matt}{Matthew}% |
| 844 |
\setindexbooktitle{Rom}{Romans}% |
| 845 |
\setindexbooktitle{1Cor}{\BRbooknumberstyle{1}Corinthians}% |
| 846 |
\setindexbooktitle{2Cor}{\BRbooknumberstyle{2}Corinthians}% |
| 847 |
\setindexbooktitle{Gal}{Galatians}% |
| 848 |
\setindexbooktitle{Eph}{Ephesians}% |
| 849 |
\setindexbooktitle{Phil}{Philippians}% |
| 850 |
\setindexbooktitle{Col}{Colossians}% |
| 851 |
\setindexbooktitle{1Thess}{\BRbooknumberstyle{1}Thessalonians}% |
| 852 |
\setindexbooktitle{2Thess}{\BRbooknumberstyle{2}Thessalonians}% |
| 853 |
\setindexbooktitle{1Tim}{\BRbooknumberstyle{1}Timothy}% |
| 854 |
\setindexbooktitle{2Tim}{\BRbooknumberstyle{2}Timothy}% |
| 855 |
\setindexbooktitle{Phlm}{Philemon}% |
| 856 |
\setindexbooktitle{Heb}{Hebrews}% |
| 857 |
\setindexbooktitle{Jas}{James}% |
| 858 |
\setindexbooktitle{1Pet}{\BRbooknumberstyle{1}Peter}% |
| 859 |
\setindexbooktitle{2Pet}{\BRbooknumberstyle{2}Peter}% |
| 860 |
\setindexbooktitle{1John}{\BRbooknumberstyle{1}John}% |
| 861 |
\setindexbooktitle{2John}{\BRbooknumberstyle{2}John}% |
| 862 |
\setindexbooktitle{3John}{\BRbooknumberstyle{3}John}% |
| 863 |
\setindexbooktitle{Rev}{Revelation}% |
| 864 |
} |
| 865 |
% \end{macrocode} |
| 866 |
% \end{macro} |
| 867 |
% |
| 868 |
% \begin{macro}{\brsbldefaults} |
| 869 |
% |
| 870 |
% Set SBL default format and delimiters. |
| 871 |
% |
| 872 |
% \begin{macrocode} |
| 873 |
\newcommand*{\brsbldefaults}{% |
| 874 |
\renewcommand*{\BRbooknumberstyle}[1]{##1~}% |
| 875 |
\renewcommand*{\BRepistlenumberstyle}[1]{##1~}% |
| 876 |
\renewcommand*{\BRbookof}{}% |
| 877 |
\renewcommand*{\BRgospel}{}% |
| 878 |
\renewcommand*{\BRepistleto}{}% |
| 879 |
\renewcommand*{\BRepistletothe}{}% |
| 880 |
\renewcommand*{\BRepistleof}{}% |
| 881 |
\renewcommand*{\BRbooktitlestyle}[1]{##1}% |
| 882 |
\renewcommand*{\BRchapterstyle}[1]{##1}% |
| 883 |
\renewcommand*{\BRotherchapterstyle}[1]{(##1)}% |
| 884 |
\renewcommand*{\BRversestyle}[1]{##1}% |
| 885 |
\renewcommand*{\BRversesuffixstyle}[1]{##1}% |
| 886 |
\renewcommand*{\BRbkchsep}{ }% |
| 887 |
\renewcommand*{\BRchvsep}{:}% |
| 888 |
\renewcommand*{\BRchsep}{;}% |
| 889 |
\renewcommand*{\BRvrsep}{--}% |
| 890 |
\renewcommand*{\BRvsep}{,}% |
| 891 |
\renewcommand*{\BRperiod}{}% |
| 892 |
} |
| 893 |
% \end{macrocode} |
| 894 |
% \end{macro} |
| 895 |
% |
| 896 |
% \begin{macro}{\brsblot, \brsbldb, \brsblnt} |
| 897 |
% |
| 898 |
% Name of categories for Old Testament, Deuterocanonical books and New |
| 899 |
% Testament books used in index. |
| 900 |
% |
| 901 |
% \begin{macrocode} |
| 902 |
\newcommand*{\brsblot}{% |
| 903 |
\if@brsbl@hebreworder |
| 904 |
Hebrew Bible/Old Testament% |
| 905 |
\else |
| 906 |
Old Testament/Hebrew Bible% |
| 907 |
\fi} |
| 908 |
\newcommand*{\brsbldb}{Deuterocanonical Books} |
| 909 |
\newcommand*{\brsblnt}{New Testament} |
| 910 |
% \end{macrocode} |
| 911 |
% \end{macro} |
| 912 |
% |
| 913 |
% Set up index mapping if the |makeindexsorting| option is set to |true|. |
| 914 |
% |
| 915 |
% \begin{macrocode} |
| 916 |
\if@brsbl@makeindexsorting |
| 917 |
% \end{macrocode} |
| 918 |
% |
| 919 |
% \begin{macrocode} |
| 920 |
\biblerefmap{Genesis}{10@\brsblot !01} |
| 921 |
\biblerefmap{Gen}{10@\brsblot !01} |
| 922 |
\biblerefmap{Exodus}{10@\brsblot !02} |
| 923 |
\biblerefmap{Exod}{10@\brsblot !02} |
| 924 |
\biblerefmap{Leviticus}{10@\brsblot !03} |
| 925 |
\biblerefmap{Lev}{10@\brsblot !03} |
| 926 |
\biblerefmap{Numbers}{10@\brsblot !04} |
| 927 |
\biblerefmap{Num}{10@\brsblot !04} |
| 928 |
\biblerefmap{Deuteronomy}{10@\brsblot !05} |
| 929 |
\biblerefmap{Deut}{10@\brsblot !05} |
| 930 |
\biblerefmap{Joshua}{10@\brsblot !06} |
| 931 |
\biblerefmap{Josh}{10@\brsblot !06} |
| 932 |
\biblerefmap{Judges}{10@\brsblot !07} |
| 933 |
\biblerefmap{Judg}{10@\brsblot !07} |
| 934 |
\biblerefmap{Ruth}{10@\brsblot !08} |
| 935 |
\biblerefmap{Samuel1}{10@\brsblot !09} |
| 936 |
\biblerefmap{Sam1}{10@\brsblot !09} |
| 937 |
\biblerefmap{Kingdoms1}{10@\brsblot !10} |
| 938 |
\biblerefmap{Kgdms1}{10@\brsblot !10} |
| 939 |
\biblerefmap{Samuel2}{10@\brsblot !11} |
| 940 |
\biblerefmap{Sam2}{10@\brsblot !11} |
| 941 |
\biblerefmap{Kingdoms2}{10@\brsblot !12} |
| 942 |
\biblerefmap{Kgdms2}{10@\brsblot !12} |
| 943 |
\biblerefmap{Kings1}{10@\brsblot !13} |
| 944 |
\biblerefmap{Kgs1}{10@\brsblot !13} |
| 945 |
\biblerefmap{Kingdoms3}{10@\brsblot !14} |
| 946 |
\biblerefmap{Kgdms3}{10@\brsblot !14} |
| 947 |
\biblerefmap{Kings2}{10@\brsblot !15} |
| 948 |
\biblerefmap{Kgs2}{10@\brsblot !15} |
| 949 |
\biblerefmap{Kingdoms4}{10@\brsblot !16} |
| 950 |
\biblerefmap{Kgdms4}{10@\brsblot !16} |
| 951 |
\biblerefmap{Chronicles1}{10@\brsblot !17} |
| 952 |
\biblerefmap{Chr1}{10@\brsblot !17} |
| 953 |
\biblerefmap{Chronicles2}{10@\brsblot !18} |
| 954 |
\biblerefmap{Chr2}{10@\brsblot !18} |
| 955 |
\biblerefmap{Ezra}{10@\brsblot !19} |
| 956 |
\biblerefmap{Nehemiah}{10@\brsblot !20} |
| 957 |
\biblerefmap{Neh}{10@\brsblot !20} |
| 958 |
\biblerefmap{Job}{10@\brsblot !21} |
| 959 |
\biblerefmap{Psalm}{10@\brsblot !22} |
| 960 |
\biblerefmap{Ps}{10@\brsblot !22} |
| 961 |
\biblerefmap{Psalms}{10@\brsblot !22} |
| 962 |
\biblerefmap{Pss}{10@\brsblot !22} |
| 963 |
\biblerefmap{Proverbs}{10@\brsblot !23} |
| 964 |
\biblerefmap{Prov}{10@\brsblot !23} |
| 965 |
\biblerefmap{Ecclesiastes}{10@\brsblot !24} |
| 966 |
\biblerefmap{Eccl}{10@\brsblot !24} |
| 967 |
\biblerefmap{Qoheleth}{10@\brsblot !24} |
| 968 |
\biblerefmap{Qoh}{10@\brsblot !24} |
| 969 |
\biblerefmap{Song of Songs}{10@\brsblot !25} |
| 970 |
\biblerefmap{Song}{10@\brsblot !25} |
| 971 |
\biblerefmap{Canticles}{10@\brsblot !25} |
| 972 |
\biblerefmap{Cant}{10@\brsblot !25} |
| 973 |
\biblerefmap{Isaiah}{10@\brsblot !26} |
| 974 |
\biblerefmap{Isa}{10@\brsblot !26} |
| 975 |
\biblerefmap{Jeremiah}{10@\brsblot !27} |
| 976 |
\biblerefmap{Jer}{10@\brsblot !27} |
| 977 |
\biblerefmap{Lamentations}{10@\brsblot !28} |
| 978 |
\biblerefmap{Lam}{10@\brsblot !28} |
| 979 |
\biblerefmap{Ezekiel}{10@\brsblot !29} |
| 980 |
\biblerefmap{Ezek}{10@\brsblot !29} |
| 981 |
\biblerefmap{Daniel}{10@\brsblot !30} |
| 982 |
\biblerefmap{Dan}{10@\brsblot !30} |
| 983 |
\biblerefmap{Hosea}{10@\brsblot !31} |
| 984 |
\biblerefmap{Hos}{10@\brsblot !31} |
| 985 |
\biblerefmap{Joel}{10@\brsblot !32} |
| 986 |
\biblerefmap{Amos}{10@\brsblot !33} |
| 987 |
\biblerefmap{Obadiah}{10@\brsblot !34} |
| 988 |
\biblerefmap{Obad}{10@\brsblot !34} |
| 989 |
\biblerefmap{Jonah}{10@\brsblot !35} |
| 990 |
\biblerefmap{Micah}{10@\brsblot !36} |
| 991 |
\biblerefmap{Mic}{10@\brsblot !36} |
| 992 |
\biblerefmap{Nahum}{10@\brsblot !37} |
| 993 |
\biblerefmap{Nah}{10@\brsblot !37} |
| 994 |
\biblerefmap{Habakkuk}{10@\brsblot !38} |
| 995 |
\biblerefmap{Hab}{10@\brsblot !38} |
| 996 |
\biblerefmap{Zephaniah}{10@\brsblot !39} |
| 997 |
\biblerefmap{Zeph}{10@\brsblot !39} |
| 998 |
\biblerefmap{Haggai}{10@\brsblot !40} |
| 999 |
\biblerefmap{Hag}{10@\brsblot !40} |
| 1000 |
\biblerefmap{Zechariah}{10@\brsblot !41} |
| 1001 |
\biblerefmap{Zech}{10@\brsblot !41} |
| 1002 |
\biblerefmap{Malachi}{10@\brsblot !42} |
| 1003 |
\biblerefmap{Mal}{10@\brsblot !42} |
| 1004 |
% \end{macrocode} |
| 1005 |
% |
| 1006 |
% \begin{macrocode} |
| 1007 |
\biblerefmap{Tobit}{20@\brsbldb !01} |
| 1008 |
\biblerefmap{Tob}{20@\brsbldb !01} |
| 1009 |
\biblerefmap{Judith}{20@\brsbldb !02} |
| 1010 |
\biblerefmap{Jdt}{20@\brsbldb !02} |
| 1011 |
\biblerefmap{Additions to Esther}{20@\brsbldb !03} |
| 1012 |
\biblerefmap{Add Esth}{20@\brsbldb !03} |
| 1013 |
\biblerefmap{Wisdom}{20@\brsbldb !04} |
| 1014 |
\biblerefmap{Wis}{20@\brsbldb !04} |
| 1015 |
\biblerefmap{Sirach}{20@\brsbldb !05} |
| 1016 |
\biblerefmap{Sir}{20@\brsbldb !05} |
| 1017 |
\biblerefmap{Baruch}{20@\brsbldb !06} |
| 1018 |
\biblerefmap{Bar}{20@\brsbldb !06} |
| 1019 |
\biblerefmap{Epistle of Jeremiah}{20@\brsbldb !07} |
| 1020 |
\biblerefmap{Ep Jer}{20@\brsbldb !07} |
| 1021 |
\biblerefmap{Additions to Daniel}{20@\brsbldb !08} |
| 1022 |
\biblerefmap{Add Dan}{20@\brsbldb !08} |
| 1023 |
\biblerefmap{Prayer of Azariah}{20@\brsbldb !09} |
| 1024 |
\biblerefmap{Pr Azar}{20@\brsbldb !09} |
| 1025 |
\biblerefmap{Song of the Three Young Men}{20@\brsbldb !10} |
| 1026 |
\biblerefmap{Sg Three}{20@\brsbldb !10} |
| 1027 |
\biblerefmap{Susanna}{20@\brsbldb !11} |
| 1028 |
\biblerefmap{Sus}{20@\brsbldb !11} |
| 1029 |
\biblerefmap{Bel and the Dragon}{20@\brsbldb !12} |
| 1030 |
\biblerefmap{Bel}{20@\brsbldb !12} |
| 1031 |
\biblerefmap{Maccabees1}{20@\brsbldb !13} |
| 1032 |
\biblerefmap{Macc1}{20@\brsbldb !13} |
| 1033 |
\biblerefmap{Maccabees2}{20@\brsbldb !14} |
| 1034 |
\biblerefmap{Macc2}{20@\brsbldb !14} |
| 1035 |
\biblerefmap{Esdras1}{20@\brsbldb !15} |
| 1036 |
\biblerefmap{Esd1}{20@\brsbldb !15} |
| 1037 |
\biblerefmap{Prayer of Manasseh}{20@\brsbldb !16} |
| 1038 |
\biblerefmap{Pr Man}{20@\brsbldb !16} |
| 1039 |
\biblerefmap{Psalm 151}{20@\brsbldb !17} |
| 1040 |
\biblerefmap{Ps 151}{20@\brsbldb !17} |
| 1041 |
\biblerefmap{Maccabees3}{20@\brsbldb !18} |
| 1042 |
\biblerefmap{Macc3}{20@\brsbldb !18} |
| 1043 |
\biblerefmap{Esdras2}{20@\brsbldb !19} |
| 1044 |
\biblerefmap{Esd2}{20@\brsbldb !19} |
| 1045 |
\biblerefmap{Maccabees4}{20@\brsbldb !20} |
| 1046 |
\biblerefmap{Macc4}{20@\brsbldb !20} |
| 1047 |
% \end{macrocode} |
| 1048 |
% |
| 1049 |
% \begin{macrocode} |
| 1050 |
\biblerefmap{Matthew}{30@\brsblnt !01} |
| 1051 |
\biblerefmap{Matt}{30@\brsblnt !01} |
| 1052 |
\biblerefmap{Mark}{30@\brsblnt !02} |
| 1053 |
\biblerefmap{Luke}{30@\brsblnt !03} |
| 1054 |
\biblerefmap{John}{30@\brsblnt !04} |
| 1055 |
\biblerefmap{Acts}{30@\brsblnt !05} |
| 1056 |
\biblerefmap{Romans}{30@\brsblnt !06} |
| 1057 |
\biblerefmap{Rom}{30@\brsblnt !06} |
| 1058 |
\biblerefmap{Corinthians1}{30@\brsblnt !07} |
| 1059 |
\biblerefmap{Cor1}{30@\brsblnt !07} |
| 1060 |
\biblerefmap{Corinthians2}{30@\brsblnt !08} |
| 1061 |
\biblerefmap{Cor2}{30@\brsblnt !08} |
| 1062 |
\biblerefmap{Galatians}{30@\brsblnt !09} |
| 1063 |
\biblerefmap{Gal}{30@\brsblnt !09} |
| 1064 |
\biblerefmap{Ephesians}{30@\brsblnt !10} |
| 1065 |
\biblerefmap{Eph}{30@\brsblnt !10} |
| 1066 |
\biblerefmap{Philippians}{30@\brsblnt !11} |
| 1067 |
\biblerefmap{Phil}{30@\brsblnt !11} |
| 1068 |
\biblerefmap{Colossians}{30@\brsblnt !12} |
| 1069 |
\biblerefmap{Col}{30@\brsblnt !12} |
| 1070 |
\biblerefmap{Thessalonians1}{30@\brsblnt !13} |
| 1071 |
\biblerefmap{Thess1}{30@\brsblnt !13} |
| 1072 |
\biblerefmap{Thessalonians2}{30@\brsblnt !14} |
| 1073 |
\biblerefmap{Thess2}{30@\brsblnt !14} |
| 1074 |
\biblerefmap{Timothy1}{30@\brsblnt !15} |
| 1075 |
\biblerefmap{Tim1}{30@\brsblnt !15} |
| 1076 |
\biblerefmap{Timothy2}{30@\brsblnt !16} |
| 1077 |
\biblerefmap{Tim2}{30@\brsblnt !16} |
| 1078 |
\biblerefmap{Titus}{30@\brsblnt !17} |
| 1079 |
\biblerefmap{Philemon}{30@\brsblnt !18} |
| 1080 |
\biblerefmap{Phlm}{30@\brsblnt !18} |
| 1081 |
\biblerefmap{Hebrews}{30@\brsblnt !19} |
| 1082 |
\biblerefmap{Heb}{30@\brsblnt !19} |
| 1083 |
\biblerefmap{James}{30@\brsblnt !20} |
| 1084 |
\biblerefmap{Jas}{30@\brsblnt !20} |
| 1085 |
\biblerefmap{Peter1}{30@\brsblnt !21} |
| 1086 |
\biblerefmap{Pet1}{30@\brsblnt !21} |
| 1087 |
\biblerefmap{Peter2}{30@\brsblnt !22} |
| 1088 |
\biblerefmap{Pet2}{30@\brsblnt !22} |
| 1089 |
\biblerefmap{John1}{30@\brsblnt !23} |
| 1090 |
\biblerefmap{John2}{30@\brsblnt !24} |
| 1091 |
\biblerefmap{John3}{30@\brsblnt !25} |
| 1092 |
\biblerefmap{Jude}{30@\brsblnt !26} |
| 1093 |
\biblerefmap{Revelation}{30@\brsblnt !27} |
| 1094 |
\biblerefmap{Rev}{30@\brsblnt !27} |
| 1095 |
% \end{macrocode} |
| 1096 |
% |
| 1097 |
% \begin{macrocode} |
| 1098 |
\fi |
| 1099 |
% \end{macrocode} |
| 1100 |
% |
| 1101 |
% Define new \texttt{sbl} style for \pkg{bibleref}. |
| 1102 |
% |
| 1103 |
% \begin{macrocode} |
| 1104 |
\newbiblerefstyle{sbl}{% |
| 1105 |
\biblerefstyle{default}% |
| 1106 |
\brsblabbrvname |
| 1107 |
\brsblidxname |
| 1108 |
} |
| 1109 |
% \end{macrocode} |
| 1110 |
% |
| 1111 |
% Load new \texttt{sbl} style. |
| 1112 |
% |
| 1113 |
% \begin{macrocode} |
| 1114 |
\biblerefstyle{sbl} |
| 1115 |
% \end{macrocode} |
| 1116 |
% |
| 1117 |
% \begin{macrocode} |
| 1118 |
\endinput |
| 1119 |
% \end{macrocode} |
| 1120 |
% |
| 1121 |
% \begin{macrocode} |
| 1122 |
%</package> |
| 1123 |
% \end{macrocode} |