| 1 |
%% |
| 2 |
%% This is file `lwarp-biblatex.sty', |
| 3 |
%% generated with the docstrip utility. |
| 4 |
%% |
| 5 |
%% The original source files were: |
| 6 |
%% |
| 7 |
%% lwarp.dtx (with options: `biblatex') |
| 8 |
%% This is a generated file. |
| 9 |
%% Copyright 2016-2026 Brian Dunn |
| 10 |
%% |
| 11 |
%% This work may be distributed and/or modified under the |
| 12 |
%% conditions of the LaTeX Project Public License, either version 1.3 |
| 13 |
%% of this license or (at your option) any later version. |
| 14 |
%% The latest version of this license is in |
| 15 |
%% http://www.latex-project.org/lppl.txt |
| 16 |
%% and version 1.3 or later is part of all distributions of LaTeX |
| 17 |
%% version 2005/12/01 or later. |
| 18 |
\ifdef{\newfloat@addtocontents@ORI}{ |
| 19 |
\let\addtocontents\newfloat@addtocontents@ORI |
| 20 |
}{} |
| 21 |
\AtBeginDocument{\RequirePackage{hyperref}} |
| 22 |
|
| 23 |
\LWR@ProvidesPackagePass{biblatex}[2018/03/04] |
| 24 |
\AfterPreamble{ |
| 25 |
\let\blx@anchors\@empty |
| 26 |
\protected\def\blx@anchor{% |
| 27 |
\xifinlist{\the\c@refsection @\abx@field@entrykey}{\blx@anchors} |
| 28 |
{} |
| 29 |
{\listxadd\blx@anchors{\the\c@refsection @\abx@field@entrykey}% |
| 30 |
\hypertarget{cite.\the\c@refsection @\abx@field@entrykey}{}}} |
| 31 |
|
| 32 |
\protected\def\blx@imc@bibhyperref{% |
| 33 |
\@ifnextchar[%] |
| 34 |
{\blx@bibhyperref} |
| 35 |
{\blx@bibhyperref[\abx@field@entrykey]}}% |
| 36 |
|
| 37 |
\long\def\blx@bibhyperref[#1]#2{% |
| 38 |
\hyperlink{cite.\the\c@refsection @#1}{% |
| 39 |
#2% |
| 40 |
}% |
| 41 |
}%% \def\blx@nohyperref[#1]#2{#2}% |
| 42 |
|
| 43 |
\protected\long\def\blx@imc@bibhyperlink#1#2{% |
| 44 |
\hyperlink{cite.\the\c@refsection:#1}{% |
| 45 |
#2% |
| 46 |
}% |
| 47 |
}% |
| 48 |
|
| 49 |
\protected\long\def\blx@imc@bibhypertarget#1#2{% |
| 50 |
\hypertarget{cite.\the\c@refsection:#1}{% |
| 51 |
#2% |
| 52 |
}% |
| 53 |
} |
| 54 |
|
| 55 |
\let\blx@imc@ifhyperref\@firstoftwo |
| 56 |
\xpretocmd{\blx@citecmdinit} |
| 57 |
{\LWR@newautopagelabel{page}}% |
| 58 |
{} |
| 59 |
{\LWR@patcherror{biblatex}{blx@citecmdinit}} |
| 60 |
\VerifyCommand[lwarp][biblatex]{\blx@addbackref@i}{C820E8B12CF2904906644302E07EBE88} |
| 61 |
|
| 62 |
\xpatchcmd{\blx@addbackref@i} |
| 63 |
{\thepage} |
| 64 |
{\theLWR@previousautopagelabel}% ref to the most recent object |
| 65 |
{} |
| 66 |
{\LWR@patcherror{biblatex}{blx@addbackref@i A}} |
| 67 |
|
| 68 |
\xpatchcmd{\blx@addbackref@i} |
| 69 |
{\c@page} |
| 70 |
{\c@LWR@previousautopagelabel}% ref to the most recent object |
| 71 |
{} |
| 72 |
{\LWR@patcherror{biblatex}{blx@addbackref@i B}} |
| 73 |
\DeclareListFormat{pageref}{% |
| 74 |
\ifnumless{\abx@pagerefstyle}{0} |
| 75 |
{\usebibmacro{list:plain}% |
| 76 |
\ifhyperref |
| 77 |
{% |
| 78 |
\LWR@refwithsection{\BaseJobname-autopage-#1}% lwarp |
| 79 |
} |
| 80 |
{#1}} |
| 81 |
{\ifnumequal{\value{listcount}}{1} |
| 82 |
{\usebibmacro{pageref:init}} |
| 83 |
{}% |
| 84 |
\usebibmacro{pageref:comp}{#1}% |
| 85 |
\ifnumequal{\value{listcount}}{\value{liststop}} |
| 86 |
{\usebibmacro{pageref:dump}} |
| 87 |
{}}} |
| 88 |
|
| 89 |
\expandafter\VerifyCommand\expandafter{\csname abx@macro@pageref:comp\endcsname} |
| 90 |
{019E018D2EBB4F3D02578439F03128D8} |
| 91 |
|
| 92 |
\renewbibmacro*{pageref:comp}[1]{% |
| 93 |
\numdef\abx@range@prev{\abx@range@prev+1}% |
| 94 |
\ifinteger{#1} |
| 95 |
{\def\abx@range@num{#1}% |
| 96 |
\def\abx@range@this{1}% |
| 97 |
\ifnumequal{\abx@range@this}{\abx@range@last} |
| 98 |
{} |
| 99 |
{\def\abx@range@prev{-1}}} |
| 100 |
{\ifrmnum{#1} |
| 101 |
{\numdef\abx@range@num{\rmntonum{#1}}% |
| 102 |
\def\abx@range@this{2}% |
| 103 |
\ifnumequal{\abx@range@this}{\abx@range@last} |
| 104 |
{} |
| 105 |
{\def\abx@range@prev{-1}}} |
| 106 |
{\undef\abx@range@num |
| 107 |
\def\abx@range@this{0}% |
| 108 |
\def\abx@range@prev{-1}}}% |
| 109 |
\ifdef\abx@range@num |
| 110 |
{\ifnumequal{\abx@range@num}{\abx@range@prev} |
| 111 |
{\def\abx@range@hold{#1}% |
| 112 |
\numdef\abx@range@diff{\abx@range@diff+1}} |
| 113 |
{\usebibmacro{pageref:dump}% |
| 114 |
\ifnumgreater{\abx@range@last}{-1} |
| 115 |
{\printdelim{multilistdelim}} |
| 116 |
{}% |
| 117 |
\ifhyperref |
| 118 |
{\LWR@refwithsection{\BaseJobname-autopage-#1}}% lwarp |
| 119 |
{#1}}% |
| 120 |
\edef\abx@range@prev{\abx@range@num}} |
| 121 |
{\usebibmacro{pageref:dump}% |
| 122 |
\ifnumgreater{\abx@range@last}{-1} |
| 123 |
{\printdelim{multilistdelim}} |
| 124 |
{}% |
| 125 |
\ifhyperref |
| 126 |
{\LWR@refwithsection{\BaseJobname-autopage-#1}}% lwarp |
| 127 |
{#1}% |
| 128 |
\def\abx@range@prev{-1}}% |
| 129 |
\edef\abx@range@last{\abx@range@this}} |
| 130 |
|
| 131 |
\expandafter\VerifyCommand\expandafter{\csname abx@macro@pageref:dump\endcsname} |
| 132 |
{9BD1165E771053A5DA8957BE4E2E7B9E} |
| 133 |
|
| 134 |
\renewbibmacro*{pageref:dump}{% |
| 135 |
\ifnumgreater{\abx@range@diff}{0} |
| 136 |
{\ifcase\abx@pagerefstyle\relax % two |
| 137 |
\bibrangedash |
| 138 |
\ifhyperref |
| 139 |
{\LWR@refwithsection{\BaseJobname-autopage-\abx@range@hold}}% lwarp |
| 140 |
{\abx@range@hold}% |
| 141 |
\or % three |
| 142 |
\ifnumless{\abx@range@diff}{2} |
| 143 |
{\printdelim{multilistdelim}} |
| 144 |
{\bibrangedash}% |
| 145 |
\ifhyperref |
| 146 |
{\LWR@refwithsection{\BaseJobname-autopage-\abx@range@hold}}% lwarp |
| 147 |
{\abx@range@hold}% |
| 148 |
\or % two+ |
| 149 |
\ifnumless{\abx@range@diff}{2} |
| 150 |
{\sqspace |
| 151 |
\ifhyperref |
| 152 |
{\LWR@refwithsection{\BaseJobname-autopage-\abx@range@hold}}% lwarp |
| 153 |
{\bibstring{sequens}}} |
| 154 |
{\bibrangedash |
| 155 |
\ifhyperref |
| 156 |
{\LWR@refwithsection{\BaseJobname-autopage-\abx@range@hold}}% lwarp |
| 157 |
{\abx@range@hold}}% |
| 158 |
\or % three+ |
| 159 |
\ifnumless{\abx@range@diff}{2} |
| 160 |
{\sqspace |
| 161 |
\ifhyperref |
| 162 |
{\LWR@refwithsection{\BaseJobname-autopage-\abx@range@hold}}% lwarp |
| 163 |
{\bibstring{sequens}}} |
| 164 |
{\ifnumless{\abx@range@diff}{3} |
| 165 |
{\sqspace |
| 166 |
\ifhyperref |
| 167 |
{\LWR@refwithsection{\BaseJobname-autopage-\abx@range@hold}}% lwarp |
| 168 |
{\bibstring{sequentes}}} |
| 169 |
{\bibrangedash |
| 170 |
\ifhyperref |
| 171 |
{\LWR@refwithsection{\BaseJobname-autopage-\abx@range@hold}}% lwarp |
| 172 |
{\abx@range@hold}}}% |
| 173 |
\else % all+ |
| 174 |
\ifnumless{\abx@range@diff}{2} |
| 175 |
{\sqspace |
| 176 |
\ifhyperref |
| 177 |
{\LWR@refwithsection{\BaseJobname-autopage-\abx@range@hold}}% lwarp |
| 178 |
{\bibstring{sequens}}} |
| 179 |
{\sqspace |
| 180 |
\ifhyperref |
| 181 |
{\LWR@refwithsection{\BaseJobname-autopage-\abx@range@hold}}% lwarp |
| 182 |
{\bibstring{sequentes}}}% |
| 183 |
\fi |
| 184 |
\def\abx@range@diff{0}} |
| 185 |
{}} |
| 186 |
|
| 187 |
}% \AfterPreamble |
| 188 |
|
| 189 |
\endinput |
| 190 |
%% |
| 191 |
%% End of file `lwarp-biblatex.sty'. |