diff options
Diffstat (limited to 'Master/texmf-dist/tex/latex/biblatex-ext/biblatex-ext-tabular.sty')
-rw-r--r-- | Master/texmf-dist/tex/latex/biblatex-ext/biblatex-ext-tabular.sty | 48 |
1 files changed, 42 insertions, 6 deletions
diff --git a/Master/texmf-dist/tex/latex/biblatex-ext/biblatex-ext-tabular.sty b/Master/texmf-dist/tex/latex/biblatex-ext/biblatex-ext-tabular.sty index 85500743cc0..1e9d4989d5c 100644 --- a/Master/texmf-dist/tex/latex/biblatex-ext/biblatex-ext-tabular.sty +++ b/Master/texmf-dist/tex/latex/biblatex-ext/biblatex-ext-tabular.sty @@ -1,5 +1,5 @@ \ProvidesPackage{biblatex-ext-tabular} - [2020/03/15 v0.8d tabular bibliographies for biblatex (MW)] + [2020/05/05 v0.8e tabular bibliographies for biblatex (MW)] % Code based on Audrey's % (https://tex.stackexchange.com/users/4483/audrey) @@ -21,6 +21,29 @@ \protected\def\extblxtab@warning{% \PackageWarning{biblatex-ext-tabular}}} +\@ifpackageloaded{biblatex} + {} + {\extblxtab@error + {biblatex not loaded!\MessageBreak + Please load biblatex before you\MessageBreak + load biblatex-ext-tabular} + {biblatex needs to be loaded before biblatex-ext-tabular.% + \MessageBreak + This is a fatal error. I'm aborting now}% + \endinput} + +\def\extblxtab@requiredbiblatexversion{3.14} +\def\extblxtab@requiredbiblatexdate{2019/12/01} + +\@ifpackagelater{biblatex}{\extblxtab@requiredbiblatexdate} + {} + {\extblxtab@warning@noline{% + Outdated version of biblatex detected.\MessageBreak + Upgrade to biblatex \extblxtab@requiredbiblatexversion\space + (\extblxtab@requiredbiblatexdate) or later.\MessageBreak + I found '\csuse{abx@version} (\csuse{abx@date})'}} + + % user-level command for printing tabular bibliography \newrobustcmd*{\printbibtabular}{% @@ -42,11 +65,19 @@ \def\extblxtab@printbibtabular[#1]{% \toggletrue{blx@tempa}% \toggletrue{blx@tempb}% - \def\blx@theheading{bibliography}% + \ifundef\blx@default@theheading + {\def\blx@theheading{bibliography}} + {\let\blx@theheading\blx@default@theheading}% \def\blx@theenv{bibtabular}% - \let\blx@theprenote\@empty - \let\blx@thepostnote\@empty - \let\blx@thetitle\@empty + \ifundef\blx@default@theprenote + {\let\blx@theprenote\@empty} + {\let\blx@theprenote\blx@default@theprenote}% + \ifundef\blx@default@thepostnote + {\let\blx@thepostnote\@empty} + {\let\blx@thepostnote\blx@default@thepostnote}% + \ifundef\blx@default@thetitle + {\let\blx@thetitle\@empty} + {\let\blx@thetitle\blx@default@thetitle}% \let\blx@key@env\extblxtab@key@env % redirect the 'env' option % to tabular envs % defaults @@ -56,12 +87,17 @@ \togglefalse{blx@resetnumsexplicit}% % First pass options keys - section and resetnumbers \setkeys{blx@bib1}{#1}% + \ifundef\blx@refcontext@labelprefix@real + {\let\blx@refcontext@labelprefix@real\blx@refcontext@labelprefix} + {}% % Is there a user-specified option for resetnumbers % If so, this overrides the default % "labelprefix implies resetnumbers" behaviour \iftoggle{blx@resetnumsexplicit} {} {\ifdefempty\blx@refcontext@labelprefix + {\ifdefempty\blx@refcontext@labelprefix@real} + {\@secondoftwo} {} {\setkeys{blx@bib2}{resetnumbers}}}% \blx@rest@actives @@ -87,7 +123,7 @@ \blx@xml@dlist@refcontext {\blx@refcontext@sortingtemplatename} {\blx@refcontext@sortingnamekeytemplatename} - {\blx@refcontext@labelprefix} + {\blx@refcontext@labelprefix@real} {\blx@refcontext@uniquenametemplatename} {\blx@refcontext@labelalphanametemplatename}}{}}}% \ifdefvoid\blx@tempa |