From 24c953dcb93919a65e5830191614a1f7538616c7 Mon Sep 17 00:00:00 2001 From: Karl Berry Date: Mon, 20 Apr 2020 21:05:08 +0000 Subject: biblatex-chicago (20apr20) git-svn-id: svn://tug.org/texlive/trunk@54809 c570f23f-e606-0410-a88d-b1316a301751 --- .../tex/latex/biblatex-chicago/cmsdocs.sty | 76 ++++++++++++---------- 1 file changed, 42 insertions(+), 34 deletions(-) (limited to 'Master/texmf-dist/tex/latex/biblatex-chicago/cmsdocs.sty') diff --git a/Master/texmf-dist/tex/latex/biblatex-chicago/cmsdocs.sty b/Master/texmf-dist/tex/latex/biblatex-chicago/cmsdocs.sty index 5a7df2634a0..08cb5f61db7 100644 --- a/Master/texmf-dist/tex/latex/biblatex-chicago/cmsdocs.sty +++ b/Master/texmf-dist/tex/latex/biblatex-chicago/cmsdocs.sty @@ -51,6 +51,9 @@ \newcounter{Thesis}\setcounter{Thesis}{34} \newcounter{Unpublished}\setcounter{Unpublished}{35} \newcounter{Video}\setcounter{Video}{36} +\newcounter{Performance}\setcounter{Performance}{37} +\newcounter{Standard}\setcounter{Standard}{38} +\newcounter{Dataset}\setcounter{Dataset}{39} %%% Here starts the adaptation of hyperendnotes.sty @@ -223,7 +226,8 @@ MVProceedings\or MVReference\or Online\or Patent\or Periodical\or Proceedings\or Reference\or Report\or Review\or SuppBook\or SuppCollection\or SuppPeriodical\or TechReport\or Thesis\or - Unpublished\or Video\else\@ctrerr\fi} + Unpublished\or Video\or Perfor\-mance\or Standard\or + Dataset\else\@ctrerr\fi} \renewcommand{\theendnote}{\cmssymbol{endnote}} @@ -269,7 +273,7 @@ \usedriver {\DeclareNameAlias{sortname}{default}\frenchspacing} {cite:\thefield{entrytype}}}} - {\iffieldequalstr{entrykey}{loc:leaders}% + {\iffieldequalstr{entrykey}{lac:leaders}% {\printtext{% \usedriver {\DeclareNameAlias{sortname}{default}\frenchspacing} @@ -279,39 +283,39 @@ {\DeclareNameAlias{sortname}{default}\frenchspacing} {cite:\thefield{entrytype}}}}}}% -\renewbibmacro*{cite:short}{% - \ifthenelse{\ifnameundef{labelname}\OR% - \ifentrytype{inreference}\OR% - \ifentrytype{reference}\OR% - \ifentrytype{mvreference}}% - {\iffieldequalstr{entrysubtype}{magazine}% Simplify .bib creation - {\ifuseauthor% - {\printfield[journaltitle]{journaltitle}\isdot\newcunit}% - {}}% - {\ifentrytype{manual}% - {\printlist{organization}\isdot\newcunit}% - {}}}% - {\iffieldequalstr{authortype}{anon}% - {\bibleftbracket\printnames{labelname}% - \bibrightbracket\classicpunct}% - {\iffieldequalstr{authortype}{anon?}% - {\bibleftbracket\printnames{labelname}?% - \bibrightbracket\classicpunct}% - {\printnames{labelname}%\usebibmacro{choose+labelname}% - \isdot\classicpunct}}}% - \ifboolexpr{(% - test {\ifbibliography}% - or - test {\ifnumgreater{\the\value{refsection}}{3}}% - ) - and - not test {\ifnumequal{\the\value{refsection}}{8}}% - }% - {\printtext[bibhyperref]{% - \printfield[citetitle]{labeltitle}}}% - {\printtext[cmsbiblink]{% - \printfield[citetitle]{labeltitle}}}}%:\thefield{entrytype}? +\ifdef{\cmshyper}% +{\renewrobustcmd*{\cmshyper}[1]{% + \ifboolexpr{% + ( + test {\ifbibliography}% + or + test {\ifnumgreater{\the\value{refsection}}{3}}% + ) + and + not test {\ifnumequal{\the\value{refsection}}{8}}% + }% + {\printtext[bibhyperref]{#1}}% + {\printtext[cmsbiblink]{#1}}}}% +{}% +\ifdef{\cmsrelhyper}% +{\renewrobustcmd*{\cmsrelhyper}[1]{% + \ifhyperref% + {\ifbibliography% + {\ifentryinbib{\strfield{clonesourcekey}}% + {\bibhyperref[\strfield{clonesourcekey}]{#1}}% + {#1}}% + {\iftoggle{cms@allshort}% + {\IfSubStr{\thefield{savedoptions}}{skipbib}% + {\bibhyperref[\strfield{clonesourcekey}]{#1}}%% + {\bibhyperref[\thefield{savedentrykey}]{#1}}}% + {\iftoggle{cms@fullnote}% + {\ifentryseen{\thefield{clonesourcekey}}% + {\bibhyperref[\strfield{clonesourcekey}]{#1}}% + {#1}}% + {\bibhyperref[\thefield{savedentrykey}]{#1}}}}}% + {#1}}}% +{}% \renewbibmacro*{cite:journal}{% \ifthenelse{\ifciteibid\AND\NOT\iffirstonpage}% @@ -382,3 +386,7 @@ \ifblank{#1}{}{\scriptsize,\, s.v.\\[1pt]\enquote{#1}}}} \newrobustcmd*{\cmspagref}[1]{\marginpar{\href{\@baseurl% page.\getpagerefnumber{#1}}{p.~\getpagerefnumber{#1}}}} +\newrobustcmd*{\cmstabref}[2][]{\marginpar{\href{\@baseurl% + \getrefbykeydefault{#2}{anchor}{}}% + {\footnotesize Table\,\getrefnumber{#2}}% + \ifblank{#1}{}{\scriptsize,\, s.v.\\[1pt]\enquote{#1}}}} -- cgit v1.2.3