Created
August 18, 2018 20:45
-
-
Save kafran/937547fac5008089e1f6bdc750ac92f0 to your computer and use it in GitHub Desktop.
Modificação no abnt.cbx para desambiguação
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- /home/kafran/Downloads/biblatex-abnt-3.1/latex/cbx/abnt.cbx | |
+++ /home/kafran/Downloads/biblatex-abnt-3.1/latex/cbx/abnt-changed.cbx | |
@@ -70,12 +70,12 @@ | |
{\namepartgiveni}% | |
{\namepartprefix}% | |
{\namepartsuffixi}}% | |
- {\usebibmacro{name:given-family}% | |
+ {\usebibmacro{name:family-given}% | |
{\iftoggle{sccite}% | |
{\textsc{\MakeLowercase{\namepartfamily}}}% | |
{\MakeUppercase{\namepartfamily}}}% | |
{\namepartgiveni}% | |
- {\namepartprefixi}% | |
+ {\namepartprefix}% | |
{\namepartsuffixi}}% | |
\or% | |
\usebibmacro{name:given-family}% | |
@@ -118,6 +118,43 @@ | |
\usebibmacro{name:andothers}% | |
}% <<<3 | |
+\DeclareNameFormat{textcitedesamb}{%% >>>3 | |
+ \ifcase\value{uniquename}% | |
+ \usebibmacro{name:family}% | |
+ {\iftoggle{sccite}% | |
+ {\textsc{\MakeLowercase{\namepartfamily}}}% | |
+ {\MakeCapital{\namepartfamily}}}% | |
+ {\namepartgiven}% | |
+ {\namepartprefix}% | |
+ {\namepartsuffix}% | |
+ \or% | |
+ \ifuseprefix% | |
+ {\usebibmacro{name:given-family}% | |
+ {\iftoggle{sccite}% | |
+ {\textsc{\MakeLowercase{\namepartfamily}}}% | |
+ {\MakeCapital{\namepartfamily}}}% | |
+ {\namepartgiveni}% | |
+ {\namepartprefix}% | |
+ {\namepartsuffixi}}% | |
+ {\usebibmacro{name:family-given}% | |
+ {\iftoggle{sccite}% | |
+ {\textsc{\MakeLowercase{\namepartfamily}}}% | |
+ {\MakeCapital{\namepartfamily}}}% | |
+ {\namepartgiveni}% | |
+ {\namepartprefix}% | |
+ {\namepartsuffixi}}% | |
+ \or% | |
+ \usebibmacro{name:given-family}% | |
+ {\iftoggle{sccite}% | |
+ {\textsc{\MakeLowercase{\namepartfamily}}}% | |
+ {\MakeCapital{\namepartfamily}}}% | |
+ {\namepartgiven}% | |
+ {\namepartprefix}% | |
+ {\namepartsuffix}% | |
+ \fi% | |
+ \usebibmacro{name:andothers}% | |
+}% <<<3 | |
+ | |
% <<<2 | |
% Field format >>>2 | |
@@ -417,7 +454,7 @@ | |
{}% | |
\usebibmacro{cite:labelyear+extrayear}}% | |
{\usebibmacro{cite:shorthand}}}% | |
- {\printtext[bibhyperref]{\printnames{labelname}}% | |
+ {\printtext[bibhyperref]{\printnames[textcitedesamb]{labelname}}% | |
\setunit{% | |
\global\booltrue{cbx:parens}% | |
\addspace\bibopenparen}% |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment