diff options
Diffstat (limited to 'Master/texmf-dist/tex/latex/windycity/windycity.cbx')
-rw-r--r-- | Master/texmf-dist/tex/latex/windycity/windycity.cbx | 81 |
1 files changed, 46 insertions, 35 deletions
diff --git a/Master/texmf-dist/tex/latex/windycity/windycity.cbx b/Master/texmf-dist/tex/latex/windycity/windycity.cbx index 3246927365a..b98193313aa 100644 --- a/Master/texmf-dist/tex/latex/windycity/windycity.cbx +++ b/Master/texmf-dist/tex/latex/windycity/windycity.cbx @@ -1,4 +1,4 @@ -% Last modified: Tue 29 Sep 2020 06:29:14 PM CDT +% Last modified: Tue 10 Nov 2020 05:24:14 PM CST % Permission is granted to copy, distribute and/or modify this % software under the terms of the LaTeX Project Public License (LPPL), @@ -11,7 +11,7 @@ % implied warranties of merchantability and fitness for a particular % purpose. -\ProvidesFile{windycity.cbx}[2020/09/29 Windy City citation style for +\ProvidesFile{windycity.cbx}[2020/11/10 Windy City citation style for biblatex] \@ifpackagelater{biblatex}{2019/08/17} {} @@ -29,6 +29,7 @@ \AtEveryCite{% \global\togglefalse{bibliography}% \global\togglefalse{cbx:first}% + \global\togglefalse{cbx:idem}% \global\togglefalse{ibid:loccit}% \global\togglefalse{multicite}% \AtEveryItem}% @@ -38,8 +39,10 @@ \InitializeCitationStyle{\let\crossreflist\empty}% \renewcommand{\bibfootnotewrapper}[1]{% +% \clearfield{postpunct}% \bibsentence#1}% \renewcommand{\bibendnotewrapper}[1]{% +% \clearfield{postpunct}% \bibsentence#1}% % Protect commas against abbreviation dots and terminal punctuation. @@ -85,6 +88,22 @@ {\multicitedelim}% {\usebibmacro{cite:postnote}}% +\DeclareCiteCommand{\footfullcite}[\mkbibfootnote] + {\usebibmacro{prenote}}% + {\citereset + \usebibmacro{citeindex}% + \usebibmacro{cite:new}}% + {\multicitedelim}% + {\usebibmacro{cite:postnote}}% + +\DeclareCiteCommand{\fullcite} + {\usebibmacro{prenote}}% + {\citereset + \usebibmacro{citeindex}% + \usebibmacro{cite:new}}% + {\multicitedelim}% + {\usebibmacro{cite:postnote}}% + \DeclareCiteCommand{\parencite}[\mkbibparens] {\usebibmacro{prenote}}% {\usebibmacro{citeindex}% @@ -133,6 +152,25 @@ {\multicitedelim}% {\usebibmacro{postnote}}% +\DeclareCiteCommand{\idemcite} + {\usebibmacro{prenote}}% + {\usebibmacro{citeindex}% + \toggletrue{cbx:idem}% + \usebibmacro{cite}}% + {\multicitedelim}% + {\usebibmacro{cite:postnote}}% + +\DeclareCiteCommand{\footidemcite}[\mkbibfootnote] + {\usebibmacro{prenote}}% + {\usebibmacro{citeindex}% + \toggletrue{cbx:idem}% + \usebibmacro{cite}}% + {\multicitedelim}% + {\usebibmacro{cite:postnote}}% + +\DeclareMultiCiteCommand{\idemcites}{\idemcite}{\multicitedelim}% +\DeclareMultiCiteCommand{\footidemcites}[\mkbibfootnote]{\footidemcite}{\multicitedelim} + %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %% Parenthetical Citations %% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% @@ -160,18 +198,6 @@ \usebibmacro{labeldate+endyear}% \printfield{extradate}}} -\newbibmacro*{parencite:date+old}{% - \iffieldundef{labelyear} - {} - {\usebibmacro{parencite:origyear}% - \ifboolexpr{ ( test {\iffieldundef{year}} - and test {\iffieldundef{urlyear}} ) - or test {\iffieldequalstr{year}{forthcoming}}} - {\addcomma}% - {}% needs '%' - \usebibmacro{labeldate+endyear}% - \printfield{extradate}}} - \newbibmacro*{parencite:origyear}{% \iffieldundef{origyear} {} @@ -322,22 +348,6 @@ {} {\newunit}}% -% Thanks to David Fussner's biblatex-chicago for pointing me to this -% command by Philipp Lehman. Source: -% https://groups.google.com/forum/#!topic/comp.text.tex/kG003fkZK1I - -\newrobustcmd*{\iffieldstart}[2]{% - \iffieldundef{#1} - {\@gobbletwo}% - {\begingroup - \edef\@tempa{% - \long\def\noexpand\iffieldstart@i####1\detokenize{#2}####2}% - \@tempa\@nil{\endgroup\ifblank{##1}}% - \savefield*{#1}{\@tempa}% - \expandafter\iffieldstart@i\detokenize - \expandafter\expandafter\expandafter{% - \expandafter\@tempa\detokenize{#2}}\@nil}}% - \newbibmacro*{volume+page}{% \iffieldundef{volume} {} @@ -356,13 +366,13 @@ {\DeclareNameAlias{sortname}{default}}% {cite:\thefield{entrytype}}}}} -% By default, idemtracker is 'false'. As such, '\ifciteidem' returns -% false. With idemtracker set to 'true' (or to some value that implies -% 'true') the test below will print 'labelname' if it matches that of -% the previous citation. +% By default, idemtracker is 'false'. With idemtracker set to 'true' +% (or to some value that implies 'true') the test below will print +% 'labelname' if it matches that of the previous citation. \newbibmacro*{idem+short+multicite}{% \ifboolexpr{ test {\ifciteidem} + or togl {cbx:idem} or togl {firstshort}} {\renewcommand*{\cbx@deflabel}{labelname}}% {\ifboolexpr{ test {\iffieldequals{namehash}{\bbx@lasthash}} @@ -467,7 +477,8 @@ % bibliography database. \newbibmacro*{cite:pages}{% - \iffieldundef{pages} + \ifboolexpr{ test {\iffieldundef{pages}} + or togl {nopages}} {} {\ifboolexpr{ test {\ifentrytype{article}} or test {\ifentrytype{review}}} |