diff options
Diffstat (limited to 'Master/texmf-dist/tex/latex/biblatex-abnt/abnt-ibid.cbx')
-rw-r--r-- | Master/texmf-dist/tex/latex/biblatex-abnt/abnt-ibid.cbx | 113 |
1 files changed, 92 insertions, 21 deletions
diff --git a/Master/texmf-dist/tex/latex/biblatex-abnt/abnt-ibid.cbx b/Master/texmf-dist/tex/latex/biblatex-abnt/abnt-ibid.cbx index 88941c28413..c2355bdccfd 100644 --- a/Master/texmf-dist/tex/latex/biblatex-abnt/abnt-ibid.cbx +++ b/Master/texmf-dist/tex/latex/biblatex-abnt/abnt-ibid.cbx @@ -13,7 +13,7 @@ %% The Current Maintainer of this work is Daniel B. Marques. \ProvidesFile{abnt-ibid.cbx}% -[2016/10/03\space v3.0\space ABNT BibLaTeX citation style]% +[2017/03/15\space v3.0.1\space ABNT BibLaTeX citation style]% \newtoggle{sccite}% @@ -86,6 +86,7 @@ \providecommand*{\mkidem}[1]{#1}% \providecommand*{\mkibid}[1]{#1}% \providecommand*{\mkopcit}[1]{#1}% +\providecommand*{\mkloccit}[1]{#1}% \renewcommand*{\iffinalcitedelim}{% \ifnumequal{\value{textcitecount}}{\value{textcitetotal}-1}}% @@ -100,7 +101,7 @@ {\ExecuteBibliographyOptions{loccittracker=constrict}}% {\ExecuteBibliographyOptions{loccittracker=false}}}% -\DeclareBibliographyOption[string]{footcitepages}[permit]{% +\DeclareBibliographyOption[string]{citepages}[permit]{% \ifcsdef{cbx@opt@citepages@#1}% {\csuse{cbx@opt@citepages@#1}}% {\PackageError{biblatex}% @@ -175,7 +176,7 @@ opcittracker=constrict,% pagetracker,% autocite=footnote,% - footcitepages=permit,% + citepages=permit,% labeldateparts,% labeldate=year,% }% <<<2 @@ -204,13 +205,21 @@ \usebibmacro{footcite:idem}% }{% \ifboolexpr{% - test {\ifopcit}% + test {\ifloccit}% and% not test {\iffirstonpage}% }{% - \usebibmacro{footcite:opcit}% + \usebibmacro{footcite:loccit}% }{% - \usebibmacro{footcite:short}% + \ifboolexpr{% + test {\ifopcit}% + and% + not test {\iffirstonpage}% + }{% + \usebibmacro{footcite:opcit}% + }{% + \usebibmacro{footcite:short}% + }% }% }% }% @@ -222,6 +231,48 @@ }% }% <<<2 +\newbibmacro*{footcitestar}{% >>>2 + \usebibmacro{footcite:citepages}% + \global\togglefalse{cbx:loccit}% + \iffieldundef{shorthand}{% + \ifboolexpr{% + test {\ifciteibid}% + and% + not test {\iffirstonpage}% + }{% + \usebibmacro{footcite:ibid}% + }{% + \ifboolexpr{% + test {\ifciteidem}% + and% + not test {\iffirstonpage}% + }{% + \usebibmacro{footcite:idem}% + }{% + \ifboolexpr{% + test {\ifloccit}% + and% + not test {\iffirstonpage}% + }{% + \usebibmacro{footcite:loccit}% + }{% + \ifboolexpr{% + test {\ifopcit}% + and% + not test {\iffirstonpage}% + }{% + \usebibmacro{footcite:opcit}% + }{% + \usebibmacro{footcite:short}% + }% + }% + }% + }% + }{% + \usebibmacro{footcite:shorthand}% + }% +}% <<<2 + \newbibmacro*{footcite:full}{% >>>2 \usebibmacro{footcite:full:citepages}% \printtext[bibhypertarget]{% @@ -248,6 +299,19 @@ }% }% <<<2 +\newbibmacro*{footcite:loccit}{% >>>2 + \ifnameundef{labelname}{% + \printtext[bibhyperref]{% + \printfield[citetitle]{labeltitle}% + }% + }{% + \printnames[LAST]{labelname}% + }% + \setunit*{\nameyeardelim}% + \printtext[bibhyperlink]{\bibstring[\mkloccit]{loccit}}% + \global\toggletrue{cbx:loccit} +}% <<<2 + \newbibmacro*{footcite:opcit}{% >>>2 \ifnameundef{labelname}{% \printtext[bibhyperref]{% @@ -258,9 +322,9 @@ }% \setunit*{\nameyeardelim}% \printtext[bibhyperlink]{\bibstring[\mkopcit]{opcit}}% -}% +}% <<<2 -\newbibmacro*{footcite:idem}{% +\newbibmacro*{footcite:idem}{% >>>2 \printtext[bibhyperlink]{\bibstring[\mkidem]{idem}}% \setunit*{\nameyeardelim}% \iffieldundef{labelyear}{% @@ -291,13 +355,21 @@ % Commands >>>1 -\DeclareCiteCommand{\cite}% >>>2 +\DeclareCiteCommand{\cite}[\mkbibfootnote]% >>>2 {\usebibmacro{prenote}}% {\usebibmacro{citeindex}% \usebibmacro{footcite}}% {\multicitedelim}% {\usebibmacro{footcite:postnote}}% <<<2 +\DeclareCiteCommand*{\cite}[\mkbibfootnote]% >>>2 + {\usebibmacro{prenote}}% + {\usebibmacro{citeindex}% + \usebibmacro{footcite:citepages}% + \usebibmacro{footcite:short}}% + {\multicitedelim}% + {\usebibmacro{footcite:postnote}}% <<<2 + \DeclareCiteCommand{\parencite}[\mkbibparens]% >>>2 {\usebibmacro{prenote}}% {\usebibmacro{citeindex}% @@ -315,9 +387,7 @@ \DeclareCiteCommand*{\footcite}[\mkbibfootnote]% >>>2 {\usebibmacro{prenote}}% {\usebibmacro{citeindex}% - \usebibmacro{footcite:citepages}% - \global\togglefalse{cbx:loccit}% - \usebibmacro{footcite:short}}% + \usebibmacro{footcitestar}}% {\multicitedelim}% {\usebibmacro{footcite:postnote}}% <<<2 @@ -436,20 +506,21 @@ {}% {\usebibmacro{textcite:count}% \savefield{namehash}{\cbx@lasthash}}% - \ifnumequal{\value{footcitecount}}{\value{footcitetotal}}% - {\protected@xappto\cbx@textcite@args{{\cbx@savedkeys}}% + \ifnumequal{\value{citecount}}{\value{citetotal}}{% + \protected@xappto\cbx@textcite@args{{\cbx@savedkeys}}% \protected@xappto\cbx@footcite@args{% - [\thefield{prenote}][\thefield{postnote}]{\cbx@savedkeys}}% - \iflastcitekey% - {\protected@xappto\cbx@textcite@args{\thefield{postpunct}}% - \protected@xappto\cbx@footcite@args{\nopunct}}% - {}}% - {}}% + [\thefield{prenote}][\thefield{postnote}]{\cbx@savedkeys}% + }% + \iflastcitekey{% + \protected@xappto\cbx@textcite@args{\thefield{postpunct}}% + \protected@xappto\cbx@footcite@args{\nopunct}% + }{}% + }{}}% {}% {}% <<<2 % textcite has nested \DeclareCiteCommand definitions for -% textcite and we want to use % the normal textcite context +% textcite and we want to use the normal textcite context \DeclareDelimcontextAlias{cbx@textcite}{textcite}% \newrobustcmd{\cbx@textcite@init}[3]{% >>>2 |