From e0c6872cf40896c7be36b11dcc744620f10adf1d Mon Sep 17 00:00:00 2001 From: Norbert Preining Date: Mon, 2 Sep 2019 13:46:59 +0900 Subject: Initial commit --- .../biblatex-abnt/latex/bbx/abnt-ibid.bbx | 21 + .../biblatex-abnt/latex/bbx/abnt-numeric.bbx | 72 + .../biblatex-abnt/latex/bbx/abnt.bbx | 2712 ++++++++++++++++++++ .../biblatex-abnt/latex/cbx/abnt-ibid.cbx | 629 +++++ .../biblatex-abnt/latex/cbx/abnt-numeric.cbx | 368 +++ .../biblatex-abnt/latex/cbx/abnt.cbx | 733 ++++++ .../biblatex-abnt/latex/lbx/american-abnt.lbx | 21 + .../biblatex-abnt/latex/lbx/australian-abnt.lbx | 21 + .../biblatex-abnt/latex/lbx/brazil-abnt.lbx | 21 + .../biblatex-abnt/latex/lbx/brazilian-abnt.lbx | 387 +++ .../biblatex-abnt/latex/lbx/british-abnt.lbx | 21 + .../biblatex-abnt/latex/lbx/canadian-abnt.lbx | 21 + .../biblatex-abnt/latex/lbx/english-abnt.lbx | 184 ++ .../biblatex-abnt/latex/lbx/portuges-abnt.lbx | 21 + .../biblatex-abnt/latex/lbx/portuguese-abnt.lbx | 21 + .../biblatex-abnt/latex/lbx/spanish-abnt.lbx | 339 +++ 16 files changed, 5592 insertions(+) create mode 100644 macros/latex/contrib/biblatex-contrib/biblatex-abnt/latex/bbx/abnt-ibid.bbx create mode 100644 macros/latex/contrib/biblatex-contrib/biblatex-abnt/latex/bbx/abnt-numeric.bbx create mode 100644 macros/latex/contrib/biblatex-contrib/biblatex-abnt/latex/bbx/abnt.bbx create mode 100644 macros/latex/contrib/biblatex-contrib/biblatex-abnt/latex/cbx/abnt-ibid.cbx create mode 100644 macros/latex/contrib/biblatex-contrib/biblatex-abnt/latex/cbx/abnt-numeric.cbx create mode 100644 macros/latex/contrib/biblatex-contrib/biblatex-abnt/latex/cbx/abnt.cbx create mode 100644 macros/latex/contrib/biblatex-contrib/biblatex-abnt/latex/lbx/american-abnt.lbx create mode 100644 macros/latex/contrib/biblatex-contrib/biblatex-abnt/latex/lbx/australian-abnt.lbx create mode 100644 macros/latex/contrib/biblatex-contrib/biblatex-abnt/latex/lbx/brazil-abnt.lbx create mode 100644 macros/latex/contrib/biblatex-contrib/biblatex-abnt/latex/lbx/brazilian-abnt.lbx create mode 100644 macros/latex/contrib/biblatex-contrib/biblatex-abnt/latex/lbx/british-abnt.lbx create mode 100644 macros/latex/contrib/biblatex-contrib/biblatex-abnt/latex/lbx/canadian-abnt.lbx create mode 100644 macros/latex/contrib/biblatex-contrib/biblatex-abnt/latex/lbx/english-abnt.lbx create mode 100644 macros/latex/contrib/biblatex-contrib/biblatex-abnt/latex/lbx/portuges-abnt.lbx create mode 100644 macros/latex/contrib/biblatex-contrib/biblatex-abnt/latex/lbx/portuguese-abnt.lbx create mode 100644 macros/latex/contrib/biblatex-contrib/biblatex-abnt/latex/lbx/spanish-abnt.lbx (limited to 'macros/latex/contrib/biblatex-contrib/biblatex-abnt/latex') diff --git a/macros/latex/contrib/biblatex-contrib/biblatex-abnt/latex/bbx/abnt-ibid.bbx b/macros/latex/contrib/biblatex-contrib/biblatex-abnt/latex/bbx/abnt-ibid.bbx new file mode 100644 index 0000000000..0fbf7ebfb5 --- /dev/null +++ b/macros/latex/contrib/biblatex-contrib/biblatex-abnt/latex/bbx/abnt-ibid.bbx @@ -0,0 +1,21 @@ +%% Copyright 2016 Daniel Ballester Marques +%% +%% This work may be distributed and/or modified under the +%% conditions of the LaTeX Project Public License, either version 1.3 +%% of this license or (at your option) any later version. +%% The latest version of this license is in +%% http://www.latex-project.org/lppl.txt +%% and version 1.3 or later is part of all distributions of LaTeX +%% version 2005/12/01 or later. +%% +%% This work has the LPPL maintenance status `maintained'. +%% +%% The Current Maintainer of this work is Daniel Ballester Marques. + +\ProvidesFile{abnt-ibid.bbx} +[2018-11-17\space v3.4\space ABNT BibLaTeX citation style]% + +\RequireBibliographyStyle{abnt} + +\endinput + diff --git a/macros/latex/contrib/biblatex-contrib/biblatex-abnt/latex/bbx/abnt-numeric.bbx b/macros/latex/contrib/biblatex-contrib/biblatex-abnt/latex/bbx/abnt-numeric.bbx new file mode 100644 index 0000000000..9e9aba2015 --- /dev/null +++ b/macros/latex/contrib/biblatex-contrib/biblatex-abnt/latex/bbx/abnt-numeric.bbx @@ -0,0 +1,72 @@ +%% Copyright 2016 Daniel Ballester Marques +%% +%% This work may be distributed and/or modified under the +%% conditions of the LaTeX Project Public License, either version 1.3 +%% of this license or (at your option) any later version. +%% The latest version of this license is in +%% http://www.latex-project.org/lppl.txt +%% and version 1.3 or later is part of all distributions of LaTeX +%% version 2005/12/01 or later. +%% +%% This work has the LPPL maintenance status `maintained'. +%% +%% The Current Maintainer of this work is Daniel Ballester Marques. + +\ProvidesFile{abnt-numeric.bbx}% +[2018-11-17\space v3.4\space ABNT BibLaTeX citation style]% + +\RequireBibliographyStyle{abnt} +\ExecuteBibliographyOptions{labelnumber} + + +\providebool{bbx:subentry} +\DeclareBibliographyOption[boolean]{subentry}[true]{% + \setbool{bbx:subentry}{#1}} + +\DeclareFieldFormat{bibentrysetcount}{\mkbibparens{\mknumalph{#1}}} + + +\defbibenvironment{bibliography}% >>> + {\list + {\printtext[labelnumberwidth]{% + \printfield{labelprefix}% + \printfield{labelnumber}}} + {\setlength{\labelwidth}{\labelnumberwidth}% + \setlength{\leftmargin}{\labelwidth}% + \setlength{\labelsep}{\biblabelsep}% + \addtolength{\leftmargin}{\labelsep}% + \setlength{\itemsep}{\bibitemsep}% + \setlength{\parsep}{\bibparsep}}% + \renewcommand*{\makelabel}[1]{\hss##1}} + {\endlist} + {\item}% <<< + +\defbibenvironment{shorthand}% >>> + {\list + {\printfield[shorthandwidth]{shorthand}} + {\setlength{\labelwidth}{\shorthandwidth}% + \setlength{\leftmargin}{\labelwidth}% + \setlength{\labelsep}{\biblabelsep}% + \addtolength{\leftmargin}{\labelsep}% + \setlength{\itemsep}{\bibitemsep}% + \setlength{\parsep}{\bibparsep}% + \renewcommand*{\makelabel}[1]{\hss##1}}} + {\endlist} + {\item}% <<< + +\DeclareBibliographyDriver{set}{%% >>> + \entryset + {\ifbool{bbx:subentry} + {\printfield[bibentrysetcount]{entrysetcount}% + \printunit*{\addnbspace}} + {}} + {}% + \newunit\newblock + \usebibmacro{setpageref}% + \finentry}% <<< + +\endinput + + +% vim: set foldmarker=\ >>>,\ <<< : + diff --git a/macros/latex/contrib/biblatex-contrib/biblatex-abnt/latex/bbx/abnt.bbx b/macros/latex/contrib/biblatex-contrib/biblatex-abnt/latex/bbx/abnt.bbx new file mode 100644 index 0000000000..ec95c836c8 --- /dev/null +++ b/macros/latex/contrib/biblatex-contrib/biblatex-abnt/latex/bbx/abnt.bbx @@ -0,0 +1,2712 @@ +%% Copyright 2016 Daniel Ballester Marques +%% +%% This work may be distributed and/or modified under the +%% conditions of the LaTeX Project Public License, either version 1.3 +%% of this license or (at your option) any later version. +%% The latest version of this license is in +%% http://www.latex-project.org/lppl.txt +%% and version 1.3 or later is part of all distributions of LaTeX +%% version 2005/12/01 or later. +%% +%% This work has the LPPL maintenance status `maintained'. +%% +%% The Current Maintainer of this work is Daniel Ballester Marques. + +\ProvidesFile{abnt.bbx}% +[2018-11-17\space v3.4\space ABNT BibLaTeX citation style]% + + +% Init >>>1 + +\RequireBiber[3]% + +\RequirePackage{xparse}% +\RequirePackage{xpatch}% +\RequirePackage{expl3}% + +\DeclareLanguageMappingSuffix{-abnt} + +\RequireBibliographyStyle{standard}% + +\ExecuteBibliographyOptions{% + language=brazil,% + block=none,% + urldate=long,% + pagetracker,% + uniquename=false,% + sorting=nty,% +}% + +\InitializeBibliographyStyle{\global\undef\bbx@lasthash}% + +\let\origbibsetup\bibsetup% +\appto{\bibsetup}{\raggedright}% + +\setcounter{biburlnumpenalty}{3000}% +\setcounter{biburllcpenalty}{6000}% +\setcounter{biburlucpenalty}{9000}% + +% <<<1 + + +% Options >>>1 + +% Print titles in italics >>>2 +\newtoggle{ittitles}% +\DeclareBibliographyOption{ittitles}[true]{% + \settoggle{ittitles}{#1}}% +% <<<2 + +% Use small caps in the bibliography >>>2 +\newtoggle{scbib}% +\DeclareBibliographyOption{scbib}[true]{% + \settoggle{scbib}{#1}}% +% <<<2 + +% Hide "[s.l.]" >>>2 +\newtoggle{nosl}% +\DeclareBibliographyOption{nosl}[true]{% + \settoggle{nosl}{#1}}% +\DeclareEntryOption[boolean]{nosl}[true]{% + \settoggle{nosl}{#1}}% +% <<<2 + +% Hide "[s.n.]" >>>2 +\newtoggle{nosn}% +\DeclareBibliographyOption{nosn}[true]{% + \settoggle{nosn}{#1}}% +\DeclareEntryOption[boolean]{nosn}[true]{% + \settoggle{nosn}{#1}}% +% <<<2 + +% Hide "[S.l.: sn]" >>>2 +\newtoggle{noslsn}% +\DeclareBibliographyOption{noslsn}[true]{% + \settoggle{noslsn}{#1}% + \settoggle{nosl}{#1}% + \settoggle{nosn}{#1}}% +\DeclareEntryOption[boolean]{noslsn}[true]{% + \settoggle{noslsn}{#1}% + \settoggle{nosl}{#1}% + \settoggle{nosn}{#1}}% +% <<<2 + +% Repeat titles >>>2 +\newtoggle{repeattitle}% +\DeclareBibliographyOption[boolean]{repeattitles}[true]{% + \settoggle{repeattitle}{#1}% + \ifstrequal{#1}{true}{% + \renewbibmacro*{bbx:savetitle}{}% + \renewbibmacro*{bbx:savesubtitle}{}% + }{% + \ExecuteBibliographyOptions{pagetracker}% + \renewbibmacro*{bbx:savetitle}{\savefield{title}{\bbx@lasttitle}}% + \renewbibmacro*{bbx:savesubtitle}{\savefield{subtitle}{\bbx@lastsubtitle}}% + }% +}% +\DeclareEntryOption[boolean]{repeattitle}[true]{% + \settoggle{repeattitle}{#1}% +}% +\DeclareEntryOption[boolean]{repeattitles}[true]{% + \settoggle{repeattitle}{#1}% +}% +% <<<2 + +% Repeat first fields >>>2 +\newtoggle{repeatfirstfields}% +\DeclareBibliographyOption[boolean]{repeatfirstfields}[true]{% + \settoggle{repeatfirstfields}{#1}% +}% +\DeclareEntryOption[boolean]{repeatfirstfields}[true]{% + \settoggle{repeatfirstfields}{#1}% +}% +% <<<2 + +% Repeat fields >>>2 +\newtoggle{repeatfields}% +\DeclareBibliographyOption[boolean]{repeatfields}[true]{% + \settoggle{repeatfields}{#1}% + \ifstrequal{#1}{true}{% + \renewbibmacro*{bbx:savehash}{}% + \renewbibmacro*{bbx:saveorg}{}% + \renewbibmacro*{bbx:savetitle}{}% + \renewbibmacro*{bbx:savesubtitle}{}% + }{% + \ExecuteBibliographyOptions{pagetracker}% + \renewbibmacro*{bbx:savehash}{\savefield{fullhash}{\bbx@lasthash}}% + \renewbibmacro*{bbx:saveorg}{\savelist{organization}{\bbx@lasthash}}% + \renewbibmacro*{bbx:savetitle}{\savefield{title}{\bbx@lasttitle}}% + \renewbibmacro*{bbx:savesubtitle}{\savefield{subtitle}{\bbx@lastsubtitle}}% + }% +}% +\DeclareEntryOption[boolean]{repeatfields}[true]{% + \settoggle{repeatfields}{#1}% +}% +% <<<2 + +% Use original dashes instead of underscores >>>2 +\newtoggle{usedashes}% +\DeclareBibliographyOption[boolean]{usedashes}[true]{% + \settoggle{usedashes}{#1}% + \ifstrequal{#1}{true}{% + \renewcommand*{\bibnamedash}{% + \ifdimless{\leftmargin}{0.75em}{% + \mbox{\textemdash\addspace}% + }{% else + \makebox[\leftmargin][l]{% + \ifdimless{\leftmargin}{1.25em}{% + \textendash% + }{% + \textemdash% + }% + }% + }% + }% + }{}% +}% +% <<<2 + +% Use hanging indentation >>>2 +\setlength{\bibhang}{0pt}% +\DeclareBibliographyOption{indent}[true]{% + \ifstrequal{#1}{true}{% + \setlength{\bibhang}{% + \ifnumequal{\parindent}{0}{1em}{\parindent}% + }% + }{}}% +% <<<2 + +% Show extradate in bibliography >>>2 +\newtoggle{extradate}% +\DeclareBibliographyOption{extradate}[true]{% + \settoggle{extradate}{#1}}% +\DeclareEntryOption[boolean]{extradate}[true]{% + \settoggle{extradate}{#1}}% +\DeclareBibliographyOption{extrayear}[true]{% + \settoggle{extradate}{#1}}% +\DeclareEntryOption[boolean]{extrayear}[true]{% + \settoggle{extradate}{#1}}% +% <<<2 + +% Justify text >>>2 +\DeclareBibliographyOption{justify}[true]{% + % \ExecuteBibliographyOptions{block=space}% + \renewcommand*{\bibsetup}{\origbibsetup}% +}% +% <<<2 + +% Make it pretty >>>2 +\DeclareBibliographyOption{pretty}[true]{% + \ifstrequal{#1}{true}{% + \ExecuteBibliographyOptions{% + ittitles,% + sccite,% + scbib,% + indent,% + justify,% + }% + }{}% +}% +% <<<2 + +% Show count in backref >>>2 +\newtoggle{citecount}% +\DeclareBibliographyOption{citecount}[true]{% + \settoggle{citecount}{#1}% + \ifstrequal{#1}{true}{% + \ExecuteBibliographyOptions{backref, citecounter}% + }{}% +}% +% <<<2 + +% Toggle backref per entry >>>2 +\newtoggle{backref}% +\settoggle{backref}{true}% +\DeclareEntryOption[boolean]{backref}[true]{% + \settoggle{backref}{#1}% +}% +% <<<2 + +% <<<1 + + +% Data model and sorting >>>1 + +\DeclareSortingTemplate{nty}{%% >>>2 + \sort{% + \field{presort}% + }% + \sort[final]{% + \field{sortkey}% + }% + \sort{% + \field{sortname}% + \field{holder}% + \field{author}% + \field{editor}% + \field{organization}% + \field{sorttitle}% + \field{issuetitle}% + \field{title}% + \field{subtitle}% + }% + \sort{% + \field{nameaddon}% + \field{sorttitle}% + \field{issuetitle}% + \field{title}% + \field{subtitle}% + }% + \sort{% + \field{sorttitle}% + \field{issuetitle}% + \field{title}% + \field{subtitle}% + }% + \sort{% + \field{sortyear}% + \field{year}% + }% + \sort{% + \field[padside=left,padwidth=4,padchar=0]{volume}% + \literal{0000}% + }% +}% <<<2 + +\DeclareSourcemap{%% >>>2 + % This maps some fields used in abntex2cite to biblatex fields. + \maps[datatype=bibtex]{% + \map{% + \step[fieldsource=conference-number,fieldtarget=number]% + \step[fieldsource=conference-year,fieldtarget=eventdate]% + \step[fieldsource=conference-location,fieldtarget=venue]% + \step[fieldsource=conference-number,fieldtarget=number]% + \step[fieldsource=org-short,fieldtarget=shortauthor]% + \step[fieldsource=urlaccessdate,fieldtarget=urldate]% + \step[fieldsource=year-presented,fieldtarget=eventyear]% + \step[fieldsource=furtherresp,fieldtarget=titleaddon]% + \step[typesource=journalpart,typetarget=supperiodical]% + }% + \map[overwrite=false]{% + \step[fieldsource=reprinted-from, final]% + \step[fieldset=related, origfieldval]% + }% + \map[overwrite=false]{% + \step[fieldsource=reprinted-text, final]% + \step[fieldset=relatedtype, fieldvalue={reprintfrom}]% + }% + \map{% + \pertype{patent}% Use the organization as sourcekey for patents + \step[fieldsource=organization, final]% + \step[fieldset=sortkey, origfieldval]% + }% + \map[overwrite=false]{% + \pertype{thesis}% + \pertype{phdthesis}% + \pertype{mastersthesis}% + \pertype{monography}% + \step[fieldset=bookpagination, fieldvalue={sheet}]% + }% + }% +}% <<<2 + +\DeclareDatamodelFields[type=field,datatype=literal]{%% >>>2 + section,% + illustrated,% + dimensions,% + reprinted-text,% +}% <<<2 + +\DeclareDatamodelEntryfields[monography]{%% >>>2 + location,% + author,% + chapter% + pages,% + pagetotal,% + bookpagination,% + institution,% + title,% + type,% + note,% + isbn,% + doi,% + eprint,% + url,% + addendum,% + pubstate,% + pageref,% + date% +}% <<<2 + +% <<<1 + + +% Helper commands >>>1 + +\newcommand\FirstWordUpper[1]{\@firstwordupper#1 \@nil}% >>>2 +\newcommand\@firstwordupper{}% +\def\@firstwordupper#1 #2\@nil{\MakeUppercase{#1} #2\unskip}% <<<2 + +\newcommand\FirstWordSC[1]{\@firstwordsc#1 \@nil}% >>>2 +\newcommand\@firstwordsc{}% +\def\@firstwordsc#1 #2\@nil{\textsc{#1} #2\unskip}% <<<2 + +\newcommand\FirstWordLCSC[1]{\@firstwordlcsc#1 \@nil}% >>>2 +\newcommand\@firstwordlcsc{}% +\def\@firstwordlcsc#1 #2\@nil{\textsc{\MakeLowercase{#1}} #2\unskip}% <<<2 + +% Helper macros >>>2 + +\long\def\addto#1#2{\expandafter\def\expandafter#1\expandafter{#1#2}}% + +\def\traceparam#1{\def\paramL{}\traceparamA #1\end}% +\def\traceparamA{\futurelet\next\traceparamB}% +\def\traceparamB{% + \let\nexts=\undefined% + \expandafter\ifx\space\next \let\nexts=\traceparamS \fi% + \ifx\bgroup\next \let\nexts=\traceparamD \fi% + \ifx\end\next \let\nexts=\traceparamE \fi% + \ifx\nexts\undefined \let\nexts=\traceparamC\fi% + \nexts% +}% +\def\traceparamS{\addto\paramL{ }\afterassignment\traceparamA \let\next= }% +\def\traceparamC#1{\addto\paramL{#1}\traceparamA}% +\def\traceparamD#1{% + \expandafter\addto\expandafter\paramL\expandafter% + {\expandafter\noexpand\csname ll:\detokenize{#1}\endcsname}% + \expandafter\def\csname ll:\detokenize{#1}\endcsname{\normalfont #1}% + \traceparamA% +}% +\def\traceparamE\end{}% + +% <<<2 + +\def\smartuppercase#1{% >>>2 + \bgroup % + \traceparam{#1}% + \MakeUppercase{\paramL}% + \egroup% +}% <<<2 + +\def\smartlowercase#1{% >>>2 + \bgroup % + \traceparam{#1}% + \MakeLowercase{\paramL}% + \egroup% +}% <<<2 + +\def\smartlcsc#1{% >>>2 + \bgroup % + \traceparam{#1}% + \textsc{\MakeLowercase{\paramL}}% + \egroup% +}% <<<2 + +\def\smartsc#1{% >>>2 + \bgroup % + \traceparam{#1}% + \textsc{\paramL}% + \egroup% +}% <<<2 + +\renewcommand*{\mkbibacro}[1]{% >>>2 + \iftoggle{scbib}{% + \textsc{\MakeLowercase{#1}}% + }{\MakeUppercase{#1}}% +}% <<<2 + +\newcommand*{\UpperOrSC}[1]{% >>>2 + \let\MakeCapital\relax% + \iftoggle{scbib}{% + \textsc{\MakeLowercase{#1}}% + }{% + \MakeUppercase{#1}% + }% +}% <<<2 + +\newcommand*{\NormalOrSC}[1]{% >>>2 + \iftoggle{scbib}{% + \textsc{\MakeLowercase{#1}}% + }{% + #1% + }% +}% <<<2 + + +% auxiliary commands +\ExplSyntaxOn +% {}{} +\NewDocumentCommand { \abntblx@regex@match } { mm } { + \regex_match:nnTF { #2 } { #1 } +} +\ExplSyntaxOff + +% define \iffieldregex{}{} +\newcommand*{\blx@imc@iffieldregex}{} +\newcommand*{\iffieldregex}{} + +\protected\def\blx@imc@iffieldregex#1#2{% + \blx@imc@iffieldundef{#1} + {\@secondoftwo} + {\expandafter\expandafter + \expandafter\abntblx@regex@match + \expandafter\expandafter + \expandafter{\csname abx@field@#1\endcsname}{#2}}} + +\blx@regimcs{\iffieldregex} + +\newcommand*{\iffieldendswithpunct}[1]{% + \iffieldregex{#1}{(\.|\!|\?|\-|\:|\/)\Z}% +} + +% <<<1 + + +% Formatting >>>1 + +% Use \refname for headings >>>2 +\ifcase\abx@classtype\relax % article +\or % book/report + \defbibheading{bibliography}[\refname]{% + \chapter*{#1}% + \@mkboth{\abx@MakeMarkcase{#1}}{\abx@MakeMarkcase{#1}}} +\or % scrartcl +\or % scrbook/scrreprt + \defbibheading{bibliography}[\refname]{% + \ifcsundef{bibliography@heading} + {\ifkomabibtotocnumbered + {\chapter{#1}} + {\ifkomabibtotoc + {\addchap{#1}} + {\chapter*{#1} + \ifcsundef{@mkdouble} + {\@mkboth{\abx@MakeMarkcase{#1}}{\abx@MakeMarkcase{#1}}} + {\@mkdouble{\abx@MakeMarkcase{#1}}}}}} + {\bibliography@heading{#1}}} +\or % memoir (article) +\or % memoir (book) + \ifcsundef{memUChead}{}{\def\abx@MakeMarkcase{\memUChead}}% + \defbibheading{bibliography}[\refname]{% + \chapter*{#1}% + \if@twoside + \markboth{\abx@MakeMarkcase{#1}}{\abx@MakeMarkcase{#1}}% + \else + \markright{\abx@MakeMarkcase{#1}}% + \fi + \ifmemoirbibintoc + {\phantomsection + \addcontentsline{toc}{chapter}{#1}} + {}} +\fi +% <<<2 + +% \IfGivenIsInitial >>>2 + +\ExplSyntaxOn% + +\ProvideDocumentCommand{\IfGivenIsInitial}{mm}{% + \regex_match:nVTF {\w\w} \namepartgiven {#2} {#1}% +}% +\cs_generate_variant:Nn \regex_match:nnTF { nV }% + +\ExplSyntaxOff% + +% <<<2 + +% Name format >>>2 + +\DeclareNameFormat{LAST-first}{%% >>>3 + \renewcommand*{\mkbibnamefamily}[1]{\UpperOrSC{##1}}% + \renewcommand*{\mkbibnamegiven}[1]{\ifgiveninits{\NormalOrSC{##1}}{##1}}% + \renewcommand*{\mkbibnamegiven}[1]{% + \ifgiveninits{% + \NormalOrSC{##1}% + }{% + \IfGivenIsInitial{\NormalOrSC{##1}}{##1}% + }% + }% + \renewcommand*{\mkbibnameprefix}[1]{% + \ifuseprefix{% + \UpperOrSC{##1}% + }{% + \ifgiveninits{\NormalOrSC{##1}}{##1}% + }% + }% + \renewcommand*{\mkbibnamesuffix}[1]{\UpperOrSC{##1}}% + \ifgiveninits{% + \usebibmacro{name:family-given}% + {\namepartfamily}% + {\namepartgiveni}% + {\namepartprefix}% + {\namepartsuffix}% + }{% + \usebibmacro{name:family-given}% + {\namepartfamily}% + {\namepartgiven}% + {\namepartprefix}% + {\namepartsuffix}% + }% + \usebibmacro{name:andothers}% +}% <<< + +\DeclareNameAlias{default}{LAST-first}% + +\DeclareNameFormat{full}{%% >>>3 + \usebibmacro{name:given-family}% + {\namepartfamily}% + {\namepartgiven}% + {\namepartprefix}% + {\namepartsuffix}% +}% <<< + +\DeclareNameAlias{byauthor}{full}% +\DeclareNameAlias{bybookauthor}{byauthor}% +\DeclareNameAlias{byeditor}{full}% +\DeclareNameAlias{byeditora}{byeditor}% +\DeclareNameAlias{byeditorb}{byeditor}% +\DeclareNameAlias{byeditorc}{byeditor}% +\DeclareNameAlias{bytranslator}{full}% + +\DeclareNameAlias{withcommentator}{given-family}% +\DeclareNameAlias{withannotator}{given-family}% +\DeclareNameAlias{withintroduction}{given-family}% +\DeclareNameAlias{withforeword}{given-family}% +\DeclareNameAlias{withafterword}{given-family}% + +\DeclareBibliographyAlias{legislation}{article}% +\DeclareBibliographyAlias{jurisdiction}{article}% +\DeclareBibliographyAlias{legal}{article}% + +% Name delimiters >>>3 +\newtoggle{byeditor+others}% + +\let\multinamedelimorig\multinamedelim% +\let\finalnamedelimorig\finalnamedelim% + +\renewcommand*{\multinamedelim}{% + \iftoggle{byeditor+others}{% + \addcomma\addspace% + }{% + \addsemicolon\addspace% + }% +}% + +\renewcommand*{\finalnamedelim}{% + \iftoggle{byeditor+others}{% + \addspace\bibstring{and}\addspace% + }{% + \addsemicolon\addspace% + }% +}% +% <<< + +% <<<2 + +% Field format >>>2 + +% Standard entry fields >>>3 + +\DeclareFieldFormat{authortype}{\printtext[parens]{\bibsentence#1}}% +\DeclareFieldFormat{editortype}{\printtext[parens]{\bibsentence#1}}% + +\DeclareFieldFormat{nameaddon}{\addspace #1}% + +% titles >>>4 + +\renewcommand*{\subtitlepunct}{\addcolon\addspace}% +\renewcommand*{\bibpagerefpunct}{\addcomma\addspace}% + +\DeclareFieldFormat{journaltitle}{%% >>> + \iftoggle{ittitles}{% + \addspace\mkbibemph{#1}\isdot% + }{% + \addspace\mkbibbold{#1}\isdot% + }% +}%% <<< +\DeclareFieldFormat{issuetitle}{%% >>> + \iftoggle{ittitles}{% + \addspace\mkbibemph{#1}\isdot% + }{% + \addspace\mkbibbold{#1}\isdot% + }% +}%% <<< +\DeclareFieldFormat{maintitle}{%% >>> + \iftoggle{ittitles}{% + \addspace\mkbibemph{#1}\isdot% + }{% + \addspace\mkbibbold{#1}\isdot% + }% +}%% <<< +\DeclareFieldFormat{booktitle}{%% >>> + \iftoggle{ittitles}{% + \addspace\mkbibemph{#1}\isdot% + }{% + \addspace\mkbibbold{#1}\isdot% + }% +}%% <<< +\DeclareFieldFormat{citetitle}{%% >>> + \iftoggle{ittitles}{% + \addspace\mkbibemph{#1}\isdot% + }{% + \addspace\mkbibbold{#1}\isdot% + }% +}%% <<< +\DeclareFieldFormat*{title}{%% >>> + \iftoggle{ittitles}{% + \addspace\mkbibemph{#1}\isdot% + }{% + \addspace\mkbibbold{#1}\isdot% + }% +}%% <<< +\DeclareFieldFormat[% title >>> + article,% + legislation,% + jurisdiction,% + legal,% + inbook,% + incollection,% + bookinbook,% + inproceedings,% + unpublished% +]{title}{\addspace #1\isdot}%% <<< + +% <<< + +% number >>>4 +\DeclareNumChars*{,-/}% +\newcommand{\abntnum}[1]{\ifrmnum{#1}{\rmntonum{#1}}{#1}}% +\DeclareFieldFormat*{number}{%% >>> + \ifnumerals{#1}% + {\addspace \MakeLowercase{\bibstring{number}}~\abntnum{#1}}% + {\addspace #1\isdot}% +}%% <<< +\DeclareFieldFormat[% number >>> + book,% + collection,% + proceedings,% + inproceedings,% + misc% +]{number}{\addcomma\addspace #1}%% <<< +% <<< + +\DeclareFieldFormat*{volume}{%% >>>4 + \ifnumerals{#1}% + {\addspace \MakeLowercase{\bibstring{volume}}~#1}% + {\addspace #1\isdot}% +}%% <<< + +\DeclareFieldFormat*{chapter}{%% >>>4 + \ifnumerals{#1}% + {\addspace \MakeLowercase{\bibstring{chapter}~#1}}% + {\addspace #1\isdot}% +}%% <<< + +\DeclareFieldFormat{edition}{%% >>>4 + \ifnumerals{#1}% + {\addspace #1\adddot\addspace\bibstring{edition}}% + {\addspace #1\isdot}% +}%% <<< + +\DeclareFieldFormat*{pages}{%% >>>4 + \MakeLowercase{\mkpageprefix[bookpagination]{#1}}% +}%% <<< + +\DeclareFieldFormat*{pagetotal}{%% >>>4 + \MakeLowercase{\mkpagetotal[bookpagination]{#1}}% +}%% <<< + +\DeclareFieldFormat{illustrated}{\addspace #1\isdot}% + +\DeclareFieldFormat{url}{\bibstring{urlfrom}\addcolon\addspace<\url{#1}>}% +\DeclareFieldFormat{urldate}{\bibstring{urlseen}\addcolon\addspace #1}% + +\DeclareFieldFormat*{note}{\addspace #1}% + +\DeclareFieldFormat{mathesis}{\bibstring{mathesis}}% +\DeclareFieldFormat{phdthesis}{\bibstring{phdthesis}}% + +\DeclareFieldFormat[monography]{type}{%% >>>4 + \bibstring{monography}\addspace\printtext[parens]{#1}% +}%% <<< + +\DeclareListFormat{origlanguage}{%% >>>4 + \ifbibstring{#1}% + {\bibxstring{#1}}% + {\ifbibstring{from#1}% + {\bibxstring{from#1}}% + {#1}}% +}%% <<< + +% is*n >>>4 +\DeclareFieldFormat{isbn}{\mkbibacro{ISBN}\space #1}% +\DeclareFieldFormat{isrn}{\mkbibacro{ISRN}\space #1}% +\DeclareFieldFormat{issn}{\mkbibacro{ISSN}\space #1}% +% <<< + +% relatedstring >>>4 +\DeclareFieldFormat{relatedstring:reprintfrom}{#1\addcolon\addspace}% +\DeclareFieldFormat{relatedstring:reviewof}{#1\addcolon\addspace}% +\DeclareFieldFormat{relatedstring:default}{#1\addcolon\addspace}% +% <<< + +% <<< + +% Capitalization >>>3 + +\DeclareFieldFormat{lowercase}{\smartlowercase{#1}}% + +\DeclareFieldFormat{uppercase}{%% >>> + \iftoggle{scbib}{% + \textsc{\smartlowercase{#1}}% + }{% + \smartuppercase{#1}% + }% +}%% <<< + +\DeclareListFormat{uppercase}{%% >>> + \usebibmacro{list:delim}{#1}% + \iftoggle{scbib}{% + \ifgiveninits{% + \normalfont\smartsc{#1}% + }{% + \normalfont\smartlcsc{#1}% + }% + }{% + \normalfont\smartuppercase{#1}% + }% + \isdot% + \usebibmacro{list:andothers}% +}%% <<< + +\DeclareFieldFormat{upperfirst}{%% >>> + \iftoggle{scbib}{% + \ifgiveninits{% + \normalfont\FirstWordSC{#1}% + }{% + \normalfont\FirstWordLCSC{#1}% + }% + }{% + \normalfont\FirstWordUpper{#1}% + }% +}%% <<< + +\DeclareListFormat{upperfirst}{%% >>> + \usebibmacro{list:delim}{#1}% + \iftoggle{scbib}{% + \ifgiveninits{% + \normalfont\FirstWordSC{#1}% + }{% + \normalfont\FirstWordLCSC{#1}% + }% + }{% + \normalfont\FirstWordUpper{#1}% + }% + \isdot% + \usebibmacro{list:andothers}% +}%% <<< + +% <<< + +\DeclareFieldFormat{normalfont}{\normalfont{#1}}% + +% <<<2 + +% <<<1 + + +% Macros >>>1 + +% Dashed option >>>2 + +\newbool{bbx@inset}% + +\newtoggle{isdashed}% + +\newcommand*{\bibnameunderscore}{\underline{\hspace*{4em}}}% +\newcommand*{\nopunctdash}{\bibnameunderscore\addspace}% +\renewcommand*{\bibnamedash}{\bibnameunderscore\addperiod\addspace}% + +\renewbibmacro*{begrelated}{%% >>>3 + \booltrue{bbx@inset}% +}%% <<<3 + +\newbibmacro*{bbx:savehash}{%% >>>3 + \savefield{fullhash}{\bbx@lasthash}% +}%% <<<3 + +\newbibmacro*{bbx:saveorg}{%% >>>3 + \savelist{organization}{\bbx@lastorg}% +}%% <<<3 + +\newbibmacro*{bbx:savetitle}{%% >>>3 + \savefield{title}{\bbx@lasttitle}% +}%% <<<3 + +\newbibmacro*{bbx:savesubtitle}{%% >>>3 + \savefield{subtitle}{\bbx@lastsubtitle}% +}%% <<<3 + +\newbibmacro*{bbx:dashcheck}[2]{%% >>>3 + \ifboolexpr{% + (% + test {\iffieldequals{fullhash}{\bbx@lasthash}}% + or% + test {\iflistequals{organization}{\bbx@lastorg}}% + )% + and% + not test \iffirstonpage% + and% + not test {\iftoggle{repeatfields}}% + and% + not test {\iftoggle{repeatfirstfields}}% + and% + (% + not bool {bbx@inset}% + or% + test {\iffieldequalstr{entrysetcount}{1}}% + )% + }% + {\settoggle{isdashed}{true}#1}% + {\settoggle{isdashed}{false}#2}% +}%% <<<3 + +\newbibmacro*{bbx:titledashcheck}[2]{%% >>>3 + \iftoggle{isdashed}{% + \ifboolexpr{% + test {\iffieldequals{title}{\bbx@lasttitle}}% + and% + (% + test {\iffieldequals{subtitle}{\bbx@lastsubtitle}}% + or% + test {\iffieldundef{subtitle}}% + )% + and% + not test {\iftoggle{repeattitle}}% + }% + {#1}% + {#2}% + }{% + #2% + }% +}%% <<<3 + +\newbibmacro*{bbx:ineditordashcheck}[2]{%% >>>3 + \ifboolexpr{% + test {\ifnamesequal{editor}{author}}% + and% + not test {\iftoggle{repeatfields}}% + and% + (% + not bool {bbx@inset}% + or% + test {\iffieldequalstr{entrysetcount}{1}}% + )% + }% + {\settoggle{isdashed}{true}#1}% + {\settoggle{isdashed}{false}#2}% +}%% <<<3 + +% <<<2 + +% Titles >>>2 + +\newbibmacro*{titleiskey}[2]{%% >>>3 +\ifboolexpr{% + test {\ifnameundef{author}}% + and% + test {\ifnameundef{editor}}% + and% + test {\ifnameundef{holder}}% + and% + test {\ifcsundef{saveded}}% + and% + test {\ifcsundef{savedorg}}% + and% + test {\iffieldundef{eventtitle}}% +}% + {#1}% + {#2}% +}%% <<<3 + +\renewbibmacro*{title}{%% >>>3 + \ifboolexpr{% + test {\iffieldundef{title}}% + and% + test {\iffieldundef{subtitle}}% + }% + {\global\undef\bbx@lasttitle% + \global\undef\bbx@lastsubtitle}% + {\usebibmacro{bbx:titledashcheck}% + {\unspace\bibnamedash}% + {\usebibmacro{bbx:savetitle}% + \usebibmacro{bbx:savesubtitle}% + \printtext[title]{% + \usebibmacro{titleiskey}% + {\unspace\printfield[upperfirst]{title}}% + {\ifboolexpr{% + test {\iffieldundef{maintitle}}% + and% + test {\iffieldundef{related}}% + }% + {\printfield[titlecase]{title}}% + {\printfield[normalfont]{title}}}% + \normalfont{% + \iffieldendswithpunct{title}{% + \setunit*{\addspace}% + }{% + \setunit*{\subtitlepunct}% + } + \printfield[normalfont]{subtitle}% + \setunit{\addperiod\addspace}% + }}% + \newunit}}% + \printfield{titleaddon}% +}%% <<<3 + +\newbibmacro*{booktitleiskey}[2]{%% >>>3 +\ifboolexpr{% + test {\ifnameundef{bookauthor}}% + and% + test {\ifnameundef{editor}}% + and% + test {\iffieldundef{organization}}% + and% + test {\ifcsundef{saveded}}% + and% + test {\ifcsundef{savedorg}}% + and% + test {\iffieldundef{eventtitle}}% +}% + {#1}% + {#2}% +}%% <<<3 + +\renewbibmacro*{booktitle}{%% >>>3 + \ifboolexpr{% + test {\iffieldundef{booktitle}}% + and% + test {\iffieldundef{booksubtitle}}% + }% + {}% + {\printtext[booktitle]{% + \usebibmacro{booktitleiskey}{% + \printfield[upperfirst]{booktitle}% + }{% + \printfield[titlecase]{booktitle}% + }% + \iffieldendswithpunct{booktitle}{% + \normalfont{\setunit*{\addspace}}% + }{% + \normalfont{\setunit*{\subtitlepunct}}% + } + \printfield[normalfont]{booksubtitle}}% + \newunit}% + \printfield{booktitleaddon}% +}%% <<<3 + +\renewbibmacro*{maintitle}{%% >>>3 + \ifboolexpr{% + test {\iffieldundef{maintitle}}% + and% + test {\iffieldundef{mainsubtitle}}% + }% + {}% + {\printtext[maintitle]{% + \usebibmacro{titleiskey}{% + \printfield[upperfirst]{maintitle}% + }{% + \printfield[titlecase]{maintitle}% + }% + \iffieldendswithpunct{maintitle}{% + \normalfont{\setunit*{\addspace}}% + }{% + \normalfont{\setunit*{\subtitlepunct}}% + } + \printfield[normalfont]{mainsubtitle}}% + \newunit}% + \printfield{maintitleaddon}% +}%% <<<3 + +\newbibmacro*{in:maintitle}{%% >>>3 + \iffieldundef{maintitle}{}{% + \usebibmacro{in:}% + \iftoggle{repeatfields}% + {\addspace\usebibmacro{author/editor+others}}% + {\addspace\bibnamedash}% + \newunit% + \usebibmacro{maintitle}% + }% +}%% <<<3 + +\renewbibmacro*{maintitle+booktitle}{%% >>>3 + \iffieldundef{maintitle}% + {}% + {\usebibmacro{maintitle}% + \newunit\newblock% + \iffieldundef{volume}% + {}% + {\printfield{volume}% + \printfield{part}% + \setunit{\addcolon\addspace}}}% + \usebibmacro{booktitle}% + \newunit% +}%% <<<3 + +\newbibmacro*{maintitle/booktitle}{%% >>>3 + \iffieldundef{maintitle}% + {\usebibmacro{booktitle}}% + {\usebibmacro{maintitle}}% +}%% <<<3 + +\renewbibmacro*{journal}{%% >>>3 + \iffieldundef{journaltitle}% + {}% + {\printtext[journaltitle]{% + \printfield[titlecase]{journaltitle}% + \iffieldendswithpunct{journaltitle}{% + \setunit{\addspace}% + }{% + \setunit{\subtitlepunct}% + } + \printfield[normalfont]{journalsubtitle}}}% +}%% <<<3 + +\newbibmacro{journal+section}{%% >>>3 + \usebibmacro{journal}% + \iffieldundef{section}% + {}% + {\setunit{\addspace\textendash\addspace}% + \printfield{section}}% +}%% <<<3 + +\renewbibmacro*{journal+issuetitle}{%% >>>3 + \usebibmacro{journal}% + \setunit*{\addcomma\addspace}% + \iffieldundef{series}% + {}% + {\newunit% + \printfield{series}% + \setunit{\addspace}}% + \usebibmacro{volume+number+eid}% + \newunit% +}%% <<<3 + +\renewbibmacro*{periodical}{%% >>>3 + \iffieldundef{title}{}{% + \printtext[title]{% + \iffieldundef{issue}{% + \unspace\printfield[upperfirst]{title}% + }{% + \printfield[titlecase]{title}% + } + \normalfont{% + \iffieldendswithpunct{title}{% + \setunit*{\addspace}% + }{% + \setunit*{\subtitlepunct}% + } + \printfield[normalfont]{subtitle}% + }% + }% + }% +}%% <<<3 + +% <<<2 + +% Names >>>2 + +\renewbibmacro*{author}{%% >>>3 + \ifboolexpr{% + test \ifuseauthor% + and% + not test {\ifnameundef{author}}% + }{% + \usebibmacro{bbx:dashcheck}{% + \iffieldundef{authortype}{% + \bibnamedash% + \newunit% + \printfield{nameaddon}% + }{% + \nopunctdash% + \usebibmacro{authorstrg}% + \newunit% + \printfield{nameaddon}% + }% + }{% + \usebibmacro{bbx:savehash}% + \printnames{author}% + \addspace% + \usebibmacro{authorstrg}% + \newunit% + \printfield{nameaddon}% + }% + }{% + \global\undef\bbx@lasthash% + }% +}%% <<<3 + +\renewbibmacro*{editor+others}{%% >>>3 + \ifboolexpr{% + test \ifuseeditor% + and% + not test {\ifnameundef{editor}}% + }{% + \usebibmacro{bbx:dashcheck}{% + \iffieldundef{editortype}{% + \bibnamedash% + }{% + \nopunctdash% + \usebibmacro{editor+othersstrg}% + }% + }{% + \usebibmacro{bbx:savehash}% + \printnames{editor}% + \setunit{\addspace}% + \usebibmacro{editor+othersstrg}% + }% + \savenamecs*{editor}{saveded}% + \clearname{editor}% + }{% + \global\undef\bbx@lasthash% + \usebibmacro{organization}% + }% +}%% <<<3 + +\renewbibmacro*{byeditor+others}{%% >>>3 + \toggletrue{byeditor+others}% + \ifnameundef{editor}{}{% else + \usebibmacro{byeditor+othersstrg}% + \setunit*{\addspace}% + \printnames[byeditor]{editor}% + \clearname{editor}% + \newunit% + }% + \usebibmacro{byeditorx}% + \usebibmacro{bytranslator+others}% + \togglefalse{byeditor+others}% +}%% <<<3 + +\newbibmacro*{organization}{%% >>>3 + \iflistundef{organization}% + {\global\undef\bbx@lastorg}% + {\usebibmacro{bbx:dashcheck}% + {\bibnamedash}% + {\usebibmacro{bbx:saveorg}% + \printlist[uppercase]{organization}}% + \savelistcs*{organization}{savedorg}% + \clearlist{organization}% + \newunit% + \printfield{nameaddon}}% +}%% <<<3 + +\newbibmacro*{author/organization}{%% >>>3 + \ifnameundef{author}% + {\usebibmacro{organization}}% + {\usebibmacro{author}}% +}%% <<<3 + +\newbibmacro*{editor+others/organization}{%% >>>3 + \ifnameundef{editor}% + {\usebibmacro{organization}}% + {\usebibmacro{editor+others}}% +}%% <<<3 + +\newbibmacro*{organization/eventtitle}{%% >>>3 + \iffieldundef{eventtitle}% + {\usebibmacro{organization}}% + {\printfield[uppercase]{eventtitle}}% +}%% <<<3 + +\newbibmacro*{bookauthor/editor+others}{%% >>>3 + \ifnameundef{bookauthor}{% + \usebibmacro{editor+others}}% + {\printnames{bookauthor}}% +}%% <<<3 + +\newbibmacro*{in:bookauthor+others}{%% >>>3 + \usebibmacro{in:}% + \ifnameundef{bookauthor}{% + % do nothing + }{% else + \ifnamesequal{author}{bookauthor}{% + \iftoggle{repeatfields}{% + \usebibmacro{author/editor+others}% + }{% else + \bibnamedash% + }% + }{% else + \printnames{bookauthor}% + }% + }% +}%% <<<3 + +\newbibmacro*{in:editor+others}{%% >>>3 + \usebibmacro{in:}% + \addspace% + \ifnameundef{editor}{% + \printlist[uppercase]{organization}% + }{% + \usebibmacro{bbx:ineditordashcheck}{% + \iffieldundef{editortype}{% + \bibnamedash% + }{% + \nopunctdash% + \usebibmacro{editor+othersstrg}% + \savenamecs*{editor}{saveded}% + \clearname{editor}% + }% + }{% + \printnames{editor}% + \setunit*{\addspace}% + \usebibmacro{editor+othersstrg}% + \savenamecs*{editor}{saveded}% + \clearname{editor}% + }% + }% +}%% <<<3 + +\newbibmacro*{in:eventtitle/organization/editor}{%% >>>3 + \usebibmacro{in:}% + \iffieldundef{eventtitle}{% + \ifnameundef{editor}{% + \printlist[uppercase]{organization}% + \clearlist{organization}% + }{% + \usebibmacro{editor+others}% + }% + }{% + \printfield[uppercase]{eventtitle}% + }% +}%% <<<3 + +% <<<2 + +% Publisher, location, date, issue >>>2 + +\renewbibmacro*{date}{% + \iftoggle{extradate}{% + \printdateextra% + }{% + \printdate% + }% + \printunit{\addperiod\addspace}% +}% + +\newbibmacro*{publisher}{%% >>>3 + \iflistundef{publisher}% + {\iftoggle{nosn}{}{\printtext[brackets]{\bibstring{sinenomine}}}}% + {\printlist{publisher}}% +}%% <<<3 + +\newbibmacro*{location}{%% >>>3 + \iflistundef{location}% + {\iftoggle{nosl}{}{\printtext[brackets]{\bibstring{sineloco}}}}% + {\printlist{location}}% +}%% <<<3 + +\newbibmacro*{venue}{%% >>>3 + \iffieldundef{venue}% + {\iftoggle{nosl}{}{\printtext[brackets]{\bibstring{sineloco}}}}% + {\printfield{venue}}% +}%% <<<3 + +\renewbibmacro*{location+date}{%% >>>3 + \usebibmacro{location}% + \setunit*{\addcomma\addspace}% + \usebibmacro{date}% + \newunit% +}%% <<<3 + +\renewbibmacro*{publisher+location+date}{%% >>>3 + \ifboolexpr{% + test {\iflistundef{publisher}}% + and% + test {\iflistundef{location}}% + and% + not test {\iftoggle{nosl}}% + and% + not test {\iftoggle{nosn}}% + }{% + \printtext[brackets]{\bibstring{sineloco}% + \setunit{\addcolon\addnbspace}% + \bibstring{sinenomine}}% + }{% + \ifboolexpr{% + test {\ifnameundef{author}}% + and% + test {\ifnameundef{editor}}% + and% + test {\iflistundef{publisher}}% + and% + not test {\iflistundef{organization}}% + }{% + \usebibmacro{location}% + }{% + \usebibmacro{location}% + \setunit*{\addcolon\addspace}% + \usebibmacro{publisher}% + }% + }% + \setunit*{\addcomma\addspace}% + \usebibmacro{date}% + \newunit% +}%% <<<3 + +\renewbibmacro*{issue}{%% >>>3 + \iffieldundef{issuetitle}% + {}% + {\printtext[issuetitle]{% + \printfield[upperfirst]{issuetitle}% + \iffieldendswithpunct{issuetitle}{% + \setunit*{\addspace}% + }{% + \setunit*{\subtitlepunct}% + } + \printfield[normalfont]{issuesubtitle}}}% +}%% <<<3 + +\renewbibmacro*{issue+date}{%% >>>3 + \iffieldundef{issue}% + {\usebibmacro{date}}% + {\printfield{issue}% + \setunit*{\addspace}% + \usebibmacro{date}}% + \newunit% +}%% <<<3 + +\newbibmacro*{publisher+location+issue+date}{%% >>>3 + \ifboolexpr{% + test {\iflistundef{publisher}}% + and% + test {\iflistundef{location}}% + and% + not test {\iftoggle{nosl}}% + and% + not test {\iftoggle{nosn}}% + }{% + \printtext[brackets]{\bibstring{sineloco}% + \setunit{\addcolon\addnbspace}% + \bibstring{sinenomine}}% + }{% + \ifboolexpr{% + test {\ifnameundef{author}}% + and% + test {\ifnameundef{editor}}% + and% + test {\iflistundef{publisher}}% + and% + not test {\iflistundef{organization}}% + }{% + \usebibmacro{location}% + }{% + \usebibmacro{location}% + \setunit*{\addcolon\addspace}% + \usebibmacro{publisher}% + }% + }% + \setunit*{\addcomma\addspace}% + \printfield[number]{issue}% + \setunit*{\addcomma\addspace}% + \usebibmacro{date}% + \newunit% +}%% <<<3 + +% <<<2 + +% Misc >>>2 + +\renewbibmacro*{volume+number+eid}{%% >>>3 + \printfield{volume}% + \setunit*{\addcomma\addspace}% + \printfield{number}% + \setunit{\addcomma\addspace}% + \printfield{eid}% +}%% <<<3 + +\renewbibmacro*{series+number}{%% >>>3 + \iffieldundef{series}{}{% + \printtext[parens]{% + \printfield{series}% + \setunit*{\addcomma\addspace}% + \printfield[normalfont]{number}% + \newunit}% + }% +}%% <<<3 + +\renewbibmacro*{url+urldate}{%% >>>3 + \usebibmacro{url}% + \iffieldundef{urlyear}% + {}% + {\setunit*{\addperiod\addspace}% + \usebibmacro{urldate}}% +}%% <<<3 + +\newbibmacro*{mathesis}{%% >>>3 + \iffieldundef{type}{% + \bibstring{dissertation}\addspace\printtext[parens]{\bibstring{mathesis}}% + }{% + \bibstring{dissertation}\addspace\printtext[parens]{\printfield{type}}% + }% +}%% <<<3 + +\newbibmacro*{phdthesis}{%% >>>3 + \iffieldundef{type}{% + \bibstring{thesis}\addspace\printtext[parens]{\bibstring{phdthesis}}% + }{% + \bibstring{thesis}\addspace\printtext[parens]{\printfield{type}}% + }% +}%% <<<3 + +\newbibmacro*{language}{%% >>>3 + \ifboolexpr{% + test {\iflistundef{language}}% + or% + test {\iflistundef{origlanguage}}% + }% + {}% + {% + \printtext{\printlist{language}\addspace\printlist{origlanguage}}% + }% +}%% <<<3 + +\renewbibmacro*{related:reprintfrom}[1]{%% >>>3 + \entrydata*{#1}{% + \usedriver% + {\ifnameundef{savedauthor}% + {\ifnameundef{savededitor}% + {}% + {\ifnamesequal{editor}{savededitor}% + {\clearname{editor}}% + {}}}% + {\ifnamesequal{author}{savedauthor}% + {\clearname{author}}% + {}}% + \renewbibmacro*{related:init}{}% + \DeclareNameAlias{sortname}{default}% + \ifbibmacroundef{date+extradate}% + {}% + {\renewbibmacro*{date+extradate}{}% + \renewbibmacro*{date}{\printdate}}% + \renewbibmacro*{pageref}{}}% + {\thefield{entrytype}}}% +}%% <<<3 + +\renewbibmacro*{pageref}{% >>>3 + \iftoggle{backref}{% + \iftoggle{citecount}{% + \printunit{\addperiod\addspace}% + \iflistundef{pageref}{% + \bibstring{citecountnopage}% + }{% + \printtext{% + \ifnumgreater{\value{pageref}}{1}{% + \bibstring{citecountpages}\ppspace% + }{% + \bibstring{citecountpage}\ppspace% + }% + \printlist[pageref][-\value{listtotal}]{pageref}% + }% + }% + }{% + \iflistundef{pageref}{}{% + \printunit{\addperiod\addspace}% + \printtext{% + \ifnumgreater{\value{pageref}}{1}{% + \bibstring{backrefpages}\ppspace% + }{% + \bibstring{backrefpage}\ppspace% + }% + \printlist[pageref][-\value{listtotal}]{pageref}% + }% + }% + }% + }{} +}% <<<3 + +% <<<2 + +% <<<1 + + +% Drivers >>>1 + +\DeclareBibliographyDriver{article}{%% >>>2 + \usebibmacro{bibindex}% + \usebibmacro{begentry}% + \usebibmacro{author/organization}% + \setunit{\labelnamepunct}% + \usebibmacro{title}\newunit% + \newblock%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + \printlist{language}% + \newunit% + \newblock%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + \usebibmacro{byauthor}% + \newunit% + \newblock%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + \usebibmacro{byeditor+others}\newunit% + \usebibmacro{bytranslator+others}% + \newunit% + \newblock%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + \printfield{version}% + \newunit% + \newblock%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + \iffieldundef{relatedtype}{}{% + \bibstring{\strfield{relatedtype}}}% + \setunit*{\addcolon\addspace}% + \newblock%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + \usebibmacro{journal+section}% + \setunit*{\addcomma\addspace}% + \printlist{publisher}% + \setunit*{\addcomma\addspace}% + \printlist{location}% + \setunit*{\addcomma\addspace}% + \usebibmacro{volume+number+eid}% + \setunit{\addcomma\addspace}% + \printfield{pages}% + \setunit*{\addcomma\addspace}% + \printfield{pagetotal}% + \setunit{\addcomma\addspace}% + \usebibmacro{issue+date}% + \newunit% + \newblock%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + \printfield{note}% + \printunit{\addperiod\addspace}% + \newblock%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + \iftoggle{bbx:isbn}% + {\printfield{issn}}% + {}% + \newunit% + \newblock%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + \usebibmacro{doi+eprint+url}% + \newunit% + \newblock%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + \usebibmacro{addendum+pubstate}% + \setunit*{\bibpagerefpunct}% + \newblock%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + \usebibmacro{pageref}% + \setunit*{\addperiod\addspace}% + \newunit% + \newblock%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + \iftoggle{bbx:related}% + {\usebibmacro{related:init}% + \usebibmacro{related}}% + {}% + \usebibmacro{finentry}% +}%% <<<2 + +\DeclareBibliographyDriver{book}{%% >>>2 + \usebibmacro{bibindex}% + \usebibmacro{begentry}% + \usebibmacro{author/editor+others}% + \setunit{\labelnamepunct}% + \usebibmacro{title}% + \newunit% + \newblock%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + \usebibmacro{in:maintitle}% + \newunit% + \newblock%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + \usebibmacro{byeditor+others}% + \newunit% + \newblock%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + \printfield{edition}% + \newunit% + \newblock%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + \usebibmacro{publisher+location+date}% + \newunit% + \newblock%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + \printfield{volume}% + \printfield{part}% + \setunit{\addcomma\addspace}% + \printfield{chapter}% + \setunit*{\addcomma\addspace}% + \newblock%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + \printfield{pages}% + \newunit% + \printfield{pagetotal}% + \setunit*{\addcomma\addspace}% + \newblock%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + \printfield{illustrated}% + \setunit*{\addcomma\addspace}% + \printfield{dimensions}% + \newunit% + \newblock%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + \usebibmacro{series+number}% + \newunit% + \newblock%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + \printfield{howpublished}% + \newunit% + \newblock%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + \usebibmacro{language}% + \newunit% + \newblock%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + \printfield{note}% + \printunit{\addperiod\addspace}% + \newblock%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + \iftoggle{bbx:isbn}% + {\printfield{isbn}}% + {}% + \newunit% + \newblock%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + \usebibmacro{doi+eprint+url}% + \newunit% + \newblock%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + \usebibmacro{addendum+pubstate}% + \setunit*{\bibpagerefpunct}% + \newblock%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + \usebibmacro{pageref}% + \setunit*{\addperiod\addspace}% + \setunit*{\addperiod\addspace}% + \newunit% + \newblock%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + \iftoggle{bbx:related}% + {\usebibmacro{related:init}% + \usebibmacro{related}}% + {}% + \usebibmacro{finentry}% +}%% <<<2 + +\DeclareBibliographyDriver{inbook}{%% >>>2 + \usebibmacro{bibindex}% + \usebibmacro{begentry}% + \usebibmacro{author/editor+others}% + \setunit{\labelnamepunct}% + \usebibmacro{title}% + \newunit% + \newblock%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + \usebibmacro{in:bookauthor+others}% + \newunit% + \newblock%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + \usebibmacro{maintitle/booktitle}% + \newunit% + \newblock%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + \usebibmacro{byeditor+others}% + \newunit% + \newblock%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + \printfield{edition}% + \newunit% + \newblock%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + \usebibmacro{publisher+location+date}% + \newunit% + \newblock%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + \printfield{volume}% + \printfield{part}% + \setunit*{\addcomma\addspace}% + \usebibmacro{chapter+pages}% + \newunit% + \newblock%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + \usebibmacro{series+number}% + \newunit% + \newblock%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + \printfield{note}% + \printunit{\addperiod\addspace}% + \newblock%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + \iftoggle{bbx:isbn}% + {\printfield{isbn}}% + {}% + \newunit% + \newblock%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + \usebibmacro{doi+eprint+url}% + \newunit% + \newblock%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + \usebibmacro{addendum+pubstate}% + \setunit*{\bibpagerefpunct}% + \newblock%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + \usebibmacro{pageref}% + \setunit*{\addperiod\addspace}% + \newunit% + \newblock%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + \iftoggle{bbx:related}% + {\usebibmacro{related:init}% + \usebibmacro{related}}% + {}% + \usebibmacro{finentry}% +}%% <<<2 + +\DeclareBibliographyDriver{mvbook}{%% >>>2 + \usebibmacro{bibindex}% + \usebibmacro{begentry}% + \usebibmacro{author/editor+others}% + \setunit{\labelnamepunct}% + \usebibmacro{title}% + \newunit% + \newblock%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + \usebibmacro{in:maintitle}% + \newunit% + \newblock%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + \usebibmacro{byeditor+others}% + \newunit% + \newblock%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + \printfield{edition}% + \newunit% + \newblock%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + \usebibmacro{publisher+location+date}% + \newunit% + \newblock%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + \printfield{volumes}% + \newunit% + \newblock%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + \usebibmacro{chapter+pages}% + \newunit% + \newblock%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + \printfield{pagetotal}% + \setunit*{\addcomma\addspace}% + \newblock%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + \printfield{illustrated}% + \setunit*{\addcomma\addspace}% + \printfield{dimensions}% + \newunit% + \newblock%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + \usebibmacro{series+number}% + \newunit% + \newblock%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + \printfield{howpublished}% + \newunit% + \newblock%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + \usebibmacro{language}% + \newunit% + \newblock%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + \printfield{note}% + \printunit{\addperiod\addspace}% + \newblock%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + \iftoggle{bbx:isbn}% + {\printfield{isbn}}% + {}% + \newunit% + \newblock%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + \usebibmacro{doi+eprint+url}% + \newunit% + \newblock%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + \usebibmacro{addendum+pubstate}% + \setunit*{\bibpagerefpunct}% + \newblock%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + \usebibmacro{pageref}% + \setunit*{\addperiod\addspace}% + \newunit% + \newblock%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + \iftoggle{bbx:related}% + {\usebibmacro{related:init}% + \usebibmacro{related}}% + {}% + \usebibmacro{finentry}% +}%% <<<2 + +\DeclareBibliographyDriver{booklet}{%% >>>2 + \usebibmacro{bibindex}% + \usebibmacro{begentry}% + \usebibmacro{author/editor+others}% + \setunit{\labelnamepunct}% + \usebibmacro{maintitle+title}% + \newunit% + \newblock%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + \printlist{language}% + \newunit% + \newblock%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + \usebibmacro{byauthor}% + \newunit% + \newblock%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + \usebibmacro{byeditor+others}% + \newunit% + \newblock%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + \printfield{edition}% + \newunit% + \newblock%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + \usebibmacro{series+number}% + \newunit% + \newblock%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + \printfield{type}% + \newunit% + \newblock%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + \printfield{version}% + \newunit% + \newblock%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + \usebibmacro{location+date}% + \newunit% + \newblock%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + \usebibmacro{chapter+pages}% + \newunit% + \printfield{pagetotal}% + \newunit% + \newblock%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + \printfield{note}% + \newunit% + \newblock%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + \iftoggle{bbx:isbn}% + {\printfield{isbn}}% + {}% + \newunit% + \newblock%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + \usebibmacro{doi+eprint+url}% + \newunit% + \newblock%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + \usebibmacro{addendum+pubstate}% + \setunit*{\bibpagerefpunct}% + \newblock%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + \usebibmacro{pageref}% + \setunit*{\addperiod\addspace}% + \newunit% + \newblock%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + \iftoggle{bbx:related}% + {\usebibmacro{related:init}% + \usebibmacro{related}}% + {}% + \usebibmacro{finentry}% +}%% <<<2 + +\DeclareBibliographyDriver{collection}{%% >>>2 + \usebibmacro{bibindex}% + \usebibmacro{begentry}% + \usebibmacro{editor+others}% + \setunit{\labelnamepunct}% + \usebibmacro{title}% + \newunit% + \newblock%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + \usebibmacro{in:maintitle}% + \newunit% + \newblock%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + \usebibmacro{byeditor+others}% + \newunit% + \newblock%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + \printfield{edition}% + \newunit% + \newblock%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + \usebibmacro{publisher+location+date}% + \newunit% + \newblock%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + \printfield{volume}% + \printfield{part}% + \setunit{\addcomma\addspace}% + \printfield{chapter}% + \setunit*{\addcomma\addspace}% + \newblock%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + \printfield{pages}% + \newunit% + \printfield{pagetotal}% + \setunit*{\addcomma\addspace}% + \newblock%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + \printfield{illustrated}% + \setunit*{\addcomma\addspace}% + \printfield{dimensions}% + \newunit% + \newblock%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + \usebibmacro{series+number}% + \newunit% + \newblock%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + \printfield{howpublished}% + \newunit% + \newblock%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + \usebibmacro{language}% + \newunit% + \newblock%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + \printfield{note}% + \newblock%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + \printunit{\addperiod\addspace}% + \iftoggle{bbx:isbn}% + {\printfield{isbn}}% + {}% + \newunit% + \newblock%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + \usebibmacro{doi+eprint+url}% + \newunit% + \newblock%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + \usebibmacro{addendum+pubstate}% + \setunit*{\bibpagerefpunct}% + \newblock%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + \usebibmacro{pageref}% + \setunit*{\addperiod\addspace}% + \newunit% + \newblock%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + \iftoggle{bbx:related}% + {\usebibmacro{related:init}% + \usebibmacro{related}}% + {}% + \usebibmacro{finentry}% +}%% <<<2 + +\DeclareBibliographyDriver{incollection}{%% >>>2 + \usebibmacro{bibindex}% + \usebibmacro{begentry}% + \usebibmacro{author}% + \setunit{\labelnamepunct}% + \usebibmacro{title}% + \newunit% + \newblock%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + \usebibmacro{in:editor+others}% + \newunit% + \newblock%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + \usebibmacro{maintitle/booktitle}% + \newunit% + \newblock%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + \usebibmacro{byeditor+others}% + \newunit% + \newblock%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + \printfield{edition}% + \newunit% + \newblock%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + \usebibmacro{publisher+location+date}% + \newunit% + \newblock%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + \printfield{volume}% + \printfield{part}% + \newunit% + \usebibmacro{series+number}% + \newunit% + \newblock%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + \printfield{note}% + \printunit{\addperiod\addspace}% + \usebibmacro{chapter+pages}% + \newunit% + \newblock%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + \iftoggle{bbx:isbn}% + {\printfield{isbn}}% + {}% + \newunit% + \newblock%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + \usebibmacro{doi+eprint+url}% + \newunit% + \newblock%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + \usebibmacro{addendum+pubstate}% + \setunit*{\bibpagerefpunct}% + \newblock%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + \usebibmacro{pageref}% + \setunit*{\addperiod\addspace}% + \newunit% + \newblock%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + \iftoggle{bbx:related}% + {\usebibmacro{related:init}% + \usebibmacro{related}}% + {}% + \usebibmacro{finentry}% +}%% <<<2 + +\DeclareBibliographyDriver{mvcollection}{%% >>>2 + \usebibmacro{bibindex}% + \usebibmacro{begentry}% + \usebibmacro{editor+others}% + \setunit{\labelnamepunct}% + \usebibmacro{title}% + \newunit% + \newblock%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + \usebibmacro{in:maintitle}% + \newunit% + \newblock%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + \usebibmacro{byeditor+others}% + \newunit% + \newblock%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + \printfield{edition}% + \newunit% + \newblock%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + \usebibmacro{publisher+location+date}% + \newunit% + \newblock%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + \printfield{volumes}% + \newunit% + \newblock%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + \usebibmacro{chapter+pages}% + \newunit% + \newblock%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + \printfield{pagetotal}% + \setunit*{\addcomma\addspace}% + \newblock%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + \printfield{illustrated}% + \setunit*{\addcomma\addspace}% + \printfield{dimensions}% + \newunit% + \newblock%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + \usebibmacro{series+number}% + \newunit% + \newblock%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + \printfield{howpublished}% + \newunit% + \newblock%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + \usebibmacro{language}% + \newunit% + \newblock%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + \printfield{note}% + \newblock%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + \printunit{\addperiod\addspace}% + \iftoggle{bbx:isbn}% + {\printfield{isbn}}% + {}% + \newunit% + \newblock%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + \usebibmacro{doi+eprint+url}% + \newunit% + \newblock%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + \usebibmacro{addendum+pubstate}% + \setunit*{\bibpagerefpunct}% + \newblock%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + \usebibmacro{pageref}% + \setunit*{\addperiod\addspace}% + \newunit% + \newblock%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + \iftoggle{bbx:related}% + {\usebibmacro{related:init}% + \usebibmacro{related}}% + {}% + \usebibmacro{finentry}% +}%% <<<2 + +\DeclareBibliographyDriver{manual}{%% >>>2 + \usebibmacro{bibindex}% + \usebibmacro{begentry}% + \usebibmacro{author/editor+others}% + \setunit{\labelnamepunct}% + \usebibmacro{maintitle+title}% + \newunit% + \newblock%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + \printlist{language}% + \newunit% + \newblock%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + \usebibmacro{byauthor}% + \newunit% + \newblock%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + \usebibmacro{byeditor}% + \newunit% + \newblock%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + \printfield{edition}% + \newunit% + \newblock%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + \printfield{type}% + \newunit% + \newblock%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + \printfield{version}% + \newunit% + \newblock%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + \usebibmacro{location+date}% + \newunit% + \newblock%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + \usebibmacro{chapter+pages}% + \newunit% + \printfield{pagetotal}% + \newunit% + \newblock%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + \usebibmacro{series+number}% + \newunit% + \newblock%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + \printfield{note}% + \printunit{\addperiod\addspace}% + \newblock%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + \iftoggle{bbx:isbn}% + {\printfield{isbn}}% + {}% + \newunit% + \newblock%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + \usebibmacro{doi+eprint+url}% + \newunit% + \newblock%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + \usebibmacro{addendum+pubstate}% + \setunit*{\bibpagerefpunct}% + \newblock%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + \usebibmacro{pageref}% + \setunit*{\addperiod\addspace}% + \newunit% + \newblock%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + \iftoggle{bbx:related}% + {\usebibmacro{related:init}% + \usebibmacro{related}}% + {}% + \usebibmacro{finentry}% +}%% <<<2 + +\DeclareBibliographyDriver{monography}{%% >>>2 + \usebibmacro{bibindex}% + \usebibmacro{begentry}% + \usebibmacro{author}% + \setunit{\labelnamepunct}% + \usebibmacro{title}% + \newunit% + \newblock%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + \usebibmacro{date}% + \newunit% + \newblock%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + \usebibmacro{chapter+pages}% + \newunit% + \printfield{pagetotal}% + \newunit% + \newblock%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + \printfield{type}% + \setunit*{\addspace\textendash\addspace}% + \newblock%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + \printlist{institution}% + \setunit*{\addcomma\addspace}% + \newblock%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + \printlist{location}% + \setunit*{\addcomma\addspace}% + \printeventdate% + \newunit% + \newblock%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + \printfield{note}% + \printunit{\addperiod\addspace}% + \newblock%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + \iftoggle{bbx:isbn}% + {\printfield{isbn}}% + {}% + \newunit% + \newblock%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + \usebibmacro{doi+eprint+url}% + \newunit% + \newblock%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + \usebibmacro{addendum+pubstate}% + \setunit*{\bibpagerefpunct}% + \newblock%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + \usebibmacro{pageref}% + \setunit*{\addperiod\addspace}% + \newunit% + \newblock%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + \iftoggle{bbx:related}% + {\usebibmacro{related:init}% + \usebibmacro{related}}% + {}% + \usebibmacro{finentry}% +}%% <<<2 + +\DeclareBibliographyDriver{patent}{%% >>>2 + \usebibmacro{bibindex}% + \usebibmacro{begentry}% + \ifnameundef{holder}{% + \iflistundef{organization}{% + \usebibmacro{author/editor+others}% + }{% + \usebibmacro{organization}% + \ifnameundef{author}{% + \printnames[given-family]{editor}% + }{% + \printnames[given-family]{author}% + }% + \newunit% + \printfield{nameaddon}% + \newunit% + }% + }{% + \printnames{holder}% + \newunit% + \printfield{nameaddon}% + \newunit% + \ifnameundef{author}{% + \printnames[given-family]{editor}% + }{% + \printnames[given-family]{author}% + }% + }% + \setunit{\labelnamepunct}% + \usebibmacro{title}% + \newunit% + \newblock%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + \printlist{language}% + \newunit% + \newblock%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + \usebibmacro{byauthor}% + \newunit% + \newblock%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + \usebibmacro{byeditor+others}% + \newunit% + \newblock%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + \printlist{location}% + \setunit*{\addcomma\addspace}% + \usebibmacro{date}% + \setunit*{\addcomma\addspace}% + \newblock%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + \printfield{number}% + \setunit*{\addcomma\addspace}% + \newblock%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + \printfield{howpublished}% + \newunit% + \newblock%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + \printfield{type}% + \newunit% + \newblock%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + \printfield{version}% + \newunit% + \newblock%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + \printfield{note}% + \printunit{\addperiod\addspace}% + \newblock%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + \usebibmacro{doi+eprint+url}% + \newunit% + \newblock%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + \usebibmacro{addendum+pubstate}% + \setunit*{\bibpagerefpunct}% + \newblock%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + \usebibmacro{pageref}% + \setunit*{\addperiod\addspace}% + \newunit% + \newblock%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + \iftoggle{bbx:related}% + {\usebibmacro{related:init}% + \usebibmacro{related}}% + {}% + \usebibmacro{finentry}% +}%% <<<2 + +\DeclareBibliographyDriver{periodical}{%% >>>2 + \usebibmacro{bibindex}% + \usebibmacro{begentry}% + \usebibmacro{editor+others/organization}% + \setunit{\labelnamepunct}% + \printfield[uppercase]{title}% + \setunit*{\addcolon\addspace}% + \printfield[normalfont]{subtitle}% + \newunit% + \printfield{titleaddon}% + \newunit% + \newblock%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + \usebibmacro{publisher+location+issue+date}% + \newunit% + \newblock%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + \printlist{language}% + \newunit% + \newblock%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + \usebibmacro{byeditor}% + \newunit% + \newblock%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + \usebibmacro{chapter+pages}% + \setunit*{\addcomma\addspace}% + \printfield{pagetotal}% + \newunit% + \newblock%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + \printfield{note}% + \printunit{\addperiod\addspace}% + \newblock%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + \iftoggle{bbx:isbn}% + {\printfield{issn}}% + {}% + \newunit% + \newblock%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + \usebibmacro{doi+eprint+url}% + \newunit% + \newblock%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + \usebibmacro{addendum+pubstate}% + \setunit*{\bibpagerefpunct}% + \newblock%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + \usebibmacro{pageref}% + \setunit*{\addperiod\addspace}% + \newunit% + \newblock%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + \iftoggle{bbx:related}% + {\usebibmacro{related:init}% + \usebibmacro{related}}% + {}% + \usebibmacro{finentry}% +}%% <<<2 + +\DeclareBibliographyDriver{supperiodical}{%% >>>2 + \usebibmacro{bibindex}% + \usebibmacro{begentry}% + \usebibmacro{author/editor+others}% + \setunit{\labelnamepunct}% + \usebibmacro{issue}% + \setunit*{\addperiod\addspace}% + \usebibmacro{periodical}% + \setunit*{\addperiod\addspace}% + \newblock%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + \usebibmacro{location}% + \setunit*{\addcolon\addspace}% + \usebibmacro{publisher}% + \setunit*{\addcomma\addspace}% + \newblock%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + \printfield{volume}% + \setunit*{\addcomma\addspace}% + \printfield{number}% + \setunit*{\addcomma\addspace}% + \printfield{pages}% + \setunit*{\addcomma\addspace}% + \newblock%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + \usebibmacro{date}% + \newunit% + \newblock%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + \printlist{language}% + \newunit% + \newblock%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + \usebibmacro{byauthor}% + \newunit% + \newblock%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + \usebibmacro{byeditor+others}% + \newunit% + \newblock%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + \printfield{howpublished}% + \newunit% + \newblock%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + \printfield{type}% + \newunit% + \newblock%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + \printfield{version}% + \newunit% + \newblock%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + \usebibmacro{chapter+pages}% + \setunit*{\addcomma\addspace}% + \printfield{pagetotal}% + \newunit% + \newblock%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + \printfield{note}% + \printunit{\addperiod\addspace}% + \newblock%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + \usebibmacro{doi+eprint+url}% + \newunit% + \newblock%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + \usebibmacro{addendum+pubstate}% + \setunit*{\bibpagerefpunct}% + \newblock%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + \usebibmacro{pageref}% + \setunit*{\addperiod\addspace}% + \newunit% + \newblock%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + \iftoggle{bbx:related}% + {\usebibmacro{related:init}% + \usebibmacro{related}}% + {}% + \usebibmacro{finentry}% +}%% <<<2 + +\DeclareBibliographyDriver{proceedings}{%% >>>2 + \usebibmacro{bibindex}% + \usebibmacro{begentry}% + \usebibmacro{organization/eventtitle}% + \setunit{\addcomma\addspace}% + \printfield{number}% + \setunit*{\adddot\addcomma\addspace}% + \printeventdate% + \setunit{\addcomma\addspace}% + \usebibmacro{venue}% + \newunit% + \newblock%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + \usebibmacro{maintitle+title}% + \newunit% + \newblock%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + \usebibmacro{byeditor+others}% + \newunit% + \newblock%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + \usebibmacro{publisher+location+date}% + \newunit% + \newblock%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + \iffieldundef{maintitle}% + {\printfield{volume}% + \printfield{part}}% + {}% + \newunit% + \newblock%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + \printfield{volumes}% + \newunit% + \newblock%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + \printfield{note}% + \newblock%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + \printunit{\addperiod\addspace}% + \printlist{organization}% % This has to be printed conditionally + \newunit% + \newblock%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + \usebibmacro{chapter+pages}% + \newunit% + \printfield{pagetotal}% + \newunit% + \newblock%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + \iftoggle{bbx:isbn}% + {\printfield{isbn}}% + {}% + \newunit% + \newblock%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + \usebibmacro{doi+eprint+url}% + \newunit% + \newblock%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + \usebibmacro{addendum+pubstate}% + \setunit*{\bibpagerefpunct}% + \newblock%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + \usebibmacro{pageref}% + \setunit*{\addperiod\addspace}% + \newunit% + \newblock%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + \iftoggle{bbx:related}% + {\usebibmacro{related:init}% + \usebibmacro{related}}% + {}% + \usebibmacro{finentry}% +}%% <<<2 + +\DeclareBibliographyDriver{inproceedings}{%% >>>2 + \usebibmacro{bibindex}% + \usebibmacro{begentry}% + \usebibmacro{author/translator+others}% + \setunit{\labelnamepunct}% + \usebibmacro{title}% + \newunit% + \newblock%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + \printlist{language}% + \newunit% + \newblock%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + \usebibmacro{byauthor}% + \newunit% + \newblock%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + \usebibmacro{in:eventtitle/organization/editor}% + \setunit*{\addcomma\addspace}% + \newblock%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + \printfield{number}% + \setunit*{\adddot\addcomma\addspace}% + \newblock%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + \printeventdate% + \setunit*{\addcomma\addspace}% + \printfield{venue}% + \newunit% + \newblock%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + \usebibmacro{maintitle+booktitle}% + \newunit% + \newblock%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + \usebibmacro{byeditor+others}% + \newunit% + \newblock%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + \ifboolexpr{% + test {\iffieldundef{booktitle}}% + and% + test {\iffieldundef{maintitle}}% + }% + {}% + {\usebibmacro{publisher+location+date}}% + \newunit% + \newblock%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + \iffieldundef{maintitle}% + {\printfield{volume}% + \printfield{part}}% + {}% + \newunit% + \newblock%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + \printfield{volumes}% + \newunit% + \newblock%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + \usebibmacro{series+number}% + \newunit% + \newblock%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + \printlist{organization}% + \newunit% + \newblock%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + \usebibmacro{chapter+pages}% + \newunit% + \printfield{pagetotal}% + \newunit% + \newblock%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + \printfield{note}% + \newblock%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + \printunit{\addperiod\addspace}% + \iftoggle{bbx:isbn}% + {\printfield{isbn}}% + {}% + \newunit% + \newblock%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + \usebibmacro{doi+eprint+url}% + \newunit% + \newblock%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + \usebibmacro{addendum+pubstate}% + \setunit*{\bibpagerefpunct}% + \newblock%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + \usebibmacro{pageref}% + \setunit*{\addperiod\addspace}% + \newunit% + \newblock%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + \iftoggle{bbx:related}% + {\usebibmacro{related:init}% + \usebibmacro{related}}% + {}% + \usebibmacro{finentry}% +}%% <<<2 + +\DeclareBibliographyDriver{report}{%% >>>2 + \usebibmacro{bibindex}% + \usebibmacro{begentry}% + \usebibmacro{author/editor+others}% + \setunit{\labelnamepunct}% + \usebibmacro{maintitle+title}% + \newunit% + \newblock%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + \printlist{language}% + \newunit% + \newblock%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + \usebibmacro{byauthor}% + \newunit% + \newblock%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + \usebibmacro{byeditor+others}% + \newunit% + \newblock%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + \printfield{edition}% + \newunit% + \newblock%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + \iffieldundef{maintitle}% + {\printfield{volume}% + \printfield{part}}% + {}% + \newunit% + \newblock%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + \printfield{volumes}% + \newunit% + \newblock%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + \usebibmacro{location+date}% + \newunit% + \newblock%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + \usebibmacro{chapter+pages}% + \newunit% + \printfield{pagetotal}% + \newunit% + \newblock%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + \usebibmacro{series+number}% + \newunit% + \newblock%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + \printfield{note}% + \newblock%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + \printunit{\addperiod\addspace}% + \iftoggle{bbx:isbn}% + {\printfield{isbn}}% + {}% + \newunit% + \newblock%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + \usebibmacro{doi+eprint+url}% + \newunit% + \newblock%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + \usebibmacro{addendum+pubstate}% + \setunit*{\bibpagerefpunct}% + \newblock%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + \usebibmacro{pageref}% + \setunit*{\addperiod\addspace}% + \newunit% + \newblock%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + \iftoggle{bbx:related}% + {\usebibmacro{related:init}% + \usebibmacro{related}}% + {}% + \usebibmacro{finentry}% +}%% <<<2 + +\DeclareBibliographyDriver{thesis}{%% >>>2 + \usebibmacro{bibindex}% + \usebibmacro{begentry}% + \usebibmacro{author}% + \setunit{\labelnamepunct}% + \usebibmacro{title}% + \newunit% + \newblock%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + \usebibmacro{date}% + \newunit% + \newblock%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + \usebibmacro{chapter+pages}% + \newunit% + \printfield{pagetotal}% + \newunit% + \newblock%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + \printfield{type}% + \setunit*{\addspace\textendash\addspace}% + \newblock%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + \printlist{institution}% + \setunit*{\addcomma\addspace}% + \newblock%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + \printlist{location}% + \setunit*{\addcomma\addspace}% + \printeventdate% + \newunit% + \newblock%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + \printfield{note}% + \newblock%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + \printunit{\addperiod\addspace}% + \iftoggle{bbx:isbn}% + {\printfield{isbn}}% + {}% + \newunit% + \newblock%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + \usebibmacro{doi+eprint+url}% + \newunit% + \newblock%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + \usebibmacro{addendum+pubstate}% + \setunit*{\bibpagerefpunct}% + \newblock%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + \usebibmacro{pageref}% + \setunit*{\addperiod\addspace}% + \newunit% + \newblock%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + \iftoggle{bbx:related}% + {\usebibmacro{related:init}% + \usebibmacro{related}}% + {}% + \usebibmacro{finentry}% +}%% <<<2 + +\DeclareBibliographyDriver{misc}{%% >>>2 + \usebibmacro{bibindex}% + \usebibmacro{begentry}% + \usebibmacro{author/editor+others}% + \setunit{\labelnamepunct}% + \usebibmacro{maintitle+title}% + \newunit% + \newblock%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + \printlist{language}% + \newunit% + \newblock%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + \usebibmacro{byauthor}% + \newunit% + \newblock%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + \usebibmacro{byeditor+others}% + \newunit% + \newblock%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + \printfield{edition}% + \newunit% + \newblock%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + \iffieldundef{maintitle}% + {\printfield{volume}% + \printfield{part}}% + {}% + \newunit% + \newblock%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + \printfield{volumes}% + \newunit% + \newblock%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + \usebibmacro{publisher+location+date}% + \newunit% + \newblock%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + \usebibmacro{chapter+pages}% + \newunit% + \printfield{pagetotal}% + \setunit*{\addcomma\addspace}% + \newblock%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + \printfield{dimensions}% + \newunit% + \newblock%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + \printfield{howpublished}% + \newunit% + \newblock%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + \usebibmacro{series+number}% + \newunit% + \newblock%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + \printfield{note}% + \newblock%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + \printunit{\addperiod\addspace}% + \iftoggle{bbx:isbn}% + {\printfield{isbn}}% + {}% + \newunit% + \newblock%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + \usebibmacro{doi+eprint+url}% + \newunit% + \newblock%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + \usebibmacro{addendum+pubstate}% + \setunit*{\bibpagerefpunct}% + \newblock%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + \usebibmacro{pageref}% + \setunit*{\addperiod\addspace}% + \newunit% + \newblock%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + \iftoggle{bbx:related}% + {\usebibmacro{related:init}% + \usebibmacro{related}}% + {}% + \usebibmacro{finentry}% +}%% <<<2 + +\DeclareBibliographyDriver{set}{%% >>>2 + \booltrue{bbx@inset}% + \entryset{}{}% + \newunit% + \newblock%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + \usebibmacro{setpageref}% + \finentry% +}%% <<<2 + +% <<<1 + + +\endinput% + + +% vim: set foldmarker=\ >>>,\ <<< : + diff --git a/macros/latex/contrib/biblatex-contrib/biblatex-abnt/latex/cbx/abnt-ibid.cbx b/macros/latex/contrib/biblatex-contrib/biblatex-abnt/latex/cbx/abnt-ibid.cbx new file mode 100644 index 0000000000..97e7cfa2db --- /dev/null +++ b/macros/latex/contrib/biblatex-contrib/biblatex-abnt/latex/cbx/abnt-ibid.cbx @@ -0,0 +1,629 @@ +%% Copyright 2016 Daniel Ballester Marques +%% +%% This work may be distributed and/or modified under the +%% conditions of the LaTeX Project Public License, either version 1.3 +%% of this license or (at your option) any later version. +%% The latest version of this license is in +%% http://www.latex-project.org/lppl.txt +%% and version 1.3 or later is part of all distributions of LaTeX +%% version 2005/12/01 or later. +%% +%% This work has the LPPL maintenance status `maintained'. +%% +%% The Current Maintainer of this work is Daniel Ballester Marques. + +\ProvidesFile{abnt-ibid.cbx}% +[2018-11-17\space v3.4\space ABNT BibLaTeX citation style]% + +% Init >>>1 + +\RequirePackage{xparse}% +\RequirePackage{xpatch}% +\RequirePackage{expl3}% +\RequirePackage{l3regex}% + +% <<<1 + +% Format >>>1 + +\newcommand*{\UpperOrSCCite}[1]{% >>>2 + \iftoggle{sccite}{% + \textsc{\MakeLowercase{#1}}% + }{% + \MakeUppercase{#1}% + }% +}% <<<2 + +\newcommand*{\NormalOrSCCite}[1]{% >>>2 + \iftoggle{sccite}{% + \textsc{\MakeLowercase{#1}}% + }{% + #1% + }% +}% <<<2 + +% \IfInitial >>>2 + +\ExplSyntaxOn + +\NewDocumentCommand{\IfInitial}{mmm}{% + \regex_match:nVTF {\w\.} \namepartgiven {#2} {#3}% +} +\cs_generate_variant:Nn \regex_match:nnTF { nV } + +\ExplSyntaxOff + +% <<<2 + +\renewbibmacro*{name:family}[4]{% >>>2 + \ifuseprefix + {\usebibmacro{name:delim}{#3#1}% + \usebibmacro{name:hook}{#3#1}% + \ifdefvoid{#3}{}{% + \ifcapital{% + \iftoggle{sccite}{% + \mkbibnameprefix{#3}\isdot% + }{% + \mkbibnameprefix{\MakeCapital{#3}}\isdot% + } + }{% + \mkbibnameprefix{#3}\isdot% + }% + \ifprefchar{}{\bibnamedelimc}}% + \mkbibnamefamily{#1}\isdot + \ifdefvoid{#4}{}{\bibnamedelimd\mkbibnamesuffix{#4}\isdot}} + {\usebibmacro{name:delim}{#1}% + \usebibmacro{name:hook}{#1}% + \mkbibnamefamily{#1}\isdot + \ifdefvoid{#4}{}{\bibnamedelimd\mkbibnamesuffix{#4}\isdot}}}% <<<2 + +\DeclareNameFormat{labelname}{% >>>2 + % Use family-given instead of given-family + \ifcase\value{uniquename}% + \usebibmacro{name:family}% + {\namepartfamily}% + {\namepartgiven}% + {\namepartprefix}% + {\namepartsuffix}% + \or% + \ifuseprefix% + {\usebibmacro{name:family-given}% + {\namepartfamily}% + {\namepartgiveni}% + {\namepartprefix}% + {\namepartsuffixi}}% + {\usebibmacro{name:family-given}% + {\namepartfamily}% + {\namepartgiveni}% + {\namepartprefixi}% + {\namepartsuffixi}}% + \or% + \usebibmacro{name:family-given}% + {\namepartfamily}% + {\namepartgiven}% + {\namepartprefix}% + {\namepartsuffix}% + \fi% + \usebibmacro{name:andothers}}% <<<2 + +\let\origmkbibnamefamily\mkbibnamefamily% +\let\origmkbibnamegiven\mkbibnamegiven% +\let\origmkbibnameprefix\mkbibnameprefix% +\let\origmkbibnamesuffix\mkbibnamesuffix% + +\renewcommand*{\mkbibnamefamily}[1]{% >>>2 + \UpperOrSCCite{#1}% +}% <<<2 +\renewcommand*{\mkbibnamegiven}[1]{% >>>2 + \ifnumequal{\value{uniquename}}{2}{% + \IfInitial{#1}{\NormalOrSCCite{#1}}{#1}% + }{% + \NormalOrSCCite{#1}% + }% +}% <<<2 +\renewcommand*{\mkbibnameprefix}[1]{% >>>2 + \ifuseprefix{% + \UpperOrSC{#1}% + }{% + \ifnumequal{\value{uniquename}}{2}{#1}{\NormalOrSCCite{#1}}% + } +}% <<<2 +\renewcommand*{\mkbibnamesuffix}[1]{% >>>2 + \UpperOrSCCite{#1}% +}% <<<2 + +\DeclareFieldFormat{firstword}{%% >>>2 + \iftoggle{sccite}{% + \normalfont\textsc{\MakeLowercase{\FirstWord{#1}}}% + }{% + \normalfont\MakeUppercase{\FirstWord{#1}}% + }% +}%% <<<2 + +\renewcommand*{\nameyeardelim}{\addcomma\addspace}% + +% <<<1 + +% Options >>>1 + +\newtoggle{sccite}% + +\DeclareBibliographyOption{sccite}[true]{ + \settoggle{sccite}{#1}% +} + +\InitializeCitationStyle{\numgdef{\cbx@resetcount}{\cbx@resetcount+1}}% + +\DeclareFieldFormat{bibhyperlink}{% + \bibhyperlink{\iffootnote{f}{t}:\cbx@resetcount:\thefield{entrykey}}{#1}}% +\DeclareFieldFormat{bibhypertarget}{% + \bibhypertarget{\iffootnote{f}{t}:\cbx@resetcount:\thefield{entrykey}}{#1}}% + +\newcommand*{\cbx@resetcount}{0}% +\providecommand*{\mkidem}[1]{#1}% +\providecommand*{\mkibid}[1]{#1}% +\providecommand*{\mkopcit}[1]{#1}% +\providecommand*{\mkloccit}[1]{#1}% +\renewcommand*{\iffinalcitedelim}{% + \ifnumequal{\value{textcitecount}}{\value{textcitetotal}-1}}% + +\newtoggle{cbx:loccit}% + +\newbibmacro*{footcite:citepages}{}% +\newbibmacro*{footcite:full:citepages}{}% +\newbibmacro*{footcite:postnote}{}% + +\DeclareBibliographyOption[boolean]{ibidpage}[true]{% + \ifstrequal{#1}{true}% + {\ExecuteBibliographyOptions{loccittracker=constrict}}% + {\ExecuteBibliographyOptions{loccittracker=false}}}% + +\DeclareBibliographyOption[string]{citepages}[permit]{% + \ifcsdef{cbx@opt@citepages@#1}% + {\csuse{cbx@opt@citepages@#1}}% + {\PackageError{biblatex}% + {Invalid option 'citepages=#1'}% + {Valid values are 'permit', 'suppress', 'omit', 'separate'.}}}% + +\providebibmacro*{footcite:citepages}{}% +\providebibmacro*{footcite:full:citepages}{}% +\providebibmacro*{footcite:postnote}{}% + +\def\cbx@opt@citepages@permit{% >>>2 + \renewbibmacro*{footcite:citepages}{}% + \renewbibmacro*{footcite:full:citepages}{}% + \renewbibmacro*{footcite:postnote}{% + \usebibmacro{footcite:postnote:ibidpage}}}% <<<2 + +\def\cbx@opt@citepages@suppress{% >>>2 + \renewbibmacro*{footcite:citepages}{}% + \renewbibmacro*{footcite:full:citepages}{% + \clearfield{pages}% + \clearfield{pagetotal}}% + \renewbibmacro*{footcite:postnote}{% + \usebibmacro{footcite:postnote:ibidpage}}}% <<<2 + +\def\cbx@opt@citepages@omit{% >>>2 + \renewbibmacro*{footcite:citepages}{}% + \renewbibmacro*{footcite:full:citepages}{% + \ifboolexpr{% + test {\ifnumequal{\value{footcitecount}}{\value{footcitetotal}}}% + and% + test {\iffieldpages{postnote}}% + }% + {\clearfield{pages}% + \clearfield{pagetotal}}% + {}}% + \renewbibmacro*{footcite:postnote}{% + \usebibmacro{footcite:postnote:ibidpage}}}% <<<2 + +\def\cbx@opt@citepages@separate{% >>>2 + \providetoggle{cbx:fullcite}% + \renewbibmacro*{footcite:citepages}{% + \global\togglefalse{cbx:fullcite}}% + \renewbibmacro*{footcite:full:citepages}{% + \global\toggletrue{cbx:fullcite}}% + \renewbibmacro*{footcite:postnote}{% + \ifboolexpr{% + togl {cbx:fullcite}% + and% + test {\iffieldpages{postnote}}% + and% + test {\ifnumequal{\value{footcitecount}}{\value{footcitetotal}}}% + and% + (% + not test {\iffieldundef{pages}}% + or% + not test {\iffieldundef{pagetotal}}% + )% + }% + {\usebibmacro{footcite:postnote:pages}}% + {\usebibmacro{footcite:postnote:ibidpage}}}% + \providebibmacro*{footcite:postnote:pages}{% + \setunit{\postnotedelim}% + \bibstring{thiscite}% + \setunit{\addspace}% + \printfield{postnote}}}% <<<2 + +\ExecuteBibliographyOptions{% >>>2 + loccittracker=constrict,% + citetracker=context,% + ibidtracker=constrict,% + idemtracker=constrict,% + opcittracker=constrict,% + pagetracker,% + autocite=footnote,% + citepages=permit,% + labeldateparts,% + labeldate=year,% + sorting=none,% +}% <<<2 + +% <<<1 + +% Macros >>>1 + +\newbibmacro*{footcite}{% >>>2 + \usebibmacro{footcite:citepages}% + \global\togglefalse{cbx:loccit}% + \ifciteseen{% + \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}% + }% + }{% + \usebibmacro{footcite:full}% + }% +}% <<<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]{% + \usedriver% + {\DeclareNameAlias{sortname}{default}}% + {\thefield{entrytype}}}% + \usebibmacro{shorthandintro}}% + +\newbibmacro*{footcite:short}{% + \ifnameundef{labelname}{% + \printtext[bibhyperref]{% + \printfield[firstword]{labeltitle}% + }% + }{% + \printnames[LAST]{labelname}% + }% + \setunit*{\nameyeardelim}% + \iffieldundef{labelyear}{% + }{% + \printtext[bibhyperlink]{% + \printfield{labelyear}% + \printfield{extradate}% + }% + }% +}% <<<2 + +\newbibmacro*{footcite:loccit}{% >>>2 + \ifnameundef{labelname}{% + \printtext[bibhyperref]{% + \printfield[firstword]{labeltitle}% + }% + }{% + \printnames[LAST]{labelname}% + }% + \setunit*{\nameyeardelim}% + \printtext[bibhyperlink]{\bibstring[\mkloccit]{loccit}}% + \global\toggletrue{cbx:loccit} +}% <<<2 + +\newbibmacro*{footcite:opcit}{% >>>2 + \ifnameundef{labelname}{% + \printtext[bibhyperref]{% + \printfield[firstword]{labeltitle}% + }% + }{% + \printnames[LAST]{labelname}% + }% + \setunit*{\nameyeardelim}% + \printtext[bibhyperlink]{\bibstring[\mkopcit]{opcit}}% +}% <<<2 + +\newbibmacro*{footcite:idem}{% >>>2 + \printtext[bibhyperlink]{\bibstring[\mkidem]{idem}}% + \setunit*{\nameyeardelim}% + \iffieldundef{labelyear}{% + }{% + \printtext[bibhyperlink]{% + \printfield{labelyear}% + \printfield{extradate}% + }% + }% +}% <<<2 + +\newbibmacro*{footcite:ibid}{% >>>2 + \printtext[bibhyperlink]{\bibstring[\mkibid]{ibidem}}% + \ifloccit% + {\global\toggletrue{cbx:loccit}}% + {}}% <<<2 + +\newbibmacro*{footcite:shorthand}{% >>>2 + \printtext[bibhyperlink]{% + \printfield{shorthand}}}% <<<2 + +\newbibmacro*{footcite:postnote:ibidpage}{% >>>2 + \iftoggle{cbx:loccit}% + {}% + {\MakeLowercase{\usebibmacro{postnote}}}}% <<<2 + +% <<<1 + +% Commands >>>1 + +\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}% + \usebibmacro{footcite}}% + {\multicitedelim}% + {\usebibmacro{footcite:postnote}}% <<<2 + +\DeclareCiteCommand{\footcite}[\mkbibfootnote]% >>>2 + {\usebibmacro{prenote}}% + {\usebibmacro{citeindex}% + \usebibmacro{footcite}}% + {\multicitedelim}% + {\usebibmacro{footcite:postnote}}% <<<2 + +\DeclareCiteCommand*{\footcite}[\mkbibfootnote]% >>>2 + {\usebibmacro{prenote}}% + {\usebibmacro{citeindex}% + \usebibmacro{footcitestar}}% + {\multicitedelim}% + {\usebibmacro{footcite:postnote}}% <<<2 + +\DeclareCiteCommand{\footcitetext}[\mkbibfootnotetext]% >>>2 + {\usebibmacro{prenote}}% + {\usebibmacro{citeindex}% + \usebibmacro{footcite}}% + {\multicitedelim}% + {\usebibmacro{footcite:postnote}}% <<<2 + +\DeclareCiteCommand{\smartcite}[\iffootnote\mkbibparens\mkbibfootnote]% >>>2 + {\usebibmacro{prenote}}% + {\usebibmacro{citeindex}% + \usebibmacro{footcite}}% + {\multicitedelim}% + {\usebibmacro{footcite:postnote}}% <<<2 + +% <<<1 + +% apud >>>1 + +\newcommand{\addapud}{%% >>>2 + \renewcommand*{\multicitedelim}{% + \ifnumequal{\value{multicitecount}}{\value{multicitetotal}}% + {\space\bibstring{apud}}% + {\addsemicolon}% + \space}% + \renewcommand*{\textcitedelim}{% + \ifnumequal{\value{multicitecount}}{\value{multicitetotal}}% + {\addspace\bibstring{apud}}% + {\addsemicolon}% + \space}% +}% <<<2 + +\DeclareCiteCommand{\@apud}% >>>2 + {\iffieldundef{prenote}{}{% + \ifnumgreater{\value{multicitetotal}}{1}{% + \usebibmacro{prenote}% + }{% + \printfield[uppercasecite]{prenote}% + \isdot\addspace\bibstring{apud}\addspace% + }% + }% + }% + {\usebibmacro{citeindex}% + \usebibmacro{footcite:short}}% + {\setunit{\multicitedelim}}% + {\usebibmacro{postnote}}% <<<2 + +\DeclareMultiCiteCommand{\apud}[\addapud\mkbibfootnote]% >>>2 + {\@apud}% + {\setunit{\multicitedelim}% +}% <<<2 + +% <<<1 + +% textcite >>>1 + +\newbibmacro*{textcite}{% >>>2 + \ifnameundef{labelname}% + {\printfield[firstword]{labeltitle}}% + {\printnames{labelname}}}% <<<2 + +\newbibmacro*{textcite:init}{% >>>2 + \citetrackerfalse% + \pagetrackerfalse% + \iffirstcitekey% + {\global\undef\cbx@lasthash}% + {}}% <<<2 + +\newbibmacro*{textcite:count}{% >>>2 + \stepcounter{textcitetotal}% + \ifnumgreater{\value{uniquelist}}{\value{maxnames}}% + {\ifnumgreater{\value{uniquelist}}{\value{textcitemaxnames}}% + {\setcounter{textcitemaxnames}{\value{uniquelist}}}% + {}}% + {\ifnumless{\value{labelname}}{\value{maxnames}}% + {\ifnumgreater{\value{labelname}}{\value{textcitemaxnames}}% + {\setcounter{textcitemaxnames}{\value{labelname}}}% + {}}% + {\ifnumgreater{\value{maxnames}}{\value{textcitemaxnames}}% + {\setcounter{textcitemaxnames}{\value{maxnames}}}% + {}}}}% <<<2 + +\DeclareCiteCommand{\cbx@textcite}% >>>2 + {\usebibmacro{textcite:init}}% + {\iffieldequals{namehash}{\cbx@lasthash}% + {}% + {\iffirstcitekey% + {}% + {\textcitedelim}% + \stepcounter{textcitecount}% + \usebibmacro{textcite}% + \savefield{namehash}{\cbx@lasthash}}}% + {}% + {}% <<<2 + +\DeclareCiteCommand{\textcite}[\cbx@textcite@init\cbx@textcite\footcite]% >>>2 + {\usebibmacro{textcite:init}% + \gdef\cbx@savedkeys{}% + \DeferNextCitekeyHook}% + {\ifthenelse{\iffirstcitekey\AND\value{multicitetotal}>0}% + {\protected@xappto\cbx@footcite@args{% + (\thefield{multiprenote})(\thefield{multipostnote})}}% + {}% + \xappto\cbx@savedkeys{\thefield{entrykey},}% + \iffieldequals{namehash}{\cbx@lasthash}% + {}% + {\usebibmacro{textcite:count}% + \savefield{namehash}{\cbx@lasthash}}% + \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}% + }{}% + }{}}% + {}% + {}% <<<2 + +% textcite has nested \DeclareCiteCommand definitions for +% textcite and we want to use the normal textcite context +\DeclareDelimcontextAlias{cbx@textcite}{textcite}% + +\newrobustcmd{\cbx@textcite@init}[3]{% >>>2 + \setcounter{textcitetotal}{0}% + \setcounter{textcitecount}{0}% + \setcounter{textcitemaxnames}{0}% + \def\cbx@textcite@args{#1}\def\cbx@footcite@args{#2}#3% + \cbx@textcite@args\@empty\cbx@footcite@args\@empty}% <<<2 + +\DeclareMultiCiteCommand{\cbx@textcites}{\cbx@textcite}{}% +\DeclareMultiCiteCommand{\textcites}% + [\cbx@textcites@init\cbx@textcites\footcites]{\textcite}{}% + +\let\cbx@textcites@init\cbx@textcite@init% >>>2 +\pretocmd{\cbx@textcites@init}{% + \UseNextMultiCiteHook% + \AtNextMultiCite{% + \renewbibmacro{multiprenote}{}% + \renewbibmacro{multipostnote}{}}}{}{}% <<<2 + +\xpretobibmacro{textcite}{% >>>3 + \let\multinamedelim\multinamedelimorig% + \let\finalnamedelim\finalnamedelimorig% + \let\mkbibnamefamily\origmkbibnamefamily% + \let\mkbibnamegiven\origmkbibnamegiven% + \let\mkbibnameprefix\origmkbibnameprefix% + \let\mkbibnamesuffix\origmkbibnamesuffix% +}{}{}% <<<3 + +% <<<1 + +\endinput% + + +% vim: set foldmarker=\ >>>,\ <<< : + diff --git a/macros/latex/contrib/biblatex-contrib/biblatex-abnt/latex/cbx/abnt-numeric.cbx b/macros/latex/contrib/biblatex-contrib/biblatex-abnt/latex/cbx/abnt-numeric.cbx new file mode 100644 index 0000000000..8be391001f --- /dev/null +++ b/macros/latex/contrib/biblatex-contrib/biblatex-abnt/latex/cbx/abnt-numeric.cbx @@ -0,0 +1,368 @@ +%% Copyright 2016 Daniel Ballester Marques +%% +%% This work may be distributed and/or modified under the +%% conditions of the LaTeX Project Public License, either version 1.3 +%% of this license or (at your option) any later version. +%% The latest version of this license is in +%% http://www.latex-project.org/lppl.txt +%% and version 1.3 or later is part of all distributions of LaTeX +%% version 2005/12/01 or later. +%% +%% This work has the LPPL maintenance status `maintained'. +%% +%% The Current Maintainer of this work is Daniel Ballester Marques. + +\ProvidesFile{abnt-numeric.cbx}% +[2018-11-17\space v3.4\space ABNT BibLaTeX citation style]% + +% Init >>>1 + +\RequireCitationStyle{numeric}% + +\newtoggle{comp}% +\DeclareBibliographyOption{comp}[true]{% + \settoggle{comp}{#1}% +}% + +% <<<1 + +% Comp >>>1 + +\providebool{bbx:subentry}% +% \newbool{cbx:parens}% + +\newcounter{cbx@tempcnta}% +\newcounter{cbx@tempcntb}% + +\DeclareFieldFormat{entrysetcount}{\mknumalph{#1}}% + +\newbibmacro*{cite:init}{% + \iftoggle{comp}{% + \global\boolfalse{cbx:parens}% + \global\undef\cbx@lasthash% + \global\undef\cbx@lastnumber% + \global\undef\cbx@lastprefix% + \setcounter{cbx@tempcnta}{0}% + \setcounter{cbx@tempcntb}{-2}% + }{}% +}% + +\newbibmacro*{cite:comp}{% + \iftoggle{comp}{% + \addtocounter{cbx@tempcntb}{1}% + \iffieldundef{shorthand}% + {\ifbool{bbx:subentry}% + {\iffieldundef{entrysetcount}% + {\usebibmacro{cite:comp:comp}}% + {\usebibmacro{cite:comp:inset}}}% + {\usebibmacro{cite:comp:comp}}}% + {\usebibmacro{cite:comp:shand}}% + }{% + \usebibmacro{cite}% + }% +}% + +\newbibmacro*{cite:comp:comp}{% + \ifboolexpr{% + ( test {\iffieldundef{labelprefix}} and test {\ifundef\cbx@lastprefix} )% + or% + test {\iffieldequals{labelprefix}{\cbx@lastprefix}}% + }% + {\ifnumequal{\thefield{labelnumber}}{\value{cbx@tempcntb}}% + {\savefield{entrykey}{\cbx@lastkey}% + \savefield{labelnumber}{\cbx@lastnumber}% + \addtocounter{cbx@tempcnta}{1}}% + {\ifnumequal{\thefield{labelnumber}}{\value{cbx@tempcntb}-1}% + {}% + {\usebibmacro{cite:dump}% + \ifnumgreater{\value{cbx@tempcntb}}{-1}% + {\multicitedelim}% + {}% + \printtext[bibhyperref]{% + \printfield{labelprefix}% + \printfield{labelnumber}}}}}% + {\usebibmacro{cite:comp:end}}% + \setcounter{cbx@tempcntb}{\thefield{labelnumber}}% + \savefield{labelprefix}{\cbx@lastprefix}}% + +\newbibmacro*{cite:comp:end}{% + \usebibmacro{cite:dump}% + \ifnumgreater{\value{cbx@tempcntb}}{-1}% + {\multicitedelim}% + {}% + \printtext[bibhyperref]{% + \printfield{labelprefix}% + \printfield{labelnumber}}}% + +\newbibmacro*{cite:comp:inset}{% + \usebibmacro{cite:dump}% + \ifnumgreater{\value{cbx@tempcntb}}{-1}% + {\multicitedelim}% + {}% + \printtext[bibhyperref]{% + \printfield{labelprefix}% + \printfield{labelnumber}% + \printfield{entrysetcount}}% + \setcounter{cbx@tempcntb}{-1}}% + +\newbibmacro*{cite:comp:shand}{% + \usebibmacro{cite:dump}% + \ifnumgreater{\value{cbx@tempcntb}}{-1}% + {\multicitedelim}% + {}% + \printtext[bibhyperref]{\printfield{shorthand}}% + \setcounter{cbx@tempcntb}{-1}}% + +\newbibmacro*{cite:dump}{% + \iftoggle{comp}{% + \ifnumgreater{\value{cbx@tempcnta}}{0}% + {\ifnumgreater{\value{cbx@tempcnta}}{1}% + {\bibrangedash}% + {\multicitedelim}% + \bibhyperref[\cbx@lastkey]{% + \ifdef\cbx@lastprefix% + {\printtext[labelprefix]{\cbx@lastprefix}}% + {}% + \printtext[labelnumber]{\cbx@lastnumber}}}% + {}% + \setcounter{cbx@tempcnta}{0}% + \global\undef\cbx@lastprefix% + }{}% +}% + +% <<<1 + +\renewbibmacro*{name:family}[4]{% >>>1 + \ifuseprefix% + {\usebibmacro{name:delim}{#3#1}% + \usebibmacro{name:hook}{#3#1}% + \ifdefvoid{#3}{}{% + \ifcapital% + {\mkbibnameprefix{\MakeCapital{#3}}\isdot}% + {\mkbibnameprefix{#3}\isdot}% + \ifprefchar{}{\bibnamedelimc}}% + \mkbibnamefamily{#1}\isdot% + \ifdefvoid{#4}{}{\bibnamedelimd\mkbibnamesuffix{#4}\isdot}}% + {\usebibmacro{name:delim}{#1}% + \usebibmacro{name:hook}{#1}% + \mkbibnamefamily{#1}\isdot% + \ifdefvoid{#4}{}{\bibnamedelimd\mkbibnamesuffix{#4}\isdot}}}% <<<1 + +% Cite commands >>>1 + +\DeclareCiteCommand{\cite}[\mkbibparens]% >>>2 + {\usebibmacro{cite:init}% + \usebibmacro{prenote}}% + {\usebibmacro{citeindex}% + \usebibmacro{cite:comp}}% + {\iftoggle{comp}{}{\multicitedelim}}% + {\usebibmacro{cite:dump}% + \usebibmacro{postnote}}% <<<2 + +\DeclareCiteCommand{\parencite}[\mkbibparens]% >>>2 + {\usebibmacro{cite:init}% + \usebibmacro{prenote}}% + {\usebibmacro{citeindex}% + \usebibmacro{cite:comp}}% + {\iftoggle{comp}{}{\multicitedelim}}% + {\usebibmacro{cite:dump}% + \usebibmacro{postnote}}% <<<2 + +\DeclareCiteCommand{\footcite}[\mkbibfootnote]% >>>2 + {\usebibmacro{cite:init}% + \usebibmacro{prenote}}% + {\usebibmacro{citeindex}% + \usebibmacro{cite:comp}}% + {\iftoggle{comp}{}{\multicitedelim}}% + {\usebibmacro{cite:dump}% + \usebibmacro{postnote}}% <<<2 + +\DeclareCiteCommand{\footcitetext}[\mkbibfootnotetext]% >>>2 + {\usebibmacro{cite:init}% + \usebibmacro{prenote}}% + {\usebibmacro{citeindex}% + \usebibmacro{cite:comp}}% + {\iftoggle{comp}{}{\multicitedelim}}% + {\usebibmacro{cite:dump}% + \usebibmacro{postnote}}% <<<2 + +\DeclareCiteCommand{\smartcite}[\iffootnote\mkbibparens\mkbibfootnote]% >>>2 + {\usebibmacro{cite:init}% + \usebibmacro{prenote}}% + {\usebibmacro{citeindex}% + \usebibmacro{cite:comp}}% + {\iftoggle{comp}{}{\multicitedelim}}% + {\usebibmacro{cite:dump}% + \usebibmacro{postnote}}% <<<2 + +\DeclareCiteCommand{\supercite}[\mkbibsuperscript]% >>>2 + {\usebibmacro{cite:init}% + \let\multicitedelim=\supercitedelim% + \iffieldundef{prenote}% + {}% + {\BibliographyWarning{Ignoring prenote argument}}% + \iffieldundef{postnote}% + {}% + {\BibliographyWarning{Ignoring postnote argument}}}% + {\usebibmacro{citeindex}% + \usebibmacro{cite:comp}}% + {}% + {\usebibmacro{cite:dump}}% <<<2 + +% \textcite >>>2 + + \renewcommand*{\iffinalcitedelim}{% + \ifnumequal{\value{textcitecount}}{\value{textcitetotal}-1}}% + + \renewbibmacro*{textcite}{% >>>3 + \iftoggle{comp}{% + \iffieldequals{namehash}{\cbx@lasthash}% + {\usebibmacro{cite:comp}}% + {\usebibmacro{cite:dump}% + \ifbool{cbx:parens}% + {\printtext{\bibcloseparen}\global\boolfalse{cbx:parens}}% + {}% + \iffirstcitekey% + {}% + {\textcitedelim}% + \usebibmacro{cite:init}% + \printtext[bibhyperref]{% + \ifnameundef{labelname}% + {\printfield[citetitle]{labeltitle}}% + {\printnames{labelname}}% + } + \setunit*{\printdelim{namelabeldelim}}% + \printtext{\bibopenparen}\global\booltrue{cbx:parens}% + \ifnumequal{\value{citecount}}{1}% + {\usebibmacro{prenote}}% + {}% + \usebibmacro{cite:comp}% + \stepcounter{textcitecount}% + \savefield{namehash}{\cbx@lasthash}}% + }{% + \iffieldequals{namehash}{\cbx@lasthash}% + {\setunit{\multicitedelim}}% + {\printtext[bibhyperref]{% + \ifnameundef{labelname}% + {\printfield[citetitle]{labeltitle}}% + {\printnames{labelname} + }}% + \setunit*{\printdelim{namelabeldelim}}% + \printtext{\bibopenparen}\global\booltrue{cbx:parens}% + \stepcounter{textcitecount}% + \savefield{namehash}{\cbx@lasthash}}% + \ifnumequal{\value{citecount}}{1}% + {\usebibmacro{prenote}}% + {}% + \usebibmacro{cite}% + \setunit{% + \ifbool{cbx:parens}% + {\bibcloseparen\global\boolfalse{cbx:parens}}% + {}% + \textcitedelim}% + }% + }% <<<3 + + \renewbibmacro*{textcite:init}{% >>>3 + \ifnumless{\value{multicitecount}}{2}% + {\global\boolfalse{cbx:parens}% + \global\undef\cbx@lasthash}% + {\global\undef\cbx@lasthash}}% <<<3 + + \renewbibmacro*{textcite:postnote}{% >>>3 + \usebibmacro{postnote}% + \ifthenelse{\value{multicitecount}=\value{multicitetotal}}% + {\setunit{}% + \printtext{% + \ifbool{cbx:parens}% + {\bibcloseparen\global\boolfalse{cbx:parens}}% + {}}}% + {\setunit{% + \ifbool{cbx:parens}% + {\bibcloseparen\global\boolfalse{cbx:parens}}% + {}% + \textcitedelim}}}% <<<3 + + \DeclareCiteCommand{\cbx@textcite}% >>>3 + {\iftoggle{comp}{\usebibmacro{cite:init}}{\usebibmacro{textcite:init}}}% + {\usebibmacro{citeindex}% + \usebibmacro{textcite}}% + {}% + {\iftoggle{comp}{% + \usebibmacro{cite:dump}% + \usebibmacro{postnote}% + \ifbool{cbx:parens}% + {\bibcloseparen\global\boolfalse{cbx:parens}}% + {}% + }{% + \usebibmacro{textcite:postnote}% + }}% <<<3 + + \DeclareCiteCommand{\textcite}[\cbx@textcite@init\cbx@textcite]% >>>3 + {\gdef\cbx@savedkeys{}% + \citetrackerfalse% + \pagetrackerfalse% + \DeferNextCitekeyHook% + \iftoggle{comp}{\usebibmacro{cite:init}}{\usebibmacro{textcite: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 + + % textcite has nested \DeclareCiteCommand definitions for textcite and we want to use + % the normal textcite context + \DeclareDelimcontextAlias{cbx@textcite}{textcite}% + + \renewrobustcmd{\cbx@textcite@init}[2]{% + \setcounter{textcitetotal}{0}% + \setcounter{textcitecount}{0}% + \def\cbx@savedcites{#1}#2\cbx@savedcites\empty}% + + \DeclareMultiCiteCommand{\cbx@textcites}{\cbx@textcite}{}% + \DeclareMultiCiteCommand{\textcites}[\cbx@textcites@init\cbx@textcites]{\textcite}{}% + + \let\cbx@textcites@init\cbx@textcite@init% + \pretocmd{\cbx@textcites@init}{\UseNextMultiCiteHook}{}{}% + +% <<<2 + +\DeclareMultiCiteCommand{\cites}[\mkbibparens]{\cite}{\multicitedelim}% + +\DeclareMultiCiteCommand{\parencites}% + [\mkbibparens]{\parencite}{\multicitedelim}% + +\DeclareMultiCiteCommand{\smartcites}% + [\iffootnote\mkbibparens\mkbibfootnote]{\smartcite}{\multicitedelim}% + +% <<<1 + +% bibhyperref >>>1 + +\DeclareFieldFormat{citehyperref}{%% >>>2 + \DeclareFieldAlias{bibhyperref}{noformat}% Avoid nested links + \bibhyperref{#1}% +}% <<<2 + +\savebibmacro{cite}% + +\renewbibmacro*{cite}{%% >>>2 + \printtext[citehyperref]{% + \restorebibmacro{cite}% + \usebibmacro{cite}}% +}% <<<2 + +% <<<1 + +\endinput% + + +% vim: set foldmarker=\ >>>,\ <<< : + diff --git a/macros/latex/contrib/biblatex-contrib/biblatex-abnt/latex/cbx/abnt.cbx b/macros/latex/contrib/biblatex-contrib/biblatex-abnt/latex/cbx/abnt.cbx new file mode 100644 index 0000000000..7deb3e8199 --- /dev/null +++ b/macros/latex/contrib/biblatex-contrib/biblatex-abnt/latex/cbx/abnt.cbx @@ -0,0 +1,733 @@ +%% Copyright 2016 Daniel Ballester Marques +%% +%% This work may be distributed and/or modified under the +%% conditions of the LaTeX Project Public License, either version 1.3 +%% of this license or (at your option) any later version. +%% The latest version of this license is in +%% http://www.latex-project.org/lppl.txt +%% and version 1.3 or later is part of all distributions of LaTeX +%% version 2005/12/01 or later. +%% +%% This work has the LPPL maintenance status `maintained'. +%% +%% The Current Maintainer of this work is Daniel Ballester Marques. + +\ProvidesFile{abnt.cbx}% +[2018-11-17\space v3.4\space ABNT BibLaTeX citation style]% + +% Init >>>1 + +\RequireBiber[3]% +\RequireCitationStyle{authoryear-comp}% + +\RequirePackage{xparse}% +\RequirePackage{xpatch}% +\RequirePackage{expl3}% + +\ExecuteBibliographyOptions{% >>>2 + pagetracker,% + block=none,% + urldate=long,% + uniquename=minfull,% + sortcites=false,% +}% <<<2 + +\DeclareLabelname{% >>>2 + \field{shortauthor}% + \field{author}% + \field{holder}% + \field{shorteditor}% + \field{editor}% + \field{translator}% +}% <<<2 + +\newtoggle{sccite}% >>>2 +\DeclareBibliographyOption{sccite}[true]{% + \settoggle{sccite}{#1}% +}% <<<2 + +% <<<1 + +% Format >>>1 + +% Name format >>>2 + +\newcommand*{\UpperOrSCCite}[1]{% >>>3 + \iftoggle{sccite}{% + \textsc{\MakeLowercase{#1}}% + }{% + \MakeUppercase{#1}% + }% +}% <<<3 + +\newcommand*{\NormalOrSCCite}[1]{% >>>3 + \let\MakeCapital\relax% + \iftoggle{sccite}{% + \textsc{\MakeLowercase{#1}}% + }{% + #1% + }% +}% <<<3 + +% \mkbibname* >>>3 + +% \IfGivenIsInit >>>4 + +\ExplSyntaxOn% + +\NewDocumentCommand{\IfGivenIsInit}{mm}{% + \regex_match:nVTF {\w\.} \namepartgiven {#1} {#2}% +}% +\cs_generate_variant:Nn \regex_match:nnTF { nV }% + +\ExplSyntaxOff% + +% <<<4 + +\let\origmkbibnamefamily\mkbibnamefamily% +\let\origmkbibnamegiven\mkbibnamegiven% +\let\origmkbibnameprefix\mkbibnameprefix% +\let\origmkbibnamesuffix\mkbibnamesuffix% + +\renewcommand*{\mkbibnamefamily}[1]{% >>>4 + \UpperOrSCCite{#1}% +}% <<<4 +\renewcommand*{\mkbibnamegiven}[1]{% >>>4 + \ifnumequal{\value{uniquename}}{2}{% + \IfGivenIsInit{\NormalOrSCCite{#1}}{#1}% + }{% + \NormalOrSCCite{#1}% + }% +}% <<<4 +\renewcommand*{\mkbibnameprefix}[1]{% >>>4 + \ifuseprefix{% + \UpperOrSCCite{#1}% + }{% + \ifnumequal{\value{uniquename}}{2}{#1}{\NormalOrSCCite{#1}}% + }% +}% <<<4 +\renewcommand*{\mkbibnamesuffix}[1]{% >>>4 + \UpperOrSCCite{#1}% +}% <<<4 + +\AtBeginBibliography{% + \let\mkbibnamefamily\origmkbibnamefamily% + \let\mkbibnamegiven\origmkbibnamegiven% + \let\mkbibnameprefix\origmkbibnameprefix% + \let\mkbibnamesuffix\origmkbibnamesuffix% +}% + +% <<<3 + +\DeclareNameFormat{labelname}{% >>>3 + % Use family-given instead of given-family + \ifcase\value{uniquename}% + \usebibmacro{name:family}% + {\namepartfamily}% + {\namepartgiven}% + {\namepartprefix}% + {\namepartsuffix}% + \or% + \ifuseprefix% + {\usebibmacro{name:family-given}% + {\namepartfamily}% + {\namepartgiveni}% + {\namepartprefix}% + {\namepartsuffixi}}% + {\usebibmacro{name:family-given}% + {\namepartfamily}% + {\namepartgiveni}% + {\namepartprefix}% + {\namepartsuffixi}}% + \or% + \usebibmacro{name:family-given}% + {\namepartfamily}% + {\namepartgiven}% + {\namepartprefix}% + {\namepartsuffix}% + \fi% + \usebibmacro{name:andothers}}% <<<3 + +\DeclareNameFormat{textlabelname}{% >>>3 + % Use given-family instead of family-given + \ifcase\value{uniquename}% + \usebibmacro{name:family}% + {\namepartfamily}% + {\namepartgiven}% + {\namepartprefix}% + {\namepartsuffix}% + \or% + \ifuseprefix% + {\usebibmacro{name:given-family}% + {\namepartfamily}% + {\namepartgiven}% + {\namepartprefix}% + {\namepartsuffix}}% + {\usebibmacro{name:given-family}% + {\namepartfamily}% + {\namepartgiven}% + {\namepartprefix}% + {\namepartsuffix}}% + \or% + \usebibmacro{name:given-family}% + {\namepartfamily}% + {\namepartgiven}% + {\namepartprefix}% + {\namepartsuffix}% + \fi% + \usebibmacro{name:andothers}}% <<<3 + +\renewbibmacro*{name:family}[4]{% >>>3 + % Add the suffix too + \ifuseprefix% + {\usebibmacro{name:delim}{#3#1}% + \usebibmacro{name:hook}{#3#1}% + \ifdefvoid{#3}{}{% + \ifcapital% + {\mkbibnameprefix{\MakeCapital{#3}}\isdot}% + {\mkbibnameprefix{#3}\isdot}% + \ifprefchar{}{\bibnamedelimc}}% + \mkbibnamefamily{#1}\isdot% + \ifdefvoid{#4}{}{\bibnamedelimd\mkbibnamesuffix{#4}\isdot}}% + {\usebibmacro{name:delim}{#1}% + \usebibmacro{name:hook}{#1}% + \mkbibnamefamily{#1}\isdot% + \ifdefvoid{#4}{}{\bibnamedelimd\mkbibnamesuffix{#4}\isdot}}}% <<<3 + +% <<<2 + +% Field format >>>2 + +\DeclareFieldFormat{emphtitle}{\emph{#1}}% + +% Get first word >>>3 +\newcommand\FirstWord[1]{\@firstword#1 \@nil}% +\def\@firstword#1 #2\@nil{\@removecomma#1,\@nil}% +\def\@removecomma#1,#2\@nil{\@removeperiod#1.\@nil}% +\def\@removeperiod#1.#2\@nil{\@removesemicolon#1;\@nil}% +\def\@removesemicolon#1;#2\@nil{#1}% +% <<<3 + +\DeclareFieldFormat{firstword}{%% >>>3 + \iftoggle{sccite}{% + \normalfont\textsc{\MakeLowercase{\FirstWord{#1}}}\ldots\isdot% + }{% + \normalfont\MakeUppercase{\FirstWord{#1}}\ldots\isdot% + }% +}%% <<<3 + +\DeclareFieldFormat{uppercasecite}{%% >>>3 + \iftoggle{sccite}{% + \textsc{\smartlowercase{#1}}% + }{% + \smartuppercase{#1}% + }% +}% <<<3 + +% <<<2 + +% Delimiter format >>>2 + +\renewcommand*{\nameyeardelim}{\addcomma\addspace}% +\renewcommand*{\nonameyeardelim}{\addcomma\addspace}% +\renewcommand*{\multicitedelim}{\addsemicolon\addspace}% + +% <<<2 + +% <<<1 + +% Macros and commands >>>1 + +% \cite >>>2 + +\renewbibmacro*{cite}{% >>>3 + \iffieldundef{shorthand}% + {\ifthenelse{\ifnameundef{labelname}\OR\iffieldundef{labelyear}}% + {\usebibmacro{cite:label}% + \setunit{\printdelim{nonameyeardelim}}% + \usebibmacro{cite:labeldate+extradate}% + \usebibmacro{cite:reinit}}% + {\iffieldequals{namehash}{\cbx@lasthash}% + {\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}}}% + {% Use `bibhyperref` for the `labelname` + \printtext[bibhyperref]{\printnames{labelname}}% + \setunit{\printdelim{nameyeardelim}}% + \usebibmacro{cite:labeldate+extradate}% + \savefield{namehash}{\cbx@lasthash}% + \savefield{labelyear}{\cbx@lastyear}}}}% + {\usebibmacro{cite:shorthand}% + \usebibmacro{cite:reinit}}% + \setunit{\multicitedelim}}% <<<3 + +\DeclareCiteCommand{\cite}[\mkbibparens]% >>>3 + {\usebibmacro{cite:init}% + \usebibmacro{prenote}}% + {\usebibmacro{citeindex}% + \usebibmacro{cite}}% + {}% + {\usebibmacro{postnote}}% <<<3 + +\DeclareCiteCommand*{\cite}[\mkbibparens]% >>>3 + {\usebibmacro{cite:init}% + \usebibmacro{prenote}}% + {\usebibmacro{citeindex}% + \usebibmacro{citeyear}}% + {}% + {\usebibmacro{postnote}}% <<<3 + +\DeclareMultiCiteCommand{\cites}[\mkbibparens]% + {\cite}{\setunit{\multicitedelim}}% + +% <<<2 + +% \textcite >>>2 + +\renewbibmacro*{textcite}{% >>>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}\bibopenparen}% + \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}\bibopenparen}% + \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{textcite}{% >>>3 + \let\multinamedelim\multinamedelimorig% + \let\finalnamedelim\finalnamedelimorig% + \let\mkbibnamefamily\origmkbibnamefamily% + \let\mkbibnamegiven\origmkbibnamegiven% + \let\mkbibnameprefix\origmkbibnameprefix% + \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 + +\newbibmacro*{footcite}{% >>>3 + \let\multinamedelim\multinamedelimorig% + \let\finalnamedelim\finalnamedelimorig% + \let\mkbibnamefamily\origmkbibnamefamily% + \let\mkbibnamegiven\origmkbibnamegiven% + \let\mkbibnameprefix\origmkbibnameprefix% + \let\mkbibnamesuffix\origmkbibnamesuffix% + \usebibmacro{prenote}% + \ifnameundef{labelname}% + {\iffieldundef{shorthand}% + {\usebibmacro{cite:label}% + \setunit{% + \global\booltrue{cbx:parens}% + \addspace\bibopenparen}% + \usebibmacro{cite:labeldate+extradate}}% + {\usebibmacro{cite:shorthand}}}% + {\printtext[bibhyperref]{\printnames{labelname}}% + \setunit{% + \global\booltrue{cbx:parens}% + \addspace\bibopenparen}% + \usebibmacro{citeyear}}}% <<<3 + +\newbibmacro*{footcite:postnote}{% >>>3 + \iffieldundef{postnote}% + {\ifbool{cbx:parens}% + {\bibcloseparen}% + {}}% + {\ifbool{cbx:parens}% + {\setunit{\postnotedelim}}% + {\setunit{\extpostnotedelim\bibopenparen}}% + \printfield{postnote}\bibcloseparen}}% <<<3 + +\DeclareCiteCommand{\footcite}[\mkbibfootnote]% >>>3 + {\boolfalse{cbx:parens}}% + {\usebibmacro{citeindex}% + \iffirstcitekey + {\setcounter{textcitetotal}{1}} + {\stepcounter{textcitetotal}% + \ifnumequal{\value{multicitecount}}{\value{multicitetotal}}% + {\addspace\bibstring{and}}% + {\addcomma}% + \space}% + \usebibmacro{footcite}}% + {\ifbool{cbx:parens}% + {\bibcloseparen\global\boolfalse{cbx:parens}}% + {}}% + {\usebibmacro{footcite:postnote}}% <<<3 + +\DeclareMultiCiteCommand{\footcites}[\mkbibfootnote]{\footcite}{}% + +% <<<2 + +% \citetitle >>>2 + +% \citetitle is pretty much a copy of authoryear-comp's \textcite that uses +% labeltitle instead of labelname + +\newbibmacro*{citetitle}{% >>>3 + \printtext[bibhyperref]{\printfield[labeltitle]{labeltitle}}% + \setunit{\global\booltrue{cbx:parens}\addspace\bibopenparen}% + \ifnumequal{\value{citecount}}{1}{\usebibmacro{prenote}}{}% + \iffieldundef{shorthand}{% + \usebibmacro{cite:labeldate+extradate}% + }{% + \usebibmacro{cite:shorthand}% + }% + \stepcounter{textcitecount}% + \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 + +\DeclareCiteCommand{\cbx@citetitle}% >>>3 + {\usebibmacro{cite:init}}% + {\usebibmacro{citeindex}% + \usebibmacro{citetitle}}% + {}% + {\usebibmacro{textcite:postnote}}% <<<3 + +\DeclareCiteCommand{\citetitle}[\cbx@textcite@init\cbx@citetitle]% >>>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 + +% \apud >>>2 + +\newbibmacro*{apud}{% >>>3 + \iffieldundef{shorthand}% + {\ifthenelse{\ifnameundef{labelname}\OR\iffieldundef{labelyear}}% + {\usebibmacro{cite:label}% + \setunit{\printdelim{nonameyeardelim}}% + \usebibmacro{cite:labeldate+extradate}% + \usebibmacro{cite:reinit}}% + {\iffieldequals{namehash}{\cbx@lasthash}% + {\setunit{\compcitedelim}% + \usebibmacro{cite:labeldate+extradate}}% + {\printtext[bibhyperref]{\printnames{labelname}}% + \setunit{\printdelim{nameyeardelim}}% + \usebibmacro{cite:labeldate+extradate}% + \savefield{namehash}{\cbx@lasthash}% + \savefield{labelyear}{\cbx@lastyear}}}}% + {\usebibmacro{cite:shorthand}% + \usebibmacro{cite:reinit}}% + \setunit{\multicitedelim}}% <<<3 + +\newcommand{\addapud}{%% >>>3 + \renewcommand*{\compcitedelim}{% + \ifnumequal{\value{multicitecount}}{\value{multicitetotal}}% + {\space\bibstring{apud}}% + {\addsemicolon}% + \space}% + \renewcommand*{\multicitedelim}{% + \ifnumequal{\value{multicitecount}}{\value{multicitetotal}}% + {\space\bibstring{apud}}% + {\addsemicolon}% + \space}% + \renewcommand*{\textcitedelim}{% + \ifnumequal{\value{multicitecount}}{\value{multicitetotal}}% + {\addspace\bibstring{apud}}% + {\addsemicolon}% + \space}% +}% <<<3 + +\DeclareCiteCommand{\@apud}% >>>3 + {\usebibmacro{cite:init}% + \iffieldundef{prenote}{}{% + \ifnumgreater{\value{multicitetotal}}{1}{% + \usebibmacro{prenote}% + }{% + \printfield[uppercasecite]{prenote}% + \isdot\addspace\bibstring{apud}\addspace% + }% + }% + }% + {\usebibmacro{citeindex}% + \usebibmacro{apud}}% + {\setunit{\multicitedelim}}% + {\usebibmacro{postnote}}% <<<3 + +\DeclareMultiCiteCommand{\apud}[\addapud\mkbibparens]% >>>3 + {\@apud}% + {\setunit{\multicitedelim}}% <<<3 + +\DeclareCiteCommand{\plaincite}% >>>3 + {\usebibmacro{cite:init}% + \usebibmacro{prenote}}% + {\usebibmacro{citeindex}% + \usebibmacro{cite}}% + {\multicitedelim}% + {\usebibmacro{postnote}}% <<<3 + +\DeclareCiteCommand{\citelastname}% >>>3 + {\usebibmacro{cite:init}% + \boolfalse{citetracker}% + \boolfalse{pagetracker}% + \usebibmacro{prenote}% + \let\mkbibnamefamily\origmkbibnamefamily% + \let\mkbibnamegiven\origmkbibnamegiven% + \let\mkbibnameprefix\origmkbibnameprefix% + \let\mkbibnamesuffix\origmkbibnamesuffix% + \renewcommand*{\finalnamedelim}{\addspace\bibstring{and}\addspace}% + \renewcommand*{\multinamedelim}{\addcomma\addspace}}% + {\ifciteindex% + {\indexnames{labelname}}% + {}% + \printtext[bibhyperref]{\printnames{labelname}}}% + {\multicitedelim}% + {\usebibmacro{postnote}}% <<<3 + +\NewDocumentCommand{\textapud}{o o m o o m}{%% >>>3 + \citelastname{#3}\addspace% + \mkbibparens{% + \IfNoValueTF{#2}{% + \IfNoValueTF{#1}{% + \citeyearorsh*{#3}% + }{% + \citeyearorsh*[#1]{#3}% + }% + }{% + \citeyearorsh*[#1][#2]{#3}% + }\addspace% + \IfNoValueTF{#5}{% + \IfNoValueTF{#4}{% + \plaincite[\blx@imc@bibxstring{apud}][]{#6}% + }{% + \plaincite[\blx@imc@bibxstring{apud}][#4]{#6}% + }% + }{% + \cite[\blx@imc@bibxstring{apud} #4][#5]{#6}% + }% + }% +}%% <<<3 + +% <<<2 + +\renewbibmacro*{cite:label}{%% >>>2 + \iffieldundef{label}{% + \printtext[bibhyperref]{\printfield[firstword]{labeltitle}}% + }{% + \printtext[bibhyperref]{\printfield[uppercasecite]{label}}% + }% +}% <<<2 + +\DeclareCiteCommand{\smartcite}[\mkbibparens]% >>>2 + {\usebibmacro{cite:init}% + \usebibmacro{prenote}}% + {\usebibmacro{citeindex}% + \usebibmacro{cite}}% + {}% + {\usebibmacro{postnote}}% <<<2 + +\DeclareCiteCommand{\citeauthor}[\mkbibparens]% >>>2 + {\boolfalse{citetracker}% + \boolfalse{pagetracker}% + \usebibmacro{prenote}}% + {\ifciteindex% + {\indexnames{labelname}}% + {}% + \printtext[bibhyperref]{\printnames{labelname}}}% + {\multicitedelim}% + {\usebibmacro{postnote}}% + +\DeclareCiteCommand*{\citeauthor}% + {\boolfalse{citetracker}% + \boolfalse{pagetracker}% + \usebibmacro{prenote}}% + {\ifciteindex% + {\indexnames{labelname}}% + {}% + \printtext[bibhyperref]{\printnames{labelname}}}% + {\multicitedelim}% + {\usebibmacro{postnote}}% <<<2 + +\DeclareCiteCommand{\citeyear}[\mkbibparens]% >>>2 + {\boolfalse{citetracker}% + \boolfalse{pagetracker}% + \usebibmacro{prenote}}% + {\printfield[bibhyperref]{year}}% + {\multicitedelim}% + {\usebibmacro{postnote}}% + +\DeclareCiteCommand*{\citeyear}% + {\boolfalse{citetracker}% + \boolfalse{pagetracker}% + \usebibmacro{prenote}}% + {\printfield[bibhyperref]{year}}% + {\multicitedelim}% + {\usebibmacro{postnote}}% <<<2 + +\DeclareCiteCommand*{\citeyearorsh}% + {\boolfalse{citetracker}% + \boolfalse{pagetracker}% + \usebibmacro{prenote}}% + {\iffieldundef{shorthand}{% + \printfield[bibhyperref]{year}% + }{% + \printfield[bibhyperref]{shorthand}% + }% + }% + {\multicitedelim}% + {\usebibmacro{postnote}}% <<<2 + +% <<<1 + +\endinput% + + +% vim: set foldmarker=\ >>>,\ <<< : + diff --git a/macros/latex/contrib/biblatex-contrib/biblatex-abnt/latex/lbx/american-abnt.lbx b/macros/latex/contrib/biblatex-contrib/biblatex-abnt/latex/lbx/american-abnt.lbx new file mode 100644 index 0000000000..4ebdf8ee3f --- /dev/null +++ b/macros/latex/contrib/biblatex-contrib/biblatex-abnt/latex/lbx/american-abnt.lbx @@ -0,0 +1,21 @@ +%% Copyright 2016 Daniel Ballester Marques +%% +%% This work may be distributed and/or modified under the +%% conditions of the LaTeX Project Public License, either version 1.3 +%% of this license or (at your option) any later version. +%% The latest version of this license is in +%% http://www.latex-project.org/lppl.txt +%% and version 1.3 or later is part of all distributions of LaTeX +%% version 2005/12/01 or later. +%% +%% This work has the LPPL maintenance status `maintained'. +%% +%% The Current Maintainer of this work is Daniel Ballester Marques. + +\ProvidesFile{american-abnt.lbx} +[2018-11-17\space v3.4\space ABNT BibLaTeX citation style]% + +\InheritBibliographyExtras{english-abnt} +\InheritBibliographyStrings{english-abnt} + +\endinput diff --git a/macros/latex/contrib/biblatex-contrib/biblatex-abnt/latex/lbx/australian-abnt.lbx b/macros/latex/contrib/biblatex-contrib/biblatex-abnt/latex/lbx/australian-abnt.lbx new file mode 100644 index 0000000000..5a3e9b5305 --- /dev/null +++ b/macros/latex/contrib/biblatex-contrib/biblatex-abnt/latex/lbx/australian-abnt.lbx @@ -0,0 +1,21 @@ +%% Copyright 2016 Daniel Ballester Marques +%% +%% This work may be distributed and/or modified under the +%% conditions of the LaTeX Project Public License, either version 1.3 +%% of this license or (at your option) any later version. +%% The latest version of this license is in +%% http://www.latex-project.org/lppl.txt +%% and version 1.3 or later is part of all distributions of LaTeX +%% version 2005/12/01 or later. +%% +%% This work has the LPPL maintenance status `maintained'. +%% +%% The Current Maintainer of this work is Daniel Ballester Marques. + +\ProvidesFile{australian-abnt.lbx} +[2018-11-17\space v3.4\space ABNT BibLaTeX citation style]% + +\InheritBibliographyExtras{english-abnt} +\InheritBibliographyStrings{english-abnt} + +\endinput diff --git a/macros/latex/contrib/biblatex-contrib/biblatex-abnt/latex/lbx/brazil-abnt.lbx b/macros/latex/contrib/biblatex-contrib/biblatex-abnt/latex/lbx/brazil-abnt.lbx new file mode 100644 index 0000000000..45330478f9 --- /dev/null +++ b/macros/latex/contrib/biblatex-contrib/biblatex-abnt/latex/lbx/brazil-abnt.lbx @@ -0,0 +1,21 @@ +%% Copyright 2016 Daniel Ballester Marques +%% +%% This work may be distributed and/or modified under the +%% conditions of the LaTeX Project Public License, either version 1.3 +%% of this license or (at your option) any later version. +%% The latest version of this license is in +%% http://www.latex-project.org/lppl.txt +%% and version 1.3 or later is part of all distributions of LaTeX +%% version 2005/12/01 or later. +%% +%% This work has the LPPL maintenance status `maintained'. +%% +%% The Current Maintainer of this work is Daniel Ballester Marques. + +\ProvidesFile{brazil-abnt.lbx} +[2018-11-17\space v3.4\space ABNT BibLaTeX citation style]% + +\InheritBibliographyExtras{brazilian-abnt} +\InheritBibliographyStrings{brazilian-abnt} + +\endinput diff --git a/macros/latex/contrib/biblatex-contrib/biblatex-abnt/latex/lbx/brazilian-abnt.lbx b/macros/latex/contrib/biblatex-contrib/biblatex-abnt/latex/lbx/brazilian-abnt.lbx new file mode 100644 index 0000000000..8b730ba0d5 --- /dev/null +++ b/macros/latex/contrib/biblatex-contrib/biblatex-abnt/latex/lbx/brazilian-abnt.lbx @@ -0,0 +1,387 @@ +%% Copyright 2016 Daniel Ballester Marques +%% +%% This work may be distributed and/or modified under the +%% conditions of the LaTeX Project Public License, either version 1.3 +%% of this license or (at your option) any later version. +%% The latest version of this license is in +%% http://www.latex-project.org/lppl.txt +%% and version 1.3 or later is part of all distributions of LaTeX +%% version 2005/12/01 or later. +%% +%% This work has the LPPL maintenance status `maintained'. +%% +%% The Current Maintainer of this work is Daniel Ballester Marques. + +\ProvidesFile{brazilian-abnt.lbx}% +[2018-11-17\space v3.4\space ABNT BibLaTeX citation style]% + + +% Init >>> + +\InheritBibliographyExtras{brazilian}% +\InheritBibliographyStrings{brazilian} +\DeclareBibliographyStrings{% + inherit = {brazil},% +}% + +% <<< + +% No preposition between month and year >>>1 + +\DeclareBibliographyExtras{% + \protected\def\mkbibdatelong#1#2#3{% + \iffieldundef{#3}% + {}% + {\stripzeros{\thefield{#3}}% + \iffieldundef{#2}{}{\addspace}}% + \iffieldundef{#2}% + {}% + {\mkbibmonth{\thefield{#2}}% + \iffieldundef{#1}{}{\addspace}}% + \thefield{#1}}% +}% + +% <<< + +% Publication details >>>1 + +\NewBibliographyString{% >>>2 + apud,% + sineloco,% + sinenomine,% + sheet,% + sheets,% + sheettotal,% + sheettotals,% + illustrated,% + monography,% + recensionof,% +}% <<<2 + +\DeclareBibliographyStrings{% >>>2 + apud = {{apud}{apud}},% + idem = {{idem}{id\adddot}},% + volume = {{volume}{v\adddot}},% + volumes = {{volumes}{v\adddot}},% + number = {{n\'umero}{n\adddot}},% + pages = {{p\'aginas}{p\adddot}},% + pagetotals = {{p\'aginas}{p\adddot}}, + involumes = {{in}{in}},% + in = {{in}{in}},% + inseries = {{in}{in}},% + sineloco = {{sine loco}{s\adddot l\adddot}},% + sinenomine = {{sine nomine}{s\adddot n\adddot}},% + urlfrom = {{dispon\'ivel em}{dispon\'ivel em}},% + urlseen = {{acesso em}{acesso em}},% + sheet = {{folha}{f\adddot}},% + sheets = {{folhas}{f\adddot}},% + sheettotal = {{folha}{f\adddot}},% + sheettotals = {{folhas}{f\adddot}},% + backrefpage = {{citado na p\'agina}{citado na p\adddot}},% + backrefpages = {{citado nas p\'aginas}{citado nas pp\adddot}},% + illustrated = {{ilustrado}{il\adddot}},% + monography = {{monografia}{monografia}},% + phdthesis = {{Tese (Doutorado)}{Tese (Doutorado)}},% + mathesis = {{Disserta\c{c}\~ao (Mestrado)}{Diss. (Mestrado)}},% + reprintfrom = {{separata de}{separata de}},% + recensionof = {{recens\~ao de}{recens\~ao de}},% + reviewof = {{resenha de}{resenha de}},% +}% <<<2 + +% <<<1 + +% citecounter >>>1 + +\NewBibliographyString{% >>>2 + citecountpage,% + citecountpages,% + citecountnopage,% +}% <<<2 + +\DeclareBibliographyStrings{% >>>2 + citecountpage = {{% + \ifnumgreater{\value{citecounter}}{1}{% + Citado \arabic{citecounter} vezes na p\'agina% + }{% + Citado \arabic{citecounter} vez na p\'agina% + }% + }{% + \ifnumgreater{\value{citecounter}}{1}{% + Citado \arabic{citecounter} vezes na p\'agina% + }{% + Citado \arabic{citecounter} vez na p\'agina% + }% + }},% + citecountpages = {{% + \ifnumgreater{\value{citecounter}}{1}{% + Citado \arabic{citecounter} vezes nas p\'aginas% + }{% + Citado \arabic{citecounter} vez nas p\'aginas% + }% + }{% + \ifnumgreater{\value{citecounter}}{1}{% + Citado \arabic{citecounter} vezes nas p\'aginas% + }{% + Citado \arabic{citecounter} vez nas p\'aginas% + }% + }},% + citecountnopage = {{Nenhuma cita\c{c}\~ao no texto}% + {Nenhuma cita\c{c}\~ao no texto}} +}% <<<2 + +% <<<1 + +% Languages >>>1 + +\DeclareBibliographyStrings{% + langamerican = {{vers\~ao americana}{vers\~ao americana}},% + langbrazilian = {{vers\~ao brasileira}{vers\~ao brasileira}},% + langcatalan = {{vers\~ao catal\~a}{vers\~ao catal\~a}},% + langcroatian = {{vers\~ao croata}{vers\~ao croata}},% + langczech = {{vers\~ao tcheca}{vers\~ao tcheca}},% + langdanish = {{vers\~ao dinamarquesa}{vers\~ao dinamarquesa}},% + langdutch = {{vers\~ao holandesa}{vers\~ao holandesa}},% + langenglish = {{vers\~ao inglesa}{vers\~ao inglesa}},% + langfinnish = {{vers\~ao finlandesa}{vers\~ao finlandesa}},% + langfrench = {{vers\~ao francesa}{vers\~ao francesa}},% + langgerman = {{vers\~ao alem\~a}{vers\~ao alem\~a}},% + langgreek = {{vers\~ao grega}{vers\~ao grega}},% + langitalian = {{vers\~ao italiana}{vers\~ao italiana}},% + langlatin = {{vers\~ao latina}{vers\~ao latina}},% + langnorwegian = {{vers\~ao norueguesa}{vers\~ao norueguesa}},% + langpolish = {{vers\~ao polonesa}{vers\~ao polonesa}},% + langportuguese = {{vers\~ao portuguesa}{vers\~ao portuguesa}},% + langrussian = {{vers\~ao russa}{vers\~ao russa}},% + langslovene = {{vers\~ao eslovena}{vers\~ao eslovena}},% + langspanish = {{vers\~ao espanhola}{vers\~ao espanhola}},% + langswedish = {{vers\~ao sueca}{vers\~ao sueca}},% + fromamerican = {{do original ingl\^es}{do original ingl\^es}},% + frombrazilian = {{do original portugu\^es}{do original portugu\^es}},% + fromcatalan = {{do original catal\~ao}{do original catal\~ao}},% + fromcroatian = {{do original croata}{do original croata}},% + fromczech = {{do original tcheco}{do original tcheco}},% + fromdanish = {{do original dinamarqu\^es}{do original dinamarqu\^es}},% + fromdutch = {{do original holand\^es}{do original holand\^es}},% + fromenglish = {{do original ingl\^es}{do original ingl\^es}},% + fromfinnish = {{do original finland\^es}{do original finland\^es}},% + fromfrench = {{do original franc\^es}{do original franc\^es}},% + fromgerman = {{do original alem\~ao}{do original alem\~ao}},% + fromgreek = {{do original grego}{do original grego}},% + fromitalian = {{do original italiano}{do original italiano}},% + fromlatin = {{do original em latim}{do original em latim}},% + fromnorwegian = {{do original noruegu\^es}{do original noruegu\^es}},% + frompolish = {{do original polon\^es}{do original polon\^es}},% + fromportuguese = {{do original portugu\^es}{do original portugu\^es}},% + fromrussian = {{do original russo}{do original russo}},% + fromslovene = {{do original esloveno}{do original esloveno}},% + fromspanish = {{do original espanhol}{do original espanhol}},% + fromswedish = {{do original sueco}{do original sueco}},% +}% + +% <<< + +% Roles >>>1 + +% Roles expressed as functions >>>2 + +\NewBibliographyString{% + organizer,% + organizers,% + coordinator,% + coordinators,% +}% + +\DeclareBibliographyStrings{% + editors = {{editores}{ed\adddot}},% + collaborators = {{colaboradores}{col\adddot}},% + translators = {{tradutores}{trad\adddot}},% + commentators = {{comentadores}{coment\adddot}},% + annotators = {{anotadores}{anot\adddot}},% + organizer = {{organizador}{org\adddot}},% + organizers = {{organizadores}{org\adddot}},% + coordinator = {{coordenador}{coord\adddot}},% + coordinators = {{coordenadores}{coord\adddot}},% +}% + +% <<<2 + +% Roles expressed as objects >>>2 + +\DeclareBibliographyStrings{% + withcommentator = {{coment\'ario\addcolon}{coment\'ario\addcolon}},% + withannotator = {{notas\addcolon}{notas\addcolon}},% + withintroduction = {{introdu\c{c}\~ao\addcolon}{introdu\c{c}\~ao\addcolon}},% + withforeword = {{pref\'acio\addcolon}{pref\'acio\addcolon}},% + withafterword = {{posf\'acio\addcolon}{posf\'acio\addcolon}},% +}% + +% <<<2 + +% Roles expressed as actions >>>2 + +\NewBibliographyString{% >>>3 + byorganizer,% + byorganizerfo,% + bytechrev,% + byupdater,% + byupdateran,% + byphotographer,% + byartdir,% + byrecorder,% + byinterviewer,% + bygenorg,% + bygenorgfo,% + bycoordinator,% + bycoeditor,% + bydirector,% + bygendir,% + byproducer,% + byscreenwriter,% + byinterpreter,% + byillustrator,% + bytechrev,% +}% <<<3 + +\DeclareBibliographyStrings{% >>>3 + bycoeditor = {{co-edi\c{c}\~ao\addcolon}% + {co-edi\c{c}\~ao\addcolon}},% + bydirector = {{dire\c{c}\~ao\addcolon}% + {dire\c{c}\~ao\addcolon}},% + bygendir = {{dire\c{c}\~ao geral\addcolon}% + {dire\c{c}\~ao geral\addcolon}},% + bycoordinator = {{coordena\c{c}\~ao\addcolon}% + {coordena\c{c}\~ao\addcolon}},% + byproducer = {{produ\c{c}\~ao\addcolon}% + {produ\c{c}\~ao\addcolon}},% + byscreenwriter = {{roteiro\addcolon}% + {roteiro\addcolon}},% + byinterpreter = {{interpreta\c{c}\~ao\addcolon}% + {interpreta\c{c}\~ao\addcolon}},% + byillustrator = {{ilustra\c{c}\~oes\addcolon}% + {ilustra\c{c}\~oes\addcolon}},% + byorganizer = {{organiza\c{c}\~ao\addcolon}% + {organiza\c{c}\~ao\addcolon}},% + bytechrev = {{revis\~ao t\'ecnica\addcolon}% + {revis\~ao t\'ecnica\addcolon}},% + byartdir = {{dire\c{c}\~ao art\'istica\addcolon}% + {dire\c{c}\~ao art\'istica\addcolon}},% + byinterviewer = {{entrevista por}% + {entrevista por}},% + byrecorder = {{grava\c{c}\~ao\addcolon}% + {grava\c{c}\~ao\addcolon}},% + byphotographer = {{fotografia\addcolon}% + {fotografia\addcolon}},% + bygenorg = {{organiza\c{c}\~ao geral\addcolon}% + {organiza\c{c}\~ao geral\addcolon}},% + byauthor = {{por}% + {por}},% + byeditor = {{edi\c{c}\~ao\addcolon}% + {edi\c{c}\~ao\addcolon}},% + bycompiler = {{compila\c{c}\~ao\addcolon}% + {compila\c{c}\~ao\addcolon}},% + byredactor = {{redigido por}% + {redigido por}},% + byreviser = {{revis\~ao\addcolon}% + {revis\~ao\addcolon}},% + bytechrev = {{revis\~ao t\'ecnica\addcolon}% + {revis\~ao t\'ecnica\addcolon}},% + byreviewer = {{resenha\addcolon}% + {resenha\addcolon}},% + byfounder = {{fundado por}% + {fundado por}},% + bycontinuator = {{continuado por}% + {continuado por}},% + bycollaborator = {{em colabora\c{c}\~ao com}% + {em colabora\c{c}\~ao com}},% + bytranslator = {{tradu\c{c}\~ao\addcolon}% + {tradu\c{c}\~ao\addcolon}},% + bycommentator = {{coment\'ario\addcolon}% + {coment\'ario\addcolon}},% + byannotator = {{notas\addcolon}% + {notas\addcolon}},% + byupdateran = {{atualiza\c{c}\~ao e notas\addcolon}% + {atualiza\c{c}\~ao e notas\addcolon}},% + byupdater = {{atualiza\c{c}\~ao\addcolon}% + {atualiza\c{c}\~ao\addcolon}},% + byorganizerfo = {{organiza\c{c}\~ao e pref\'acio\addcolon}% + {organiza\c{c}\~ao e pref\'acio\addcolon}},% + bygenorgfo = {{organiza\c{c}\~ao geral e pref\'acio\addcolon}% + {organiza\c{c}\~ao geral e pref\'acio\addcolon}},% + byeditortr = {{edi\c{c}\~ao e tradu\c{c}\~ao\addcolon}% + {edi\c{c}\~ao e tradu\c{c}\~ao\addcolon}},% + byeditorco = {{edi\c{c}\~ao e coment\'ario\addcolon}% + {edi\c{c}\~ao e coment\'ario\addcolon}},% + byeditoran = {{edi\c{c}\~ao e notas\addcolon}% + {edi\c{c}\~ao e notas\addcolon}},% + byeditorin = {{edi\c{c}\~ao e introdu\c{c}\~ao\addcolon}% + {edi\c{c}\~ao e introdu\c{c}\~ao\addcolon}},% + byeditorfo = {{edi\c{c}\~ao e pref\'acio\addcolon}% + {edi\c{c}\~ao e pref\'acio\addcolon}},% + byeditoraf = {{edi\c{c}\~ao e posf\'acio\addcolon}% + {edi\c{c}\~ao e posf\'acio\addcolon}},% + byeditortrco = {{edi\c{c}\~ao, tradu\c{c}\~ao e coment\'ario\addcolon}% + {edi\c{c}\~ao, tradu\c{c}\~ao e coment\'ario\addcolon}},% + byeditortran = {{edi\c{c}\~ao, tradu\c{c}\~ao e notas\addcolon}% + {edi\c{c}\~ao, tradu\c{c}\~ao e notas\addcolon}},% + byeditortrin = {{edi\c{c}\~ao, tradu\c{c}\~ao e introdu\c{c}\~ao\addcolon}% + {edi\c{c}\~ao, tradu\c{c}\~ao e introdu\c{c}\~ao\addcolon}},% + byeditortrfo = {{edi\c{c}\~ao, tradu\c{c}\~ao e pref\'acio\addcolon}% + {edi\c{c}\~ao, tradu\c{c}\~ao e pref\'acio\addcolon}},% + byeditortraf = {{edi\c{c}\~ao, tradu\c{c}\~ao e posf\'acio\addcolon}% + {edi\c{c}\~ao, tradu\c{c}\~ao e posf\'acio\addcolon}},% + byeditorcoin = {{edi\c{c}\~ao, coment\'ario e introdu\c{c}\~ao\addcolon}% + {edi\c{c}\~ao, coment\'ario e introdu\c{c}\~ao\addcolon}},% + byeditorcofo = {{edi\c{c}\~ao, coment\'ario e pref\'acio\addcolon}% + {edi\c{c}\~ao, coment\'ario e pref\'acio\addcolon}},% + byeditorcoaf = {{edi\c{c}\~ao, coment\'ario e posf\'acio\addcolon}% + {edi\c{c}\~ao, coment\'ario e posf\'acio\addcolon}},% + byeditoranin = {{edi\c{c}\~ao, introdu\c{c}\~ao e notas\addcolon}% + {edi\c{c}\~ao, introdu\c{c}\~ao e notas\addcolon}},% + byeditoranfo = {{edi\c{c}\~ao, pref\'acio e notas\addcolon}% + {edi\c{c}\~ao, pref\'acio e notas\addcolon}},% + byeditoranaf = {{edi\c{c}\~ao, posf\'acio e notas\addcolon}% + {edi\c{c}\~ao, posf\'acio e notas\addcolon}},% + byeditortrcoin = {{edi\c{c}\~ao, tradu\c{c}\~ao, coment\'ario e introdu\c{c}\~ao\addcolon}% + {edi\c{c}\~ao, tradu\c{c}\~ao, coment\'ario e introdu\c{c}\~ao\addcolon}},% + byeditortrcofo = {{edi\c{c}\~ao, tradu\c{c}\~ao, coment\'ario e pref\'acio\addcolon}% + {edi\c{c}\~ao, tradu\c{c}\~ao, coment\'ario e pref\'acio\addcolon}},% + byeditortrcoaf = {{edi\c{c}\~ao, tradu\c{c}\~ao, coment\'ario e posf\'acio\addcolon}% + {edi\c{c}\~ao, tradu\c{c}\~ao, coment\'ario e posf\'acio\addcolon}},% + byeditortranin = {{edi\c{c}\~ao, tradu\c{c}\~ao, notas e introdu\c{c}\~ao\addcolon}% + {edi\c{c}\~ao, tradu\c{c}\~ao, notas e introdu\c{c}\~ao\addcolon}},% + byeditortranfo = {{edi\c{c}\~ao, tradu\c{c}\~ao, notas e pref\'acio\addcolon}% + {edi\c{c}\~ao, tradu\c{c}\~ao, notas e pref\'acio\addcolon}},% + byeditortranaf = {{edi\c{c}\~ao, tradu\c{c}\~ao, notas e posf\'acio\addcolon}% + {edi\c{c}\~ao, tradu\c{c}\~ao, notas e posf\'acio\addcolon}},% + bytranslatorco = {{tradu\c{c}\~ao e coment\'ario\addcolon}% + {tradu\c{c}\~ao e coment\'ario\addcolon}},% + bytranslatoran = {{tradu\c{c}\~ao e notas\addcolon}% + {tradu\c{c}\~ao e notas\addcolon}},% + bytranslatorin = {{tradu\c{c}\~ao e introdu\c{c}\~ao\addcolon}% + {tradu\c{c}\~ao e introdu\c{c}\~ao\addcolon}},% + bytranslatorfo = {{tradu\c{c}\~ao e pref\'acio\addcolon}% + {tradu\c{c}\~ao e pref\'acio\addcolon}},% + bytranslatoraf = {{tradu\c{c}\~ao e posf\'acio\addcolon}% + {tradu\c{c}\~ao e posf\'acio\addcolon}},% + bytranslatorcoin = {{tradu\c{c}\~ao, coment\'ario e introdu\c{c}\~ao\addcolon}% + {tradu\c{c}\~ao, coment\'ario e introdu\c{c}\~ao\addcolon}},% + bytranslatorcofo = {{tradu\c{c}\~ao, coment\'ario e pref\'acio\addcolon}% + {tradu\c{c}\~ao, coment\'ario e pref\'acio\addcolon}},% + bytranslatorcoaf = {{tradu\c{c}\~ao, coment\'ario e posf\'acio\addcolon}% + {tradu\c{c}\~ao, coment\'ario e posf\'acio\addcolon}},% + bytranslatoranin = {{tradu\c{c}\~ao, notas e introdu\c{c}\~ao\addcolon}% + {tradu\c{c}\~ao, notas e introdu\c{c}\~ao\addcolon}},% + bytranslatoranfo = {{tradu\c{c}\~ao, notas e pref\'acio\addcolon}% + {tradu\c{c}\~ao, notas e pref\'acio\addcolon}},% + bytranslatoranaf = {{tradu\c{c}\~ao, notas e posf\'acio\addcolon}% + {tradu\c{c}\~ao, notas e posf\'acio\addcolon}},% +}% <<<3 + +% <<<2 + +% <<<1 + +\endinput% + +% vim: set foldmarker=\ >>>,\ <<< : + diff --git a/macros/latex/contrib/biblatex-contrib/biblatex-abnt/latex/lbx/british-abnt.lbx b/macros/latex/contrib/biblatex-contrib/biblatex-abnt/latex/lbx/british-abnt.lbx new file mode 100644 index 0000000000..dfa7d387b4 --- /dev/null +++ b/macros/latex/contrib/biblatex-contrib/biblatex-abnt/latex/lbx/british-abnt.lbx @@ -0,0 +1,21 @@ +%% Copyright 2016 Daniel Ballester Marques +%% +%% This work may be distributed and/or modified under the +%% conditions of the LaTeX Project Public License, either version 1.3 +%% of this license or (at your option) any later version. +%% The latest version of this license is in +%% http://www.latex-project.org/lppl.txt +%% and version 1.3 or later is part of all distributions of LaTeX +%% version 2005/12/01 or later. +%% +%% This work has the LPPL maintenance status `maintained'. +%% +%% The Current Maintainer of this work is Daniel Ballester Marques. + +\ProvidesFile{british-abnt.lbx} +[2018-11-17\space v3.4\space ABNT BibLaTeX citation style]% + +\InheritBibliographyExtras{english-abnt} +\InheritBibliographyStrings{english-abnt} + +\endinput diff --git a/macros/latex/contrib/biblatex-contrib/biblatex-abnt/latex/lbx/canadian-abnt.lbx b/macros/latex/contrib/biblatex-contrib/biblatex-abnt/latex/lbx/canadian-abnt.lbx new file mode 100644 index 0000000000..94fdd02823 --- /dev/null +++ b/macros/latex/contrib/biblatex-contrib/biblatex-abnt/latex/lbx/canadian-abnt.lbx @@ -0,0 +1,21 @@ +%% Copyright 2016 Daniel Ballester Marques +%% +%% This work may be distributed and/or modified under the +%% conditions of the LaTeX Project Public License, either version 1.3 +%% of this license or (at your option) any later version. +%% The latest version of this license is in +%% http://www.latex-project.org/lppl.txt +%% and version 1.3 or later is part of all distributions of LaTeX +%% version 2005/12/01 or later. +%% +%% This work has the LPPL maintenance status `maintained'. +%% +%% The Current Maintainer of this work is Daniel Ballester Marques. + +\ProvidesFile{canadian-abnt.lbx} +[2018-11-17\space v3.4\space ABNT BibLaTeX citation style]% + +\InheritBibliographyExtras{english-abnt} +\InheritBibliographyStrings{english-abnt} + +\endinput diff --git a/macros/latex/contrib/biblatex-contrib/biblatex-abnt/latex/lbx/english-abnt.lbx b/macros/latex/contrib/biblatex-contrib/biblatex-abnt/latex/lbx/english-abnt.lbx new file mode 100644 index 0000000000..41792e3a4e --- /dev/null +++ b/macros/latex/contrib/biblatex-contrib/biblatex-abnt/latex/lbx/english-abnt.lbx @@ -0,0 +1,184 @@ +%% Copyright 2016 Daniel Ballester Marques +%% +%% This work may be distributed and/or modified under the +%% conditions of the LaTeX Project Public License, either version 1.3 +%% of this license or (at your option) any later version. +%% The latest version of this license is in +%% http://www.latex-project.org/lppl.txt +%% and version 1.3 or later is part of all distributions of LaTeX +%% version 2005/12/01 or later. +%% +%% This work has the LPPL maintenance status `maintained'. +%% +%% The Current Maintainer of this work is Daniel Ballester Marques. +%% +%% Tradução para o espanhol de Juan-Ernesto Sepúlveda. Obrigado! + +\ProvidesFile{english-abnt.lbx}% +[2018-11-17\space v3.4\space ABNT BibLaTeX citation style]% + + +% Init >>> + +\InheritBibliographyExtras{english}% +\InheritBibliographyStrings{english} +\DeclareBibliographyStrings{% + inherit = {english},% +}% + +% <<< + +% No preposition between month and year >>>1 + +\DeclareBibliographyExtras{% + \protected\def\mkbibdatelong#1#2#3{% + \iffieldundef{#3}% + {}% + {\stripzeros{\thefield{#3}}% + \iffieldundef{#2}{}{\addspace}}% + \iffieldundef{#2}% + {}% + {\mkbibmonth{\thefield{#2}}% + \iffieldundef{#1}{}{\addspace}}% + \thefield{#1}}% +}% + +% <<< + +% Publication details >>>1 + +\NewBibliographyString{% + apud,% + sineloco,% + sinenomine,% + sheet,% + sheets,% + illustrated,% + monography,% + recensionof,% +}% + +\DeclareBibliographyStrings{% + apud = {{apud}{apud}},% + idem = {{idem}{id\adddot}},% + volume = {{volume}{v\adddot}},% + volumes = {{volumes}{v\adddot}},% + number = {{number}{n\adddot}},% + pages = {{pages}{p\adddot}},% + involumes = {{in}{in}},% + in = {{in}{in}},% + inseries = {{in}{in}},% + sineloco = {{sine loco}{s\adddot l\adddot}},% + sinenomine = {{sine nomine}{s\adddot n\adddot}},% + sheet = {{sheet}{s\adddot}},% + sheets = {{sheets}{s\adddot}},% + illustrated = {{illustrated}{il\adddot}},% + monography = {{monography}{monography}},% + recensionof = {{recension of}{recension of}},% + reviewof = {{review of}{review of}},% +}% + +% <<< + +% Roles expressed as functions >>>1 + +\NewBibliographyString{% + organizer,% + organizers,% + coordinator,% + coordinators,% +}% + +\DeclareBibliographyStrings{% + organizer = {{organizer}{org\adddot}},% + organizers = {{organizers}{org\adddot}},% + coordinator = {{coordinator}{coord\adddot}},% + coordinators = {{coordinators}{coord\adddot}},% +}% + +% <<< + +% Roles expressed as objects >>>1 + +\DeclareBibliographyStrings{% + withcommentator = {{commentary\addcolon}{commentary\addcolon}},% + withannotator = {{notes\addcolon}{notes\addcolon}},% + withintroduction = {{introduction\addcolon}{introduction\addcolon}},% + withforeword = {{foreword\addcolon}{foreword\addcolon}},% + withafterword = {{afterword\addcolon}{afterword\addcolon}},% +}% + +% <<< + +% Roles expressed as actions >>>1 + +\NewBibliographyString{% >>>2 + byorganizer,% + byorganizerfo,% + bytechrev,% + byupdater,% + byupdateran,% + byphotographer,% + byartdir,% + byrecorder,% + byinterviewer,% + bygenorg,% + bygenorgfo,% + bycoordinator,% + bycoeditor,% + bydirector,% + bygendir,% + byproducer,% + byscreenwriter,% + byinterpreter,% + byillustrator,% + bytechrev,% +}% <<< + +\DeclareBibliographyStrings{% >>>2 + byorganizer = {{organized by\addcolon}% + {organized by\addcolon}},% + byorganizerfo = {{organized, with a foreword, by\addcolon}% + {organized, with a foreword, by\addcolon}},% + bytechrev = {{technical revision by\addcolon}% + {technical revision by\addcolon}},% + byupdater = {{updated by\addcolon}% + {updated by\addcolon}},% + byupdateran = {{updated and annotated by\addcolon}% + {updated and annotated by\addcolon}},% + byphotographer = {{photography by\addcolon}% + {photography by\addcolon}},% + byartdir = {{art direction by\addcolon}% + {art direction by\addcolon}},% + byrecorder = {{recorded by\addcolon}% + {recorded by\addcolon}},% + byinterviewer = {{interviewed by\addcolon}% + {interviewed by\addcolon}},% + bygenorg = {{general organization by\addcolon}% + {general organization by\addcolon}},% + bygenorgfo = {{general organization and foreword by\addcolon}% + {general organization and foreword by\addcolon}},% + bycoordinator = {{coordinated by\addcolon}% + {coordinated by\addcolon}},% + bycoeditor = {{coedited by\addcolon}% + {coedited by\addcolon}},% + bydirector = {{directed by\addcolon}% + {directed by\addcolon}},% + bygendir = {{general direction by\addcolon}% + {general direction by\addcolon}},% + byproducer = {{produced by\addcolon}% + {produced by\addcolon}},% + byscreenwriter = {{script written by\addcolon}% + {script written by\addcolon}},% + byinterpreter = {{interpreted by\addcolon}% + {interpreted by\addcolon}},% + byillustrator = {{illustrated by\addcolon}% + {illustrated by\addcolon}},% +}% <<< + +% <<< + +\endinput% + +% vim: set foldmarker=\ >>>,\ <<< : + diff --git a/macros/latex/contrib/biblatex-contrib/biblatex-abnt/latex/lbx/portuges-abnt.lbx b/macros/latex/contrib/biblatex-contrib/biblatex-abnt/latex/lbx/portuges-abnt.lbx new file mode 100644 index 0000000000..f1ae7541c4 --- /dev/null +++ b/macros/latex/contrib/biblatex-contrib/biblatex-abnt/latex/lbx/portuges-abnt.lbx @@ -0,0 +1,21 @@ +%% Copyright 2016 Daniel Ballester Marques +%% +%% This work may be distributed and/or modified under the +%% conditions of the LaTeX Project Public License, either version 1.3 +%% of this license or (at your option) any later version. +%% The latest version of this license is in +%% http://www.latex-project.org/lppl.txt +%% and version 1.3 or later is part of all distributions of LaTeX +%% version 2005/12/01 or later. +%% +%% This work has the LPPL maintenance status `maintained'. +%% +%% The Current Maintainer of this work is Daniel Ballester Marques. + +\ProvidesFile{portuges-abnt.lbx} +[2018-11-17\space v3.4\space ABNT BibLaTeX citation style]% + +\InheritBibliographyExtras{brazilian-abnt} +\InheritBibliographyStrings{brazilian-abnt} + +\endinput diff --git a/macros/latex/contrib/biblatex-contrib/biblatex-abnt/latex/lbx/portuguese-abnt.lbx b/macros/latex/contrib/biblatex-contrib/biblatex-abnt/latex/lbx/portuguese-abnt.lbx new file mode 100644 index 0000000000..36baf6bc43 --- /dev/null +++ b/macros/latex/contrib/biblatex-contrib/biblatex-abnt/latex/lbx/portuguese-abnt.lbx @@ -0,0 +1,21 @@ +%% Copyright 2016 Daniel Ballester Marques +%% +%% This work may be distributed and/or modified under the +%% conditions of the LaTeX Project Public License, either version 1.3 +%% of this license or (at your option) any later version. +%% The latest version of this license is in +%% http://www.latex-project.org/lppl.txt +%% and version 1.3 or later is part of all distributions of LaTeX +%% version 2005/12/01 or later. +%% +%% This work has the LPPL maintenance status `maintained'. +%% +%% The Current Maintainer of this work is Daniel Ballester Marques. + +\ProvidesFile{portuguese-abnt.lbx} +[2018-11-17\space v3.4\space ABNT BibLaTeX citation style]% + +\InheritBibliographyExtras{brazilian-abnt} +\InheritBibliographyStrings{brazilian-abnt} + +\endinput diff --git a/macros/latex/contrib/biblatex-contrib/biblatex-abnt/latex/lbx/spanish-abnt.lbx b/macros/latex/contrib/biblatex-contrib/biblatex-abnt/latex/lbx/spanish-abnt.lbx new file mode 100644 index 0000000000..a1ff9ed64f --- /dev/null +++ b/macros/latex/contrib/biblatex-contrib/biblatex-abnt/latex/lbx/spanish-abnt.lbx @@ -0,0 +1,339 @@ +%% Copyright 2016 Daniel Ballester Marques +%% +%% This work may be distributed and/or modified under the +%% conditions of the LaTeX Project Public License, either version 1.3 +%% of this license or (at your option) any later version. +%% The latest version of this license is in +%% http://www.latex-project.org/lppl.txt +%% and version 1.3 or later is part of all distributions of LaTeX +%% version 2005/12/01 or later. +%% +%% This work has the LPPL maintenance status `maintained'. +%% +%% The Current Maintainer of this work is Daniel Ballester Marques. +%% +%% Tradução para o espanhol de Juan-Ernesto Sepúlveda. Obrigado! + +\ProvidesFile{spanish-abnt.lbx}% +[2018-11-17\space v3.4\space ABNT BibLaTeX citation style]% + + +% Init >>> + +\InheritBibliographyExtras{spanish}% +\InheritBibliographyStrings{spanish}% +\DeclareBibliographyStrings{% + inherit = {spanish},% +}% + +% <<< + +% No preposition between month and year >>>1 + +\DeclareBibliographyExtras{% + \protected\def\mkbibdatelong#1#2#3{% + \iffieldundef{#3}% + {}% + {\stripzeros{\thefield{#3}}% + \iffieldundef{#2}{}{\addspace}}% + \iffieldundef{#2}% + {}% + {\mkbibmonth{\thefield{#2}}% + \iffieldundef{#1}{}{\addspace}}% + \thefield{#1}}% +}% + +% <<< + +% Publication details >>>1 + +\NewBibliographyString{% + apud,% + sineloco,% + sinenomine,% + sheet,% + sheets,% + illustrated,% + monography,% + recensionof,% +}% + +\DeclareBibliographyStrings{% + apud = {{apud}{apud}},% + idem = {{idem}{id\adddot}},% + volume = {{volumen}{v\adddot}},% + volumes = {{volumenes}{v\adddot}},% + number = {{n\'umero}{n\adddot}},% + pages = {{p\'aginas}{p\adddot}},% + involumes = {{in}{in}},% + in = {{in}{in}},% + inseries = {{in}{in}},% + sineloco = {{sine loco}{s\adddot l\adddot}},% + sinenomine = {{sine nomine}{s\adddot n\adddot}},% + urlfrom = {{disponible en}{disponible en}},% + urlseen = {{acceso en}{acceso en}},% + sheet = {{hoja}{h\adddot}},% + sheets = {{hojas}{h\adddot}},% + backrefpage = {{citado en la p\'agina}{citado en la p\adddot}},% + backrefpages = {{citado en las p\'aginas}{citado en las pp\adddot}},% + illustrated = {{ilustrado}{il\adddot}},% + monography = {{monograf\'ia}{monograf\'ia}},% + phdthesis = {{Tesis (Doctorado)}{Tesis (Doctorado)}},% + mathesis = {{Tesis (Mag\'ister)}{Tesis (Mag\'ister)}},% + reprintfrom = {{separata de}{separata de}},% + recensionof = {{recensi\'on de}{recensi\'on de}},% + reviewof = {{rese\~na de}{rese\~na de}},% +}% + +% <<< + +% Languages >>>1 + +\DeclareBibliographyStrings{% + langamerican = {{versi\'on americana}{versi\'on americana}},% + langbrazilian = {{versi\'on brasile\~na}{versi\'on brasile\~na}},% + langcatalan = {{versi\'on catalana}{versi\'on catalana}},% + langcroatian = {{versi\'on croata}{versi\'on croata}},% + langczech = {{versi\'on checa}{versi\'on checa}},% + langdanish = {{versi\'on danesa}{versi\'on danesa}},% + langdutch = {{versi\'on holandesa}{versi\'on holandesa}},% + langenglish = {{versi\'on inglesa}{versi\'on inglesa}},% + langfinnish = {{versi\'on finlandesa}{versi\'on finlandesa}},% + langfrench = {{versi\'on francesa}{versi\'on francesa}},% + langgerman = {{versi\'on alemana}{versi\'on alemana}},% + langgreek = {{versi\'on griega}{versi\'on griega}},% + langitalian = {{versi\'on italiana}{versi\'on italiana}},% + langlatin = {{versi\'on latina}{versi\'on latina}},% + langnorwegian = {{versi\'on noruega}{versi\'on noruega}},% + langpolish = {{versi\'on polaca}{versi\'on polaca}},% + langportuguese = {{versi\'on portuguesa}{versi\'on portuguesa}},% + langrussian = {{versi\'on rusa}{versi\'on rusa}},% + langslovene = {{versi\'on eslovena}{versi\'on eslovena}},% + langspanish = {{versi\'on espa\~nola}{versi\'on espa\~nola}},% + langswedish = {{versi\'on sueca}{versi\'on sueca}},% + fromamerican = {{del original ingl\'es}{del original ingl\'es}},% + frombrazilian = {{del original portugu\'es}{del original portugu\'es}},% + fromcatalan = {{del original catalana}{del original catalana}},% + fromcroatian = {{del original croata}{del original croata}},% + fromczech = {{del original checo}{del original checo}},% + fromdanish = {{del original dan\'es}{del original dan\'es}},% + fromdutch = {{del original holand\'es}{del original holand\'es}},% + fromenglish = {{del original ingl\'es}{del original ingl\'es}},% + fromfinnish = {{del original finland\'es}{del original finland\'es}},% + fromfrench = {{del original franc\'es}{del original franc\'es}},% + fromgerman = {{del original alem\'an}{del original alem\'an}},% + fromgreek = {{del original griego}{del original griego}},% + fromitalian = {{del original italiano}{del original italiano}},% + fromlatin = {{del original em latin}{del original em latin}},% + fromnorwegian = {{del original noruego}{del original noruego}},% + frompolish = {{del original polaco}{del original polaco}},% + fromportuguese = {{del original portugu\'es}{del original portugu\'es}},% + fromrussian = {{del original ruso}{del original ruso}},% + fromslovene = {{del original esloveno}{del original esloveno}},% + fromspanish = {{del original espa\~nol}{del original espa\~nol}},% + fromswedish = {{del original sueco}{del original sueco}},% +}% + +% <<< + +% Roles expressed as functions >>>1 + +\NewBibliographyString{% + organizer,% + organizers,% + coordinator,% + coordinators,% +}% + +\DeclareBibliographyStrings{% + editors = {{editores}{ed\adddot}},% + collaborators = {{colaboradores}{col\adddot}},% + translators = {{traductores}{trad\adddot}},% + commentators = {{comentadores}{coment\adddot}},% + annotators = {{anotadores}{anot\adddot}},% + organizer = {{organizador}{org\adddot}},% + organizers = {{organizadores}{org\adddot}},% + coordinator = {{coordinador}{coord\adddot}},% + coordinators = {{coordinadores}{coord\adddot}},% +}% + +% <<< + +% Roles expressed as objects >>>1 + +\DeclareBibliographyStrings{% + withcommentator = {{comentario\addcolon}{comentario\addcolon}},% + withannotator = {{notas\addcolon}{notas\addcolon}},% + withintroduction = {{introducci\'on\addcolon}{introducci\'on\addcolon}},% + withforeword = {{prefacio\addcolon}{prefacio\addcolon}},% + withafterword = {{postfacio\addcolon}{postfacio\addcolon}},% +}% + +% <<< + +% Roles expressed as actions >>>1 + +\NewBibliographyString{% >>>2 + byorganizer,% + byorganizerfo,% + bytechrev,% + byupdater,% + byupdateran,% + byphotographer,% + byartdir,% + byrecorder,% + byinterviewer,% + bygenorg,% + bygenorgfo,% + bycoordinator,% + bycoeditor,% + bydirector,% + bygendir,% + byproducer,% + byscreenwriter,% + byinterpreter,% + byillustrator,% + bytechrev,% +}% <<< + +\DeclareBibliographyStrings{% >>>2 + bycoeditor = {{co-edici\'on\addcolon}% + {co-edici\'on\addcolon}},% + bydirector = {{direcci\'on\addcolon}% + {direcci\'on\addcolon}},% + bygendir = {{direcci\'on general\addcolon}% + {direcci\'on general\addcolon}},% + bycoordinator = {{coordinaci\'ono\addcolon}% + {coordinaci\'on\addcolon}},% + byproducer = {{producci\'on\addcolon}% + {producci\'on\addcolon}},% + byscreenwriter = {{gui\'on\addcolon}% + {gui\'on\addcolon}},% + byinterpreter = {{interpretaci\'on\addcolon}% + {interpretaci\'on\addcolon}},% + byillustrator = {{ilustraciones\addcolon}% + {ilustraciones\addcolon}},% + byorganizer = {{organizador\addcolon}% + {organizador\addcolon}},% + bytechrev = {{revisi\'on t\'ecnica\addcolon}% + {revisi\'on t\'ecnica\addcolon}},% + byartdir = {{direcci\'on art\'istica\addcolon}% + {direcci\'on art\'istica\addcolon}},% + byinterviewer = {{entrevista por}% + {entrevista por}},% + byrecorder = {{gravaci\'on\addcolon}% + {gravaci\'on\addcolon}},% + byphotographer = {{fotograf\'ia\addcolon}% + {fotograf\'ia\addcolon}},% + bygenorg = {{organizaci\'on general\addcolon}% + {organizaci\'on general\addcolon}},% + byauthor = {{por}% + {por}},% + byeditor = {{edici\'on\addcolon}% + {edici\'on\addcolon}},% + bycompiler = {{compilaci\'on\addcolon}% + {compilaci\'on\addcolon}},% + byredactor = {{redactado por}% + {redactado por}},% + byreviser = {{revisi\'on\addcolon}% + {revisis\'on\addcolon}},% + bytechrev = {{revisi\'on t\'ecnica\addcolon}% + {revisi\'on t\'ecnica\addcolon}},% + byreviewer = {{rese\~na\addcolon}% + {rese\~na\addcolon}},% + byfounder = {{fundado por}% + {fundado por}},% + bycontinuator = {{continuado por}% + {continuado por}},% + bycollaborator = {{en colaboraci\'on con}% + {en colaboraci\'on com}},% + bytranslator = {{traducci\'on\addcolon}% + {traducci\'ono\addcolon}},% + bycommentator = {{comentario\addcolon}% + {comentario\addcolon}},% + byannotator = {{notas\addcolon}% + {notas\addcolon}},% + byupdateran = {{actualizaci\'on y notas\addcolon}% + {actualizaci\'on y notas\addcolon}},% + byupdater = {{actualizaci\'on\addcolon}% + {actualizaci\'on\addcolon}},% + byorganizerfo = {{organizaci\'on y prefacio\addcolon}% + {organizaci\'on y prefacio\addcolon}},% + bygenorgfo = {{organizaci\'on general y prefacio\addcolon}% + {organizaci\'on general y prefacio\addcolon}},% + byeditortr = {{edici\'on y traducci\'on\addcolon}% + {edici\'on y traducci\'on\addcolon}},% + byeditorco = {{edici\'on y comentario\addcolon}% + {edici\'on y comentario\addcolon}},% + byeditoran = {{edici\'on y notas\addcolon}% + {edici\'on y notas\addcolon}},% + byeditorin = {{edici\'on y introducci\'on\addcolon}% + {edici\'on y introducci\'on\addcolon}},% + byeditorfo = {{edici\'on y prefacio\addcolon}% + {edici\'on y prefacio\addcolon}},% + byeditoraf = {{edici\'on y postfacio\addcolon}% + {edici\'on y postfacio\addcolon}},% + byeditortrco = {{edici\'on, traducci\'on y comentario\addcolon}% + {edici\'on, traducci\'on y comentario\addcolon}},% + byeditortran = {{edici\'on, traducci\'on y notas\addcolon}% + {edici\'on, traducci\'on y notas\addcolon}},% + byeditortrin = {{edici\'on, traducci\'on y introducci\'on\addcolon}% + {edici\'on, traducci\'on y introducci\'on\addcolon}},% + byeditortrfo = {{edici\'on, traducci\'on y prefacio\addcolon}% + {edici\'on, traducci\'on y prefacio\addcolon}},% + byeditortraf = {{edici\'on, traducci\'on y postfacio\addcolon}% + {edici\'on, traducci\'on y postfacio\addcolon}},% + byeditorcoin = {{edici\'on, comentario y introducci\'on\addcolon}% + {edici\'on, comentario y introducci\'on\addcolon}},% + byeditorcofo = {{edici\'on, comentario y prefacio\addcolon}% + {edici\'on, comentario y prefacio\addcolon}},% + byeditorcoaf = {{edici\'on, comentario y postfacio\addcolon}% + {edici\'on, comentario y postfacio\addcolon}},% + byeditoranin = {{edici\'on, introducci\'on y notas\addcolon}% + {edici\'on, introducci\'on y notas\addcolon}},% + byeditoranfo = {{edici\'on, prefacio y notas\addcolon}% + {edici\'on, prefacio y notas\addcolon}},% + byeditoranaf = {{edici\'on, postfacio y notas\addcolon}% + {edici\'on, postfacio y notas\addcolon}},% + byeditortrcoin = {{edici\'on, traducci\'on, comentario y introducci\'on\addcolon}% + {edici\'on, traducci\'on, comentario y introducci\'on\addcolon}},% + byeditortrcofo = {{edici\'on, traducci\'on, comentario y prefacio\addcolon}% + {edici\'on, traducci\'on, comentario y prefacio\addcolon}},% + byeditortrcoaf = {{edici\'on, traducci\'on, comentario y postfacio\addcolon}% + {edici\'on, traducci\'on, comentario y postfacio\addcolon}},% + byeditortranin = {{edici\'on, traducci\'on, notas y introducci\'on\addcolon}% + {edici\'on, traducci\'on, notas y introducci\'on\addcolon}},% + byeditortranfo = {{edici\'on, traducci\'on, notas y prefacio\addcolon}% + {edici\'on, traducci\'on, notas y prefacio\addcolon}},% + byeditortranaf = {{edici\'on, traducci\'on, notas y postfacio\addcolon}% + {edici\'on, traducci\'on, notas y postfacio\addcolon}},% + bytranslatorco = {{traducci\'on y comentario\addcolon}% + {traducci\'on y comentario\addcolon}},% + bytranslatoran = {{traducci\'on y notas\addcolon}% + {traducci\'on y notas\addcolon}},% + bytranslatorin = {{traducci\'on y introducci\'on\addcolon}% + {traducci\'on y introducci\'on\addcolon}},% + bytranslatorfo = {{traducci\'on y prefacio\addcolon}% + {traducci\'on y prefacio\addcolon}},% + bytranslatoraf = {{traducci\'on y postfacio\addcolon}% + {traducci\'on y postfacio\addcolon}},% + bytranslatorcoin = {{traducci\'on, comentario y introducci\'on\addcolon}% + {traducci\'on, comentario y introducci\'on\addcolon}},% + bytranslatorcofo = {{traducci\'on, comentario y prefacio\addcolon}% + {traducci\'on, comentario y prefacio\addcolon}},% + bytranslatorcoaf = {{traducci\'on, comentario y postfacio\addcolon}% + {traducci\'on, comentario y postfacio\addcolon}},% + bytranslatoranin = {{traducci\'on, notas y introducci\'on\addcolon}% + {traducci\'on, notas y introducci\'on\addcolon}},% + bytranslatoranfo = {{traducci\'on, notas y prefacio\addcolon}% + {traducci\'on, notas y prefacio\addcolon}},% + bytranslatoranaf = {{traducci\'on, notas y postfacio\addcolon}% + {traducci\'on, notas y postfacio\addcolon}},% +}% <<< + +% <<< + +\endinput% + +% vim: set foldmarker=\ >>>,\ <<< : + -- cgit v1.2.3