abntex / biblatex-abnt

:books: Estilo para BibLaTeX compatível com as normas da ABNT
126 stars 27 forks source link

Como desativar a substituição de autores repetidos por _______ 6 underscores? #43

Closed evandrocoan closed 5 years ago

evandrocoan commented 5 years ago

Minha universidade aboliu essa regra e agora autores repedidos não devem mais ser substituidos por 6 underscores:

  1. http://portal.bu.ufsc.br/files/2013/10/Altera%C3%A7%C3%B5es-6023.png
  2. image

Código de exemplo para reproduzir a imagem acima:

\RequirePackage{filecontents}

\begin{filecontents*}{references.bib}
@book{commandLineInterface,
    title         = {The Command Line Interface. In: Practical C++ Design},
    author        = {Adam B. Singer},
    year          = {2017},
    pages         = {97-113},
    isbn          = {978-1-4842-3056-5},
    doi           = {10.1007/978-1-4842-3057-2\_5},
    publisher     = {Apress, Berkeley, CA},
    url           = {https://www.researchgate.net/publication/320120365_The_Command_Line_Interface},
    urlaccessdate = {2017-10-10}
}

@book{commandLineInterface2,
    title         = {The Command Line Interface. In: Practical C++ Design},
    author        = {Adam B. Singer},
    year          = {2017},
    pages         = {97-113},
    isbn          = {978-1-4842-3056-5},
    doi           = {10.1007/978-1-4842-3057-2\_5},
    publisher     = {Apress, Berkeley, CA},
    url           = {https://www.researchgate.net/publication/320120365_The_Command_Line_Interface},
    urlaccessdate = {2017-10-10}
}
\end{filecontents*}

\PassOptionsToPackage{main=brazil,english}{babel}
\documentclass[10pt,a5paper,twoside]{abntex2}
\pdfstringdefDisableCommands{\let\uppercase\relax}

\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}

\usepackage[style=abnt,backend=biber,backref=true]{biblatex}
\addbibresource{references.bib}

\usepackage{csquotes}
\hypersetup{colorlinks=true}

\begin{document}

    Citing \cite{commandLineInterface}
    Citing \cite{commandLineInterface2}

    \printbibliography

\end{document}
evandrocoan commented 5 years ago

Resolvido! Bastava adicionar repeatfields=true nas opções do biblatex:

\usepackage[style=abnt,backend=biber,backref=true,repeatfields=true]{biblatex}

As opções estão no capílo 4 da documentação:

  1. https://github.com/abntex/biblatex-abnt/raw/master/doc/biblatex-abnt.pdf