texlive[55626] Master/texmf-dist: bibleref (22jun20)
commits+karl at tug.org
commits+karl at tug.org
Mon Jun 22 22:52:23 CEST 2020
Revision: 55626
http://tug.org/svn/texlive?view=revision&revision=55626
Author: karl
Date: 2020-06-22 22:52:23 +0200 (Mon, 22 Jun 2020)
Log Message:
-----------
bibleref (22jun20)
Modified Paths:
--------------
trunk/Master/texmf-dist/doc/latex/bibleref/CHANGES
trunk/Master/texmf-dist/doc/latex/bibleref/bibleref.pdf
trunk/Master/texmf-dist/doc/latex/bibleref/samples/sample-categories.pdf
trunk/Master/texmf-dist/doc/latex/bibleref/samples/sample-indextools.pdf
trunk/Master/texmf-dist/doc/latex/bibleref/samples/sample-xidx.pdf
trunk/Master/texmf-dist/doc/latex/bibleref/samples/sample.pdf
trunk/Master/texmf-dist/source/latex/bibleref/bibleref.dtx
trunk/Master/texmf-dist/tex/latex/bibleref/bibleref.sty
Modified: trunk/Master/texmf-dist/doc/latex/bibleref/CHANGES
===================================================================
--- trunk/Master/texmf-dist/doc/latex/bibleref/CHANGES 2020-06-22 20:51:58 UTC (rev 55625)
+++ trunk/Master/texmf-dist/doc/latex/bibleref/CHANGES 2020-06-22 20:52:23 UTC (rev 55626)
@@ -1,5 +1,8 @@
+1.25
+ * Add \ibible macro
+ * Add more abbreviations
1.24
- * Add more abbreviation
+ * Add more abbreviations
* Add more \brthreeabbrvname
1.23
* Add Tt abbreviation
Modified: trunk/Master/texmf-dist/doc/latex/bibleref/bibleref.pdf
===================================================================
(Binary files differ)
Modified: trunk/Master/texmf-dist/doc/latex/bibleref/samples/sample-categories.pdf
===================================================================
(Binary files differ)
Modified: trunk/Master/texmf-dist/doc/latex/bibleref/samples/sample-indextools.pdf
===================================================================
(Binary files differ)
Modified: trunk/Master/texmf-dist/doc/latex/bibleref/samples/sample-xidx.pdf
===================================================================
(Binary files differ)
Modified: trunk/Master/texmf-dist/doc/latex/bibleref/samples/sample.pdf
===================================================================
(Binary files differ)
Modified: trunk/Master/texmf-dist/source/latex/bibleref/bibleref.dtx
===================================================================
--- trunk/Master/texmf-dist/source/latex/bibleref/bibleref.dtx 2020-06-22 20:51:58 UTC (rev 55625)
+++ trunk/Master/texmf-dist/source/latex/bibleref/bibleref.dtx 2020-06-22 20:52:23 UTC (rev 55626)
@@ -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 at Wis{\br at Wisdom}%
\newcommand*\br at Wisd{\br at Wisdom}%
\newcommand*\br at Ecclus{\br at Ecclesiasticus}%
+\newcommand*\br at Sir{\br at Ecclesiasticus}%
\newcommand*\br at Isa{\br at Isaiah}%
\newcommand*\br at Jer{\br at Jeremiah}%
\newcommand*\br at Lam{\br at Lamentations}%
@@ -2668,6 +2675,36 @@
% \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 at current@titlestyle\BRbooktitlestyle
+ \let\@bv at current@chapterstyle\BRchapterstyle
+ \let\@bv at current@versestyle\BRversestyle% added on analogy with previous line
+ \let\@bv at current@bkchsep\BRbkchsep
+ \let\@bv at current@chvsep\BRchvsep
+ \let\@bv at current@vrsep\BRvrsep% add me, too!
+ \def\@bv at restore{%
+ \let\BRbooktitlestyle\@bv at current@titlestyle
+ \let\BRchapterstyle\@bv at current@chapterstyle
+ \let\BRversestyle\@bv at current@versestyle% added on analogy with previous line
+ \let\BRbkchsep\@bv at current@bkchsep
+ \let\BRchvsep\@bv at current@chvsep
+ \let\BRvrsep\@bv at 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 at idxpgformat{#1}%
+ \@bv at idxtrue\def\@bv at idxentry{}\@bible at verse
+}
+% \end{macrocode}
+% \end{macro}
%\begin{macro}{\bvidxpgformat}
% Default page number format for bible verse index entries
% \begin{macrocode}
Modified: trunk/Master/texmf-dist/tex/latex/bibleref/bibleref.sty
===================================================================
--- trunk/Master/texmf-dist/tex/latex/bibleref/bibleref.sty 2020-06-22 20:51:58 UTC (rev 55625)
+++ trunk/Master/texmf-dist/tex/latex/bibleref/bibleref.sty 2020-06-22 20:52:23 UTC (rev 55626)
@@ -39,7 +39,7 @@
%% Grave accent \` Left brace \{ Vertical bar \|
%% Right brace \} Tilde \~}
\NeedsTeXFormat{LaTeX2e}
-\ProvidesPackage{bibleref}[2019/12/10 1.24 (NLCT and MR)]
+\ProvidesPackage{bibleref}[2020/06/22 1.25 (NLCT and MR)]
\RequirePackage{ifthen}
\RequirePackage{fmtcount}
\RequirePackage{amsgen}
@@ -469,6 +469,7 @@
\newcommand*\br at Wis{\br at Wisdom}%
\newcommand*\br at Wisd{\br at Wisdom}%
\newcommand*\br at Ecclus{\br at Ecclesiasticus}%
+\newcommand*\br at Sir{\br at Ecclesiasticus}%
\newcommand*\br at Isa{\br at Isaiah}%
\newcommand*\br at Jer{\br at Jeremiah}%
\newcommand*\br at Lam{\br at Lamentations}%
@@ -1158,6 +1159,30 @@
\def\@bv at idxpgformat{#1}%
\@bv at idxtrue\def\@bv at idxentry{}\@bible at verse
}
+\newcommand*{\ibible}[1][\bvidxpgformat]{%
+ \let\@bv at current@titlestyle\BRbooktitlestyle
+ \let\@bv at current@chapterstyle\BRchapterstyle
+ \let\@bv at current@versestyle\BRversestyle% added on analogy with previous line
+ \let\@bv at current@bkchsep\BRbkchsep
+ \let\@bv at current@chvsep\BRchvsep
+ \let\@bv at current@vrsep\BRvrsep% add me, too!
+ \def\@bv at restore{%
+ \let\BRbooktitlestyle\@bv at current@titlestyle
+ \let\BRchapterstyle\@bv at current@chapterstyle
+ \let\BRversestyle\@bv at current@versestyle% added on analogy with previous line
+ \let\BRbkchsep\@bv at current@bkchsep
+ \let\BRchvsep\@bv at current@chvsep
+ \let\BRvrsep\@bv at 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 at idxpgformat{#1}%
+ \@bv at idxtrue\def\@bv at idxentry{}\@bible at verse
+}
\newcommand*{\bvidxpgformat}{textrm}
\AtBeginDocument{%
\ifdefined\bbl at ifunset\else%
More information about the tex-live-commits
mailing list.