summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/biblatex-abnt/abnt.cbx
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2018-11-17 22:23:15 +0000
committerKarl Berry <karl@freefriends.org>2018-11-17 22:23:15 +0000
commit9189ec48fe9d56f12e7e17b0309331801125770c (patch)
treee7f015893eca4a85859fbc0171b67fe52ab28792 /Master/texmf-dist/tex/latex/biblatex-abnt/abnt.cbx
parent99859351234219667e5b7d226c6793392f7580d9 (diff)
biblatex-abnt (17nov18)
git-svn-id: svn://tug.org/texlive/trunk@49179 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/biblatex-abnt/abnt.cbx')
-rw-r--r--Master/texmf-dist/tex/latex/biblatex-abnt/abnt.cbx93
1 files changed, 90 insertions, 3 deletions
diff --git a/Master/texmf-dist/tex/latex/biblatex-abnt/abnt.cbx b/Master/texmf-dist/tex/latex/biblatex-abnt/abnt.cbx
index a7fd5e2bd3a..7deb3e81993 100644
--- a/Master/texmf-dist/tex/latex/biblatex-abnt/abnt.cbx
+++ b/Master/texmf-dist/tex/latex/biblatex-abnt/abnt.cbx
@@ -13,7 +13,7 @@
%% The Current Maintainer of this work is Daniel Ballester Marques.
\ProvidesFile{abnt.cbx}%
-[2018/04/04\space v3.3\space ABNT BibLaTeX citation style]%
+[2018-11-17\space v3.4\space ABNT BibLaTeX citation style]%
% Init >>>1
@@ -28,7 +28,7 @@
pagetracker,%
block=none,%
urldate=long,%
- uniquename=full,%
+ uniquename=minfull,%
sortcites=false,%
}% <<<2
@@ -137,7 +137,7 @@
{\usebibmacro{name:family-given}%
{\namepartfamily}%
{\namepartgiveni}%
- {\namepartprefixi}%
+ {\namepartprefix}%
{\namepartsuffixi}}%
\or%
\usebibmacro{name:family-given}%
@@ -349,6 +349,93 @@
\let\mkbibnamesuffix\origmkbibnamesuffix%
}{}{}% <<<3
+\newbibmacro*{textcitestar}{% >>>3
+ \iffieldequals{namehash}{\cbx@lasthash}%
+ {\iffieldundef{shorthand}%
+ {\ifthenelse{\iffieldequals{labelyear}{\cbx@lastyear}\AND%
+ \(\value{multicitecount}=0\OR\iffieldundef{postnote}\)}%
+ {\setunit{\addcomma}%
+ \usebibmacro{cite:extradate}}%
+ {\setunit{\compcitedelim}%
+ \usebibmacro{cite:labeldate+extradate}%
+ \savefield{labelyear}{\cbx@lastyear}}}%
+ {\setunit{\compcitedelim}%
+ \usebibmacro{cite:shorthand}%
+ \global\undef\cbx@lastyear}}%
+ {\ifnameundef{labelname}%
+ {\iffieldundef{shorthand}%
+ {\usebibmacro{cite:label}%
+ \setunit{%
+ % \global\booltrue{cbx:parens}%
+ \printdelim{nonameyeardelim}}%
+ \ifnumequal{\value{citecount}}{1}%
+ {\usebibmacro{prenote}}%
+ {}%
+ \usebibmacro{cite:labeldate+extradate}}%
+ {\usebibmacro{cite:shorthand}}}%
+ {% Use `bibhyperref` so that the names are also hyperlinked
+ \printtext[bibhyperref]{\printnames[textlabelname]{labelname}}%
+ \setunit{%
+ % \global\booltrue{cbx:parens}%
+ \printdelim{nameyeardelim}}%
+ \ifnumequal{\value{citecount}}{1}%
+ {\usebibmacro{prenote}}%
+ {}%
+ \iffieldundef{shorthand}%
+ {\iffieldundef{labelyear}%
+ {\usebibmacro{cite:label}}%
+ {\usebibmacro{cite:labeldate+extradate}}%
+ \savefield{labelyear}{\cbx@lastyear}}%
+ {\usebibmacro{cite:shorthand}%
+ \global\undef\cbx@lastyear}}%
+ \stepcounter{textcitecount}%
+ \savefield{namehash}{\cbx@lasthash}}%
+ \setunit{%
+ \ifbool{cbx:parens}%
+ {\bibcloseparen\global\boolfalse{cbx:parens}}%
+ {}%
+ % Use `\bibstring{and}` before the last name and commas before the rest
+ \ifnumequal{\value{textcitecount}}{\value{textcitetotal}-1}{%
+ \finalnamedelim%
+ }{%
+ \multinamedelim%
+ }}}% <<<3
+
+\xpretobibmacro{textcitestar}{% >>>3
+ \let\multinamedelim\multinamedelimorig%
+ \let\finalnamedelim\finalnamedelimorig%
+ \let\mkbibnamefamily\origmkbibnamefamily%
+ \let\mkbibnamegiven\origmkbibnamegiven%
+ \let\mkbibnameprefix\origmkbibnameprefix%
+ \let\mkbibnamesuffix\origmkbibnamesuffix%
+}{}{}% <<<3
+
+\DeclareCiteCommand{\cbx@textcitestar}% >>>3
+ {\usebibmacro{cite:init}}
+ {\usebibmacro{citeindex}%
+ \usebibmacro{textcitestar}}
+ {}
+{\usebibmacro{textcite:postnote}}% <<<3
+
+\DeclareCiteCommand*{\textcite}[\cbx@textcite@init\cbx@textcitestar]% >>>3
+ {\gdef\cbx@savedkeys{}%
+ \citetrackerfalse%
+ \pagetrackerfalse%
+ \DeferNextCitekeyHook%
+ \usebibmacro{cite:init}}
+ {\ifthenelse{\iffirstcitekey\AND\value{multicitetotal}>0}
+ {\protected@xappto\cbx@savedcites{()(\thefield{multipostnote})}%
+ \global\clearfield{multipostnote}}
+ {}%
+ \xappto\cbx@savedkeys{\thefield{entrykey},}%
+ \iffieldequals{namehash}{\cbx@lasthash}
+ {}
+ {\stepcounter{textcitetotal}%
+ \savefield{namehash}{\cbx@lasthash}}}
+ {}
+ {\protected@xappto\cbx@savedcites{%
+[\thefield{prenote}][\thefield{postnote}]{\cbx@savedkeys}}}% <<<3
+
% <<<2
% \footcite >>>2