diff options
Diffstat (limited to 'Master/texmf-dist/tex/latex/biblatex/cbx/authoryear-comp.cbx')
-rw-r--r-- | Master/texmf-dist/tex/latex/biblatex/cbx/authoryear-comp.cbx | 70 |
1 files changed, 26 insertions, 44 deletions
diff --git a/Master/texmf-dist/tex/latex/biblatex/cbx/authoryear-comp.cbx b/Master/texmf-dist/tex/latex/biblatex/cbx/authoryear-comp.cbx index 73f975bb976..71e49ffbc9e 100644 --- a/Master/texmf-dist/tex/latex/biblatex/cbx/authoryear-comp.cbx +++ b/Master/texmf-dist/tex/latex/biblatex/cbx/authoryear-comp.cbx @@ -28,19 +28,19 @@ {\ifthenelse{\ifnameundef{labelname}\OR\iffieldundef{labelyear}} {\usebibmacro{cite:label}% \setunit{\printdelim{nonameyeardelim}}% - \usebibmacro{cite:labelyear+extrayear}% + \usebibmacro{cite:labeldate+extradate}% \usebibmacro{cite:reinit}} {\iffieldequals{namehash}{\cbx@lasthash} {\ifthenelse{\iffieldequals{labelyear}{\cbx@lastyear}\AND \(\value{multicitecount}=0\OR\iffieldundef{postnote}\)} {\setunit{\addcomma}% - \usebibmacro{cite:extrayear}} + \usebibmacro{cite:extradate}} {\setunit{\compcitedelim}% - \usebibmacro{cite:labelyear+extrayear}% + \usebibmacro{cite:labeldate+extradate}% \savefield{labelyear}{\cbx@lastyear}}} {\printnames{labelname}% \setunit{\printdelim{nameyeardelim}}% - \usebibmacro{cite:labelyear+extrayear}% + \usebibmacro{cite:labeldate+extradate}% \savefield{namehash}{\cbx@lasthash}% \savefield{labelyear}{\cbx@lastyear}}}} {\usebibmacro{cite:shorthand}% @@ -56,11 +56,11 @@ {\ifthenelse{\iffieldequals{labelyear}{\cbx@lastyear}\AND \(\value{multicitecount}=0\OR\iffieldundef{postnote}\)} {\setunit{\addcomma}% - \usebibmacro{cite:extrayear}} + \usebibmacro{cite:extradate}} {\setunit{\compcitedelim}% - \usebibmacro{cite:labelyear+extrayear}% + \usebibmacro{cite:labeldate+extradate}% \savefield{labelyear}{\cbx@lastyear}}} - {\usebibmacro{cite:labelyear+extrayear}% + {\usebibmacro{cite:labeldate+extradate}% \savefield{namehash}{\cbx@lasthash}% \savefield{labelyear}{\cbx@lastyear}}}} {\usebibmacro{cite:shorthand}% @@ -73,9 +73,9 @@ {\ifthenelse{\iffieldequals{labelyear}{\cbx@lastyear}\AND \(\value{multicitecount}=0\OR\iffieldundef{postnote}\)} {\setunit{\addcomma}% - \usebibmacro{cite:extrayear}} + \usebibmacro{cite:extradate}} {\setunit{\compcitedelim}% - \usebibmacro{cite:labelyear+extrayear}% + \usebibmacro{cite:labeldate+extradate}% \savefield{labelyear}{\cbx@lastyear}}} {\setunit{\compcitedelim}% \usebibmacro{cite:shorthand}% @@ -89,7 +89,7 @@ \ifnumequal{\value{citecount}}{1} {\usebibmacro{prenote}} {}% - \usebibmacro{cite:labelyear+extrayear}} + \usebibmacro{cite:labeldate+extradate}} {\usebibmacro{cite:shorthand}}} {\printnames{labelname}% \setunit{% @@ -101,7 +101,7 @@ \iffieldundef{shorthand} {\iffieldundef{labelyear} {\usebibmacro{cite:label}} - {\usebibmacro{cite:labelyear+extrayear}}% + {\usebibmacro{cite:labeldate+extradate}}% \savefield{labelyear}{\cbx@lastyear}} {\usebibmacro{cite:shorthand}% \global\undef\cbx@lastyear}}% @@ -121,43 +121,25 @@ {\printtext[bibhyperref]{\printfield[citetitle]{labeltitle}}} {\printtext[bibhyperref]{\printfield{label}}}} -% Inside \printtext, argumentless macros also need '%' afterwards -% otherwise the newlines are spaces -\newbibmacro*{cite:labelyear+extrayear}{% +\newbibmacro*{cite:labeldate+extradate}{% \iffieldundef{labelyear} {} - {\printtext[bibhyperref]{% - \ifdefstring\blx@dateformat@labeldate{edtf} - {} - {\datecircaprint}% - \dateeraprintpre{labelyear}% - \printfield{labelyear}% - \printfield{extrayear}% - \iffieldsequal{labeldateera}{labelenddateera}{} - {\dateeraprint{labelyear}}% - \dateuncertainprint% - \ifdefstring\blx@dateformat@labeldate{edtf} - {\datecircaprintedtf} - {}% - \iffieldundef{labelendyear} - {} - {\iffieldsequal{labelyear}{labelendyear}{} - {\ifdefstring\blx@dateformat@labeldate{edtf} - {\slash}% strict EDTF - {\bibdaterangesep - \enddatecircaprint}% - \dateeraprintpre{labelendyear}% - \printfield{labelendyear}% - \enddateuncertainprint - \ifdefstring\blx@dateformat@labeldate{edtf} - {\enddatecircaprintedtf} - {}% - \dateeraprint{labelendyear}}}}}} + {\printtext[bibhyperref]{\printlabeldateextra}}} -\newbibmacro*{cite:extrayear}{% - \iffieldundef{extrayear} +\newbibmacro{cite:labelyear+extrayear}{% + \def\blx@warning{bibmacro 'cite:labelyear+extrayear' is deprecated.\MessageBreak + Using 'cite:labeldate+extradate' instead.}% + \usebibmacro{cite:labeldate+extradate}} + +\newbibmacro*{cite:extradate}{% + \iffieldundef{extradate} {} - {\printtext[bibhyperref]{\printfield{extrayear}}}} + {\printtext[bibhyperref]{\printfield{extradate}}}} + +\newbibmacro{cite:extrayear}{% + \def\blx@warning{bibmacro 'cite:extrayear' is deprecated.\MessageBreak + Using 'cite:extrayear' instead.}% + \usebibmacro{cite:extrayear}} \newbibmacro*{textcite:postnote}{% \usebibmacro{postnote}% |