diff options
Diffstat (limited to 'Master/texmf-dist/tex/latex/bibleref/bibleref.sty')
-rw-r--r-- | Master/texmf-dist/tex/latex/bibleref/bibleref.sty | 28 |
1 files changed, 22 insertions, 6 deletions
diff --git a/Master/texmf-dist/tex/latex/bibleref/bibleref.sty b/Master/texmf-dist/tex/latex/bibleref/bibleref.sty index 3d4cdafe07a..5c2bddb91fa 100644 --- a/Master/texmf-dist/tex/latex/bibleref/bibleref.sty +++ b/Master/texmf-dist/tex/latex/bibleref/bibleref.sty @@ -39,10 +39,11 @@ %% Grave accent \` Left brace \{ Vertical bar \| %% Right brace \} Tilde \~} \NeedsTeXFormat{LaTeX2e} -\ProvidesPackage{bibleref}[2018/06/05 1.17a (NLCT and MR)] +\ProvidesPackage{bibleref}[2018/07/21 1.18 (NLCT and MR)] \RequirePackage{ifthen} \RequirePackage{fmtcount} \RequirePackage{amsgen} +\RequirePackage{ifxetex} \newcommand*{\BRbooknumberstyle}[1]{#1 } \newcommand*{\BRepistlenumberstyle}[1]{#1 } \newcommand*{\BRbookof}{} @@ -934,14 +935,29 @@ defined}{}}} \fi } \newcommand*{\biblerefindex}{\index} +\newcommand{\biblerefmap@}[2]{% + \expandafter\def\csname @bibleref@map@\detokenize{#1}\endcsname{#2}% +}% \newcommand*{\biblerefmap}[2]{% - \expandafter\def\csname @bibleref@map@#1\endcsname{#2}% + \ifxetex% + \expandafter\def\csname @bibleref@map@#1\endcsname{#2}% + \else% + \edef\@tmp{#1}% + \expandafter\biblerefmap@\expandafter{\@tmp}{#2}% + \fi% } \def\@do@bibleref@map#1\relax{% - \@ifundefined{@bibleref@map@#1}{}{% - \expandafter\let\expandafter\@@bv@idxsort - \csname @bibleref@map@#1\endcsname - }% + \ifxetex% + \@ifundefined{@bibleref@map@#1}{}{% + \expandafter\let\expandafter\@@bv@idxsort% + \csname @bibleref@map@#1\endcsname% + }% + \else% + \@ifundefined{@bibleref@map@\detokenize{#1}}{}{% + \expandafter\let\expandafter\@@bv@idxsort% + \csname @bibleref@map@\detokenize{#1}\endcsname% + }% + \fi% } \newcommand{\@bv@do}[1]{#1\@bv@addtoidx{#1}} \newtoks\@bv@tmpa |