summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/source/latex/bibleref/bibleref.dtx
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/source/latex/bibleref/bibleref.dtx')
-rw-r--r--Master/texmf-dist/source/latex/bibleref/bibleref.dtx72
1 files changed, 40 insertions, 32 deletions
diff --git a/Master/texmf-dist/source/latex/bibleref/bibleref.dtx b/Master/texmf-dist/source/latex/bibleref/bibleref.dtx
index 558926080e0..0703a983c5d 100644
--- a/Master/texmf-dist/source/latex/bibleref/bibleref.dtx
+++ b/Master/texmf-dist/source/latex/bibleref/bibleref.dtx
@@ -11,7 +11,7 @@
% -doc "bibleref-manual.tex"
% -author "Nicola Talbot"
% bibleref
-% Created on 2010/5/11 18:06
+% Created on 2010/7/7 10:21
%\fi
%\iffalse
%<*package>
@@ -48,22 +48,22 @@
-\CheckSum{1892}
+\CheckSum{1893}
\begin{document}
\DocInput{bibleref.dtx}
\end{document}
%</driver>
%\fi
-%\title{bibleref.sty v1.12: a \LaTeXe\ package for
-%typesetting bible references}
+%\title{bibleref.sty v1.13:
+%a \LaTeXe\ package for typesetting bible references}
%\author{Nicola Talbot\\[10pt]
%School of Computing Sciences\\
%University of East Anglia\\
%Norwich. Norfolk. NR4 7TJ.\\
%United Kingdom\\
%\url{http://theoval.cmp.uea.ac.uk/~nlct/}}
-%\date{11th May 2010}
+%\date{2010-07-07}
%
%\maketitle
%\tableofcontents
@@ -182,7 +182,6 @@
%\begin{verbatim}
%\addbiblebook{Susanna}{Story of Susanna}
%\end{verbatim}
-%\toTop
%
%\section{Defining New Styles}
%
@@ -205,7 +204,6 @@
%}
%\end{verbatim}
%Note the use of \verb|##1| instead of \verb|#1|.
-%\toTop
%
%\section{Indexing Bible References}
%
@@ -238,7 +236,6 @@
%delim_2 "\\dotfill "
%\end{verbatim}
%See the \app{makeindex} documentation for further details.
-%\toTop
%
%\subsection{Separate Scripture Index}
%
@@ -269,7 +266,6 @@
%You will then need to run \app{makeindex} on the file
%\texttt{scripture.idx}. See the \sty{multind} documentation
%for further details.
-%\toTop
%
%\subsection{Changing the Sort Order}
%
@@ -308,7 +304,6 @@
%\biblerefmap{Mark}{2@New Testament!02}
%...
%\end{verbatim}
-%\toTop
%
%\section{Acknowledgements}
%Many thanks to all the useful comments from comp.text.tex,
@@ -317,7 +312,6 @@
%\StopEventually{\phantomsection
%\addcontentsline{toc}{section}{Index}
%\PrintIndex
-%\toTop
%}
%
%
@@ -331,17 +325,23 @@
% Declare package
% \begin{macrocode}
\NeedsTeXFormat{LaTeX2e}
-\ProvidesPackage{bibleref}[2010/05/11 1.12 (NLCT)]
+\ProvidesPackage{bibleref}[2010/07/07 1.13 (NLCT)]
% \end{macrocode}
% Need to do some conditional stuff
% \begin{macrocode}
\RequirePackage{ifthen}
% \end{macrocode}
-% The fmtcount package is needed for the full text
+% The \sty{fmtcount} package is needed for the full text
% citations
% \begin{macrocode}
\RequirePackage{fmtcount}
% \end{macrocode}
+% The \sty{amsgen} package is needed for \cs{new@ifnextchar}
+%\changes{1.13}{2010/07/07}{Added amsgen which provides
+%\cs{new@ifnextchar}}
+% \begin{macrocode}
+\RequirePackage{amsgen}
+% \end{macrocode}
%\begin{macro}{\BRbooknumberstyle}
% The style of the book
% number. By default, it simply displays its argument
@@ -854,7 +854,7 @@
\renewcommand*{\BRepistletothe}{}%
\renewcommand*{\BRepistleto}{}%
\renewcommand*{\BRepistleof}{}%
-\renewcommand*{\BRbkchsep}{ }
+\renewcommand*{\BRbkchsep}{ }%
\renewcommand*{\BRchvsep}{:}%
\renewcommand*{\BRchsep}{;}%
\renewcommand*{\BRvrsep}{--}%
@@ -1154,8 +1154,12 @@ defined}{}}}
% Sets the current style.
% \begin{macrocode}
\newcommand*{\biblerefstyle}[1]{%
-\@ifundefined{brs@#1}{\PackageError{bibleref}{%
-Unknown biblerefstyle '#1'}{}}{\csname brs@#1\endcsname}}
+ \@ifundefined{brs@#1}%
+ {%
+ \PackageError{bibleref}{Unknown biblerefstyle '#1'}{}%
+ }%
+ {\csname brs@#1\endcsname}%
+}
% \end{macrocode}
%\end{macro}
%
@@ -1320,7 +1324,11 @@ Unknown biblerefstyle '#1'}{}}{\csname brs@#1\endcsname}}
\def\@bv@mainidxentry{\BRbooktitlestyle{\csname bri@#1\endcsname}}%
}%
}%
- \@ifnextchar(%
+% \end{macrocode}
+%\changes{1.13}{2010/07/07}{changed \cs{@ifnextchar} to
+%\cs{new@ifnextchar}}
+% \begin{macrocode}
+ \new@ifnextchar(%
{\BRbkchsep\@bibleverse}%
{\@end@@bibleverse}%
}
@@ -1383,9 +1391,13 @@ Unknown biblerefstyle '#1'}{}}{\csname brs@#1\endcsname}}
\else
\@bv@do{\BRchvsep}\@br@vrsty{#1}%
\fi
- \@ifnextchar(%
+% \end{macrocode}
+%\changes{1.13}{2010/07/07}{changed \cs{@ifnextchar} to
+%\cs{new@ifnextchar}}
+% \begin{macrocode}
+ \new@ifnextchar(%
{\@bv@do{\BRchsep}\@bibleverse}%
- {\@ifnextchar-%
+ {\new@ifnextchar-%
{\@bv@do{\BRvrsep}\@bibleverser}%
{\@end@@bibleverse}%
}%
@@ -1540,18 +1552,18 @@ Unknown biblerefstyle '#1'}{}}{\csname brs@#1\endcsname}}
\usepackage{creatdtx}
-\CheckSum{1892}
+\CheckSum{1893}
\begin{document}
-\title{bibleref.sty v1.12: a \LaTeXe\ package for
-typesetting bible references}
+\title{bibleref.sty v1.13:
+a \LaTeXe\ package for typesetting bible references}
\author{Nicola Talbot\\[10pt]
School of Computing Sciences\\
University of East Anglia\\
Norwich. Norfolk. NR4 7TJ.\\
United Kingdom\\
\url{http://theoval.cmp.uea.ac.uk/~nlct/}}
-\date{11th May 2010}
+\date{2010-07-07}
\maketitle
\tableofcontents
@@ -1670,7 +1682,6 @@ For example:
\begin{verbatim}
\addbiblebook{Susanna}{Story of Susanna}
\end{verbatim}
-\toTop
\section{Defining New Styles}
@@ -1693,7 +1704,6 @@ has verses in lower case Roman numerals, and redefines
}
\end{verbatim}
Note the use of \verb|##1| instead of \verb|#1|.
-\toTop
\section{Indexing Bible References}
@@ -1726,7 +1736,6 @@ delim_1 "\\dotfill "
delim_2 "\\dotfill "
\end{verbatim}
See the \app{makeindex} documentation for further details.
-\toTop
\subsection{Separate Scripture Index}
@@ -1757,7 +1766,6 @@ the scripture index is displayed using
You will then need to run \app{makeindex} on the file
\texttt{scripture.idx}. See the \sty{multind} documentation
for further details.
-\toTop
\subsection{Changing the Sort Order}
@@ -1796,7 +1804,6 @@ testament, you can add this to the mapping. For example:
\biblerefmap{Mark}{2@New Testament!02}
...
\end{verbatim}
-\toTop
\section{Acknowledgements}
Many thanks to all the useful comments from comp.text.tex,
@@ -1805,7 +1812,6 @@ especially from Jesse~Billett, Brooks~Moses and Ulrich~M.~Schwarz.
\StopEventually{\phantomsection
\addcontentsline{toc}{section}{Index}
\PrintIndex
-\toTop
}
\end{document}
@@ -1897,10 +1903,12 @@ Another new testament reference \ibibleverse{Matt}.
\maketitle
Long citation in text:
-\biblerefstyle{text}
-\bibleverse{IICor}(12:15,18,21-33).
+\biblerefstyle{text}%
+\bibleverse{IICor}(12:15,18,21-33) and
+\bibleverse{Jeremiah}.
Short citation in footnote\footnote{%
-\biblerefstyle{chicago}\bibleverse{IICor}(12:15,18,21-33)}.
+\biblerefstyle{chicago}\bibleverse{IICor}(12:15,18,21-33) and
+\bibleverse{Jeremiah}}.
\section{Default Style}