diff options
Diffstat (limited to 'Master/texmf-dist/tex/latex/biblatex-abnt/abnt-numeric.cbx')
-rw-r--r-- | Master/texmf-dist/tex/latex/biblatex-abnt/abnt-numeric.cbx | 60 |
1 files changed, 59 insertions, 1 deletions
diff --git a/Master/texmf-dist/tex/latex/biblatex-abnt/abnt-numeric.cbx b/Master/texmf-dist/tex/latex/biblatex-abnt/abnt-numeric.cbx index f2e2777143e..6667fc69ac5 100644 --- a/Master/texmf-dist/tex/latex/biblatex-abnt/abnt-numeric.cbx +++ b/Master/texmf-dist/tex/latex/biblatex-abnt/abnt-numeric.cbx @@ -13,7 +13,7 @@ %% The Current Maintainer of this work is Daniel B. Marques. \ProvidesFile{abnt-numeric.cbx}% -[2016/10/03\space v3.0\space ABNT BibLaTeX citation style]% +[2017/03/15\space v3.0.1\space ABNT BibLaTeX citation style]% \RequireCitationStyle{numeric} @@ -40,6 +40,16 @@ {\multicitedelim} {\usebibmacro{postnote}}% <<<2 +\DeclareCiteCommand{\cbx@textcite}% >>>2 + {\usebibmacro{textcite:init}% Mudar \multinamedelim e \finalnamedelim. + \boolfalse{cbx:parens}% + \renewcommand*{\finalnamedelim}{\addspace\bibstring{and}\addspace}% + \renewcommand*{\multinamedelim}{\addcomma\addspace}}% + {\usebibmacro{citeindex}% + \usebibmacro{textcite}} + {} + {\usebibmacro{textcite:postnote}}% <<<2 + \DeclareMultiCiteCommand{\cites}[\mkbibparens]{\cite}{\multicitedelim} \DeclareMultiCiteCommand{\parencites}% @@ -71,6 +81,54 @@ {}% \textcitedelim}}% <<<1 +% bibhyperref >>>1 + +\DeclareFieldFormat{citehyperref}{%% >>>2 + \DeclareFieldAlias{bibhyperref}{noformat}% Avoid nested links + \bibhyperref{#1}% +}% <<<2 + +\DeclareFieldFormat{textcitehyperref}{%% >>>2 + \DeclareFieldAlias{bibhyperref}{noformat}% Avoid nested links + \bibhyperref{% + #1% + \ifbool{cbx:parens}% + {\bibcloseparen\global\boolfalse{cbx:parens}}% + {}}% +}% <<<2 + +\savebibmacro{cite}% +\savebibmacro{textcite}% + +\renewbibmacro*{cite}{%% >>>2 + \printtext[citehyperref]{% + \restorebibmacro{cite}% + \usebibmacro{cite}}% +}% <<<2 + +\renewbibmacro*{textcite}{%% >>>2 + \ifboolexpr{% + (% + not test {\iffieldundef{prenote}}% + and% + test {\ifnumequal{\value{citecount}}{1}}% + )% + or% + (% + not test {\iffieldundef{postnote}}% + and% + test {\ifnumequal{\value{citecount}}{\value{citetotal}}}% + )% + }% + {\DeclareFieldAlias{textcitehyperref}{noformat}}% + {}% + \printtext[textcitehyperref]{% + \restorebibmacro{textcite}% + \usebibmacro{textcite}}% +}% <<<2 + +% <<<1 + \endinput |