diff options
Diffstat (limited to 'Master/texmf-dist/tex/latex/biblatex/blx-compat.def')
-rw-r--r-- | Master/texmf-dist/tex/latex/biblatex/blx-compat.def | 222 |
1 files changed, 217 insertions, 5 deletions
diff --git a/Master/texmf-dist/tex/latex/biblatex/blx-compat.def b/Master/texmf-dist/tex/latex/biblatex/blx-compat.def index dfead5ff694..54fb9d14d31 100644 --- a/Master/texmf-dist/tex/latex/biblatex/blx-compat.def +++ b/Master/texmf-dist/tex/latex/biblatex/blx-compat.def @@ -50,19 +50,43 @@ {}% \DeclareOption{bibtotoc}{% \let\ifkomabibtotoc=\@firstoftwo - \let\ifkomabibtotocnumbered=\@secondoftwo} + \let\ifkomabibtotocnumbered=\@secondoftwo}% \DeclareOption{bibtotocnumbered}{% \let\ifkomabibtotoc=\@firstoftwo \let\ifkomabibtotocnumbered=\@firstoftwo}% - \DeclareOption{bibliography=totoc}{% - \let\ifkomabibtotoc=\@firstoftwo - \let\ifkomabibtotocnumbered=\@secondoftwo} + \DeclareOption{bibliography=notoc}{% + \let\ifkomabibtotoc=\@secondoftwo + \let\ifkomabibtotocnumbered=\@secondoftwo}% \DeclareOption{bibliography=nottotoc}{% \let\ifkomabibtotoc=\@secondoftwo - \let\ifkomabibtotocnumbered=\@secondoftwo} + \let\ifkomabibtotocnumbered=\@secondoftwo}% + \DeclareOption{bibliography=plainheading}{% + \let\ifkomabibtotoc=\@secondoftwo + \let\ifkomabibtotocnumbered=\@secondoftwo}% + \DeclareOption{bibliography=totoc}{% + \let\ifkomabibtotoc=\@firstoftwo + \let\ifkomabibtotocnumbered=\@secondoftwo}% + \DeclareOption{bibliography=toc}{% + \let\ifkomabibtotoc=\@firstoftwo + \let\ifkomabibtotocnumbered=\@secondoftwo}% + \DeclareOption{bibliography=notnumbered}{% + \let\ifkomabibtotoc=\@firstoftwo + \let\ifkomabibtotocnumbered=\@secondoftwo}% + \DeclareOption{bibliography=numbered}{% + \let\ifkomabibtotoc=\@firstoftwo + \let\ifkomabibtotocnumbered=\@firstoftwo}% \DeclareOption{bibliography=totocnumbered}{% \let\ifkomabibtotoc=\@firstoftwo \let\ifkomabibtotocnumbered=\@firstoftwo}% + \DeclareOption{bibliography=tocnumbered}{% + \let\ifkomabibtotoc=\@firstoftwo + \let\ifkomabibtotocnumbered=\@firstoftwo}% + \DeclareOption{bibliography=numberedtotoc}{% + \let\ifkomabibtotoc=\@firstoftwo + \let\ifkomabibtotocnumbered=\@firstoftwo}% + \DeclareOption{bibliography=numberedtoc}{% + \let\ifkomabibtotoc=\@firstoftwo + \let\ifkomabibtotocnumbered=\@firstoftwo}% \DeclareOption{bibliography=oldstyle}{% \ExecuteBibliographyOptions{block=space}}% \DeclareOption{bibliography=openstyle}{% @@ -119,4 +143,192 @@ \define@key{blx@bbg}{minitems}{\blx@warn@depropt{minitems}} \define@key{blx@bbc}{minitems}{\blx@warn@depropt{minitems}} +% Legacy alias for \printshorthands +\def\printshorthands{% + \@ifnextchar[%] + {\blx@printshorthands} + {\blx@printshorthands[]}} + +\def\blx@printshorthands[#1]{\printbiblist[#1]{shorthand}} + +% Legacy aliases +\def\AtBeginShorthands{\AtBeginBiblist{shorthand}} +\def\AtEveryLositem{\AtEveryBiblistitem{shorthand}} +\@onlypreamble\AtBeginShorthands +\@onlypreamble\AtEveryLositem + +\let\frangelen\rangelen % Legacy name for \rangelen + +\DeclareBibliographyOption[string]{sortlos}{% + \blx@warning@noline{% + 'sortlos' option is deprecated.\MessageBreak + Please use 'sorting' option to '\string\printbiblist'}} + +\define@key{blx@bib1}{sorting}{% + \blx@warning@noline{% + 'sorting' option to '\string\printbibliography' is no longer supported.\MessageBreak + Please use 'sorting' option to '\string\newrefcontext'}} + +\define@key{blx@biblist1}{sorting}{% + \blx@warning@noline{% + 'sorting' option to '\string\printbiblist' is no longer supported.\MessageBreak + Please use 'sorting' option to '\string\newrefcontext'}} + +\define@key{blx@bib2}{prefixnumbers}{% + \blx@warning@noline{% + 'prefixnumbers' option to '\string\printbibliography' is no longer supported.\MessageBreak + Please use 'labelprefix' option to '\string\newrefcontext'}} + + +\DeclareBibliographyOption[string]{babel}{% + \blx@warning@noline{% + 'babel' option is deprecated.\MessageBreak + Please use 'autolang' instead}% + \blx@autolang@i{#1}} + +\DeclareTypeOption[boolean]{skiplos}{% + \blx@warning@noline{% + skiplos option is deprecated.\MessageBreak + Please use 'skipbiblist' instead}% + \settoggle{blx@skipbiblist}{#1}} +\DeclareEntryOption[boolean]{skiplos}{% + \blx@warning@noline{% + skiplos option is deprecated.\MessageBreak + Please use 'skipbiblist' instead}% + \settoggle{blx@skipbiblist}{#1}} + +% Legacy options moved to \namepart in \DeclareLabelalphaNameTemplate +\define@key{blx@latem@field}{compound}{% deprecated + \blx@warning@noline{% + Ignored 'compound' option to '\string\field' in '\string\DeclareLabelalphaNameTemplate'\MessageBreak + This is now the 'compound' option of '\string\namepart\space' in\MessageBreak + '\string\DeclareLabelalphaNameTemplate'}} +\define@key{blx@latem@field}{pcompound}{% deprecated + \blx@warning@noline{% + Ignored 'pcompound' option to '\string\field' in '\string\DeclareLabelalphaNameTemplate'\MessageBreak + This is now the 'compound' option of '\string\namepart' in\MessageBreak + '\string\DeclareLabelalphaNameTemplate'}} +\define@key{blx@latem@field}{pstrwidth}{% deprecated + \blx@warning@noline{% + Ignored 'pstrwidth' option to '\string\field' in '\string\DeclareLabelalphaNameTemplate'\MessageBreak + This is now the 'strwidth' option of '\string\namepart' in\MessageBreak + '\string\DeclareLabelalphaNameTemplate'}} + +%LEGACY(<3.3) legacy name for \ifgiveninits which is autogenerated now +\def\iffirstinits{ + \blx@warning@noline{% + '\string\iffirstinits' is deprecated.\MessageBreak + Please use '\string\ifgiveninits'}% + \iftoggle{abx@bool@giveninits}} + +% Legacy for giveninits +\DeclareBibliographyOption[boolean]{firstinits}[true]{% + \blx@warning@noline{% + 'firstinits' option is deprecated.\MessageBreak + Please use 'giveninits' instead}% + \settoggle{abx@bool@giveninits}{#1}} + +% Legacy for sortfirstinits/sortgiveninits +\DeclareBibliographyOption[boolean]{sortfirstinits}[true]{% + \blx@warning@noline{% + 'sortfirstinits' option is deprecated.\MessageBreak + Please use 'inits' option to '\string\namepart\space'\MessageBreak + in '\string\DeclareSortingNamekeyTemplate'}} +\DeclareBibliographyOption[boolean]{sortgiveninits}{% + \blx@warning@noline{% + 'sortgiveninits' option is deprecated.\MessageBreak + Please use 'inits' option to '\string\namepart'\MessageBreak + in '\string\DeclareSortingNamekeyTemplate' instead}} + +\define@key{blx@refcontext}{prefixnumbers}{%LEGACY(<3.3) + \blx@warning@noline{% + prefixnumbers option to '\string\newrefcontext' has been renamed.\MessageBreak + Please use 'labelprefix' option instead}% + \setkeys{blx@refcontext}{labelprefix=#1}} + +% biblatex < 3.4 +\define@key{blx@bib1}{prefixnumbers}{}%LEGACY(<3.4) legacy name for labelprefix +\DeprecateFieldWithReplacement{prefixnumber}{labelprefix} +\DeclareFieldAlias{prefixnumber}{labelprefix} + +% biblatex < 3.5 +\DeclareBibliographyOption[string]{datelabel}{% + \blx@warning@noline{% + 'datelabel' option is deprecated.\MessageBreak + Please use 'labeldate' instead}% + \setkeys{blx@opt@pre}{labeldate=#1}} + +\DeclareBibliographyOption[boolean]{labelyear}[true]{% + \blx@warning@noline{% + 'labelyear' option is deprecated.\MessageBreak + Please use 'labeldateparts' instead}% + \settoggle{blx@labeldateparts}{#1}} +\DeclareTypeOption[boolean]{labelyear}[true]{% + \blx@warning@noline{% + 'labelyear' option is deprecated.\MessageBreak + Please use 'labeldateparts' instead}% + \settoggle{blx@labeldateparts}{#1}} + +\protected\def\mkdatezeros{% + \blx@warning@noline{% + '\string\mkdatezeros' is deprecated.\MessageBreak + Please use '\string\mkyearzeros', '\string\mkmonthzeros' or\MessageBreak + '\string\mkdayzeros' as appropriate. \MessageBreak + Falling back to '\string\mkmonthzeros'}% + \mkmonthzeros} + +\protected\def\printdatelabel{% + \blx@warning@noline{% + '\string\printdatelabel' is deprecated.\MessageBreak + Please use '\string\printlabeldate'}% + \blx@imc@printlabeldate} + +\protected\def\printdatelabelextra{% + \blx@warning@noline{% + '\string\printdatelabelextra' is deprecated.\MessageBreak + Please use '\string\printlabeldateextra'}% + \blx@imc@printlabeldateextra} + +\newrobustcmd*{\DeclareLabelyear}[2][]{% + \blx@warning@noline{% + 'DeclareLabelyear' is deprecated.\MessageBreak + Please use 'DeclareLabeldate'}} + +\cslet{mkdaterangeiso8601}\mkdaterangeedtf% Legacy option support +\cslet{mkdaterangeiso8601extra}\mkdaterangeedtfextra% Legacy option support + +\newrobustcmd*{\bibdatedash}{\bibrangedash}%LEGACY(<3.5) + +% biblatex < 3.8 +\define@key{blx@refcontext}{sortingnamekeyscheme}{% + \blx@warning@noline{'sortingnamekeyscheme' is deprecated.\MessageBreak + Please use 'sortingnamekeytemplatename' instead}% + \gdef\blx@refcontext@sortingnamekeytemplatename{#1}} + +\define@key{blx@assignrefcontext}{sortingnamekeyscheme}{% + \blx@warning@noline{'sortingnamekeyscheme' is deprecated.\MessageBreak + Please use 'sortingnamekeytemplatename' instead}% + \def\blx@tempb{#1}} + +\def\DeclareSortingScheme{% + \blx@warning@noline{% + '\string\DeclareSortingScheme' is deprecated.\MessageBreak + Please use '\string\DeclareSortingTemplate'}% + \DeclareSortingTemplate} + +\def\DeclareSortingNamekeyScheme{% + \blx@warning@noline{% + '\string\DeclareSortingNamekeyScheme' is deprecated.\MessageBreak + Please use '\string\DeclareSortingNamekeyTemplate'}% + \DeclareSortingNamekeyTemplate} + +\def\ifsortnamekeyscheme#1{% + \blx@warning@noline{% + '\string\ifsortnamekeyscheme' is deprecated in sorting specifications.\MessageBreak + Please use '\string\ifsortingnamekeytemplate'}% + \expandafter\ifstrequal\expandafter{\blx@refcontext@sortingnamekeytemplatename}{#1}} + +\DeprecateFieldWithReplacement{extrayear}{extradate} +\DeclareFieldAlias{extrayear}{extradate} + \endinput |