diff options
author | Norbert Preining <preining@logic.at> | 2007-11-16 10:31:42 +0000 |
---|---|---|
committer | Norbert Preining <preining@logic.at> | 2007-11-16 10:31:42 +0000 |
commit | ae2de180caf254f4bf858f2eaead6f19f19f0093 (patch) | |
tree | e886beb741084518dbdac7803986cee6ea7ad23f /Master/texmf-dist/tex/latex/bibleref | |
parent | bc5f7832361ad6f48e2053a7b124ffd3176446cd (diff) |
bibleref 1.7 from CTAN, fix ctan2tds for bibleref
git-svn-id: svn://tug.org/texlive/trunk@5436 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/bibleref')
-rw-r--r-- | Master/texmf-dist/tex/latex/bibleref/bibleref.sty | 66 |
1 files changed, 38 insertions, 28 deletions
diff --git a/Master/texmf-dist/tex/latex/bibleref/bibleref.sty b/Master/texmf-dist/tex/latex/bibleref/bibleref.sty index c9c3d7ee263..b76371282e3 100644 --- a/Master/texmf-dist/tex/latex/bibleref/bibleref.sty +++ b/Master/texmf-dist/tex/latex/bibleref/bibleref.sty @@ -5,12 +5,24 @@ %% The original source files were: %% %% bibleref.dtx (with options: `bibleref.sty,package') -%% Copyright (C) 2006 Nicola Talbot, all rights reserved. -%% If you modify this file, you must change its name first. -%% You are NOT ALLOWED to distribute this file alone. You are NOT -%% ALLOWED to take money for the distribution or use of either this -%% file or a changed version, except for a nominal charge for copying -%% etc. +%% +%% bibleref.dtx +%% Copyright 2007 Nicola Talbot +%% +%% This work may be distributed and/or modified under the +%% conditions of the LaTeX Project Public License, either version 1.3 +%% of this license of (at your option) any later version. +%% The latest version of this license is in +%% http://www.latex-project.org/lppl.txt +%% and version 1.3 or later is part of all distributions of LaTeX +%% version 2005/12/01 or later. +%% +%% This work has the LPPL maintenance status `maintained'. +%% +%% The Current Maintainer of this work is Nicola Talbot. +%% +%% This work consists of the files bibleref.dtx and bibleref.ins and the derived files bibleref.sty, sample.tex, bibleref.perl. +%% %% \CharacterTable %% {Upper-case \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z %% Lower-case \a\b\c\d\e\f\g\h\i\j\k\l\m\n\o\p\q\r\s\t\u\v\w\x\y\z @@ -27,7 +39,7 @@ %% Grave accent \` Left brace \{ Vertical bar \| %% Right brace \} Tilde \~} \NeedsTeXFormat{LaTeX2e} -\ProvidesPackage{bibleref}[2006/07/30 1.06 (NLCT)] +\ProvidesPackage{bibleref}[2007/08/20 1.07 (NLCT)] \RequirePackage{ifthen} \RequirePackage{fmtcount} \newcommand*{\BRbooknumberstyle}[1]{#1 } @@ -46,7 +58,7 @@ \newcommand*{\BRvrsep}{--} \newcommand*{\BRvsep}{,} \newcommand*{\BRperiod}{} -\newcommand{\brfullname}{% +\newcommand*{\brfullname}{% \def\br@Genesis{\BRbookof Genesis}% \def\br@Exodus{\BRbookof Exodus}% \def\br@Leviticus{\BRbookof Leviticus}% @@ -121,7 +133,7 @@ \def\br@Jude{\BRepistleof Jude}% \def\br@Revelation{\BRbookof Revelation}} \brfullname -\newcommand{\brabbrvname}{% +\newcommand*{\brabbrvname}{% \def\br@Genesis{Gn\BRperiod}% \def\br@Exodus{Ex\BRperiod}% \def\br@Leviticus{Lv\BRperiod}% @@ -195,7 +207,7 @@ \def\br@IIIJohn{\BRepistlenumberstyle{3}Jn\BRperiod}% \def\br@Jude{Jude}% \def\br@Revelation{Rv\BRperiod}} -\newcommand{\braltabbrvname}{% +\newcommand*{\braltabbrvname}{% \def\br@Genesis{Gen\BRperiod}% \def\br@Exodus{Exod\BRperiod}% \def\br@Leviticus{Lev\BRperiod}% @@ -410,7 +422,7 @@ \renewcommand*{\BRvrsep}{--}% \renewcommand*{\BRvsep}{,}% \renewcommand*{\BRperiod}{}} -\newcommand{\brs@jerusalem}{% +\newcommand*{\brs@jerusalem}{% \brabbrvname \renewcommand*{\BRbooknumberstyle}[1]{##1 }% \renewcommand*{\BRepistlenumberstyle}[1]{##1 }% @@ -429,7 +441,7 @@ \renewcommand*{\BRvsep}{,}% \renewcommand*{\BRperiod}{}% } -\newcommand{\brs@anglosaxon}{% +\newcommand*{\brs@anglosaxon}{% \braltabbrvname \renewcommand*{\BRbooknumberstyle}[1]{\MakeUppercase{\romannumeral##1} }% \renewcommand*{\BRepistlenumberstyle}[1]{\MakeUppercase{\romannumeral##1} }% @@ -448,7 +460,7 @@ \renewcommand*{\BRvsep}{,}% \renewcommand*{\BRperiod}{.}% } -\newcommand{\brs@JEH}{% +\newcommand*{\brs@JEH}{% \braltabbrvname \renewcommand*{\BRbooknumberstyle}[1]{##1 }% \renewcommand*{\BRepistlenumberstyle}[1]{##1 }% @@ -467,7 +479,7 @@ \renewcommand*{\BRvsep}{,}% \renewcommand*{\BRperiod}{.}% } -\newcommand{\brs@MHRA}{% +\newcommand*{\brs@MHRA}{% \brfullname \renewcommand*{\BRbooknumberstyle}[1]{\textsc{\romannumeral##1} }% \renewcommand*{\BRepistlenumberstyle}[1]{\textsc{\romannumeral##1} }% @@ -486,7 +498,7 @@ \renewcommand*{\BRvsep}{,}% \renewcommand*{\BRperiod}{}% } -\newcommand{\brs@NTG}{% +\newcommand*{\brs@NTG}{% \braltabbrvname \renewcommand*{\BRbooknumberstyle}[1]{##1 }% \renewcommand*{\BRepistlenumberstyle}[1]{##1 }% @@ -505,7 +517,7 @@ \renewcommand*{\BRvsep}{,}% \renewcommand*{\BRperiod}{}% } -\newcommand{\brs@MLA}{% +\newcommand*{\brs@MLA}{% \braltabbrvname \renewcommand*{\BRbooknumberstyle}[1]{##1 }% \renewcommand*{\BRepistlenumberstyle}[1]{##1 }% @@ -524,7 +536,7 @@ \renewcommand*{\BRvsep}{,}% \renewcommand*{\BRperiod}{.}% } -\newcommand{\brs@chicago}{% +\newcommand*{\brs@chicago}{% \braltabbrvname \renewcommand*{\BRbooknumberstyle}[1]{##1 }% \renewcommand*{\BRepistlenumberstyle}[1]{##1 }% @@ -578,15 +590,14 @@ chapter \numberstringnum{##1}}% \expandafter\def\csname brs@#1\endcsname{#2}}{% \PackageError{bibleref}{bible ref style '#1' already defined}{}}} -\newcommand{\setbooktitle}[2]{% +\newcommand*{\setbooktitle}[2]{% \@ifundefined{br@#1}{\PackageError{biberef}{Unknown book `#1'}{}}{% \expandafter\def\csname br@#1\endcsname{#2}}} -\newcommand{\biblerefstyle}[1]{% +\newcommand*{\biblerefstyle}[1]{% \@ifundefined{brs@#1}{\PackageError{bibleref}{% Unknown biblerefstyle '#1'}{}}{\csname brs@#1\endcsname}} -\newcommand{\@br@vrsty}[1]{\@@br@vrsty#1-\@nil\end} - +\newcommand*{\@br@vrsty}[1]{\@@br@vrsty#1-\@nil\end} \def\@@br@vrsty#1-#2\end{% \@do@verses#1,\relax\end \ifx\@nil#2\relax @@ -594,7 +605,6 @@ Unknown biblerefstyle '#1'}{}}{\csname brs@#1\endcsname}} \@bv@do{\BRvrsep}% \@@br@vrsty#2\end% \fi} - \def\@do@verses#1,#2\end{% \ifthenelse{\equal{#1}{}}{}{\@bv@do{\BRversestyle{#1}}}% \ifx\relax#2\@empty @@ -603,7 +613,7 @@ Unknown biblerefstyle '#1'}{}}{\csname brs@#1\endcsname}} \@do@verses#2\end \fi } -\newcommand{\bibleverse}[1]{% +\newcommand*{\bibleverse}[1]{% \@ifundefined{br@#1}{\PackageError{bibleref}{Unknown book '#1'}{% }}{\@bv@idxsort{\csname br@#1\endcsname}% \def\@bv@chidxsort{}% @@ -624,15 +634,15 @@ Unknown biblerefstyle '#1'}{}}{\csname brs@#1\endcsname}} \ifthenelse{\equal{#1}{}}{}{\@bv@do{\BRchvsep}\@br@vrsty{#1}}% \@ifnextchar({\@bv@do{\BRchsep}\@bibleverse}% {\@ifnextchar-{\@bv@do{\BRvrsep}\@bibleverser}{\@end@@bibleverse}}} -\newcommand{\@end@@bibleverse}{% +\newcommand*{\@end@@bibleverse}{% \if@bv@idx \index{\@@bv@idxsort\relax @\@bv@idxentry|\@bv@idxpgformat}% \@bv@idxfalse \fi } \newcommand{\@bv@do}[1]{#1\@bv@addtoidx{#1}} -\toksdef\@bv@tmpa=0 -\toksdef\@bv@tmpb=2 +\newtoks\@bv@tmpa +\newtoks\@bv@tmpb \newcommand{\@bv@addtoidx}[1]{% \if@bv@idx \@bv@tmpa={#1}% @@ -656,10 +666,10 @@ Unknown biblerefstyle '#1'}{}}{\csname brs@#1\endcsname}} \xdef\@@bv@idxsort{#1\relax}% }% \fi} -\newcommand{\ibibleverse}[1][\bvidxpgformat]{% +\newcommand*{\ibibleverse}[1][\bvidxpgformat]{% \def\@bv@idxpgformat{#1}% \@bv@idxtrue\def\@bv@idxentry{}\bibleverse} -\newcommand{\bvidxpgformat}{textrm} +\newcommand*{\bvidxpgformat}{textrm} \endinput %% %% End of file `bibleref.sty'. |