summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/source/latex/bibleref
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2018-07-29 21:15:15 +0000
committerKarl Berry <karl@freefriends.org>2018-07-29 21:15:15 +0000
commit5411eaee4bc1fcb7c8b6c7bd8099f04a4406dc0a (patch)
treef4c015ea8d8cbb22fd61b7fc3c72a5ef97176898 /Master/texmf-dist/source/latex/bibleref
parent29c87f6f8d04ab90bd8fc5eac22d5fc1055a92c7 (diff)
bibleref (29jul18)
git-svn-id: svn://tug.org/texlive/trunk@48306 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/source/latex/bibleref')
-rw-r--r--Master/texmf-dist/source/latex/bibleref/bibleref.dtx24
1 files changed, 21 insertions, 3 deletions
diff --git a/Master/texmf-dist/source/latex/bibleref/bibleref.dtx b/Master/texmf-dist/source/latex/bibleref/bibleref.dtx
index 6f2304ddbc8..d64869837ec 100644
--- a/Master/texmf-dist/source/latex/bibleref/bibleref.dtx
+++ b/Master/texmf-dist/source/latex/bibleref/bibleref.dtx
@@ -973,7 +973,7 @@
% Declare package
% \begin{macrocode}
\NeedsTeXFormat{LaTeX2e}
-\ProvidesPackage{bibleref}[2018/07/21 1.18 (NLCT and MR)]
+\ProvidesPackage{bibleref}[2018/07/29 1.19 (NLCT and MR)]
% \end{macrocode}
% Need to do some conditional stuff
% \begin{macrocode}
@@ -2081,12 +2081,13 @@ defined}{}}}
%\end{macro}
%
%\begin{macro}{\bibleverse}
+%\changes{v1.19}{2018/07/29}{\cs{bibleverse} is now robust}
%\begin{definition}
%\cs{bibleverse}\marg{name}
%\end{definition}
% Displays references using current style.
% \begin{macrocode}
-\newcommand*{\bibleverse}{%
+\DeclareRobustCommand*{\bibleverse}{%
\let\@bv@restore\relax
\@bible@verse
}
@@ -2097,6 +2098,11 @@ defined}{}}}
% \begin{macrocode}
\newcommand*{\@bible@verse}[1]{%
% \end{macrocode}
+% Makes \verb+:+ normal character (babel-french).
+%\changes{1.19}{2018/07/29}{Add \cs{shorthandoff}\verb+:+ (for babel)}
+% \begin{macrocode}
+ \shorthandoff:%
+% \end{macrocode}
% This looks for a command called
% \cs{br@}\meta{name} (defined earlier).
% After the book title, it then checks
@@ -2283,8 +2289,10 @@ defined}{}}}
\fi
% \end{macrocode}
%\changes{1.14}{2011/01/19}{added \cs{@bv@restore}}
+%\changes{1.19}{2018/07/29}{Add \cs{shorthandon}\verb+:+ (for babel)}
% \begin{macrocode}
\@bv@restore
+\shorthandon:%
}
% \end{macrocode}
%\end{macro}
@@ -2426,12 +2434,13 @@ defined}{}}}
%\end{macro}
%
%\begin{macro}{\ibibleverse}
+%\changes{v1.19}{2018/07/29}{\cs{ibibleverse} is now robust}
% This is like \cs{bibleverse},
% but also adds an index entry. The optional argument indicates
% how to format the page number (without the preceding backslash)
% e.g. \verb|\ibibleref[textit]{Romans}|.
% \begin{macrocode}
-\newcommand*{\ibibleverse}[1][\bvidxpgformat]{%
+\DeclareRobustCommand*{\ibibleverse}[1][\bvidxpgformat]{%
\def\@bv@idxpgformat{#1}%
\@bv@idxtrue\def\@bv@idxentry{}\bibleverse}
% \end{macrocode}
@@ -2487,6 +2496,15 @@ defined}{}}}
\newcommand*{\bvidxpgformat}{textrm}
% \end{macrocode}
%\end{macro}
+% Define \cs{shorthandoff} and \cs{shortandon} if babel is not loaded.
+% \begin{macrocode}
+\AtBeginDocument{%
+ \ifdefined\shorthandoff\else%
+ \let\shorthandoff\@gobble%
+ \let\shorthandon\@gobble%
+ \fi%
+}%
+% \end{macrocode}
%\iffalse
% \begin{macrocode}
%</bibleref.sty>