From f18fa52d41e3ef33839ba943fe4987a6825ed278 Mon Sep 17 00:00:00 2001
From: Norbert Preining <norbert@preining.info>
Date: Tue, 23 Jun 2020 03:01:27 +0000
Subject: CTAN sync 202006230301

---
 macros/latex/contrib/bibleref/bibleref.dtx | 43 +++++++++++++++++++++++++++---
 1 file changed, 40 insertions(+), 3 deletions(-)

(limited to 'macros/latex/contrib/bibleref/bibleref.dtx')

diff --git a/macros/latex/contrib/bibleref/bibleref.dtx b/macros/latex/contrib/bibleref/bibleref.dtx
index 0802fcf73b..1eb50d8004 100644
--- a/macros/latex/contrib/bibleref/bibleref.dtx
+++ b/macros/latex/contrib/bibleref/bibleref.dtx
@@ -220,9 +220,9 @@
 %Note that \meta{name} must be the full name, not the
 %abbreviated name of the book. For example, to change
 %Revelation to Apoc, do
-%\verb|\setbookname{Revelation}{Apoc}|
+%\verb|\setbooktitle{Revelation}{Apoc}|
 %(\textbf{Note} that you shouldn't do
-%\verb|\setbookname{Rev}{Apoc}|)
+%\verb|\setbooktitle{Rev}{Apoc}|)
 %
 %If you want a different title for a book depending on whether it's
 %in the main body of the document or in the index, you can set the
@@ -309,6 +309,12 @@
 %This is similar to \cs{ibiblechvs} except that it only displays the
 %verse(s) in the text.
 %
+%\begin{definition}[\DescribeMacro{\ibible}]
+%\cs{ibible}\oarg{format}\marg{book title}\texttt(\marg{chapter}\texttt{:}\meta{verse(s)}\texttt)
+%\end{definition}
+%This is similar to \cs{ibiblech} except that it does not display the
+%anything  in the text.
+%
 %You may need to create your own custom \app{makeindex} style file
 %as the default uses a comma and space to separate the item from
 %the page number, which may cause confusion. For example, you
@@ -1008,7 +1014,7 @@
 % Declare package
 %    \begin{macrocode}
 \NeedsTeXFormat{LaTeX2e}
-\ProvidesPackage{bibleref}[2019/12/10 1.24 (NLCT and MR)]
+\ProvidesPackage{bibleref}[2020/06/22 1.25 (NLCT and MR)]
 %    \end{macrocode}
 % Need to do some conditional stuff
 %    \begin{macrocode}
@@ -1604,6 +1610,7 @@
 \newcommand*\br@Wis{\br@Wisdom}%
 \newcommand*\br@Wisd{\br@Wisdom}%
 \newcommand*\br@Ecclus{\br@Ecclesiasticus}%
+\newcommand*\br@Sir{\br@Ecclesiasticus}%
 \newcommand*\br@Isa{\br@Isaiah}%
 \newcommand*\br@Jer{\br@Jeremiah}%
 \newcommand*\br@Lam{\br@Lamentations}%
@@ -2668,6 +2675,36 @@ defined}{}}}
 %    \end{macrocode}
 %\end{macro}
 %
+% \begin{macro}{\ibible}
+%\changes{1.25}{2020/06/22}{new}
+% Only displays verse(s) but indexes under the book and chapters.
+%    \begin{macrocode}
+\newcommand*{\ibible}[1][\bvidxpgformat]{%
+  \let\@bv@current@titlestyle\BRbooktitlestyle
+  \let\@bv@current@chapterstyle\BRchapterstyle
+  \let\@bv@current@versestyle\BRversestyle% added on analogy with previous line
+  \let\@bv@current@bkchsep\BRbkchsep
+  \let\@bv@current@chvsep\BRchvsep
+  \let\@bv@current@vrsep\BRvrsep% add me, too!
+  \def\@bv@restore{%
+    \let\BRbooktitlestyle\@bv@current@titlestyle
+    \let\BRchapterstyle\@bv@current@chapterstyle
+    \let\BRversestyle\@bv@current@versestyle% added on analogy with previous line
+    \let\BRbkchsep\@bv@current@bkchsep
+    \let\BRchvsep\@bv@current@chvsep
+    \let\BRvrsep\@bv@current@vrsep% add me, too!
+  }%
+  \def\BRbooktitlestyle##1{}%
+  \def\BRchapterstyle##1{}%
+  \def\BRversestyle##1{}% added on analogy with previous line
+  \def\BRbkchsep{}%
+  \def\BRchvsep{}%
+  \def\BRvrsep{}% add me, too!
+  \def\@bv@idxpgformat{#1}%
+  \@bv@idxtrue\def\@bv@idxentry{}\@bible@verse
+}
+%    \end{macrocode}
+% \end{macro}
 %\begin{macro}{\bvidxpgformat}
 % Default page number format for bible verse index entries
 %    \begin{macrocode}
-- 
cgit v1.2.3

