I'm running abntex2 to compose a final grade paper.
I follow the canonical template distributed by abntex2 here with some modifications to the production of my work.
The main modification is the separation of the template into several smaller files. When compiling my document, I get the following interrupt flow, requesting an 'enter', which I can not interpret:
LaTeX Warning: Citation 'boslaugh2008' on page 13 undefined on input line 128.
[13]) [14] [15
] [16] [17
] [18] (./main.bbl (./main.brf)
\tf@brf=\write5
\openout5 = 'main.brf'.
bibitemlist
! Illegal parameter number in definition of \Hy@tempa.
<to be read again>
E
l.49
?
! Illegal parameter number in definition of \Hy@tempa.
<to be read again>
E
l.49
?
[19
])
No file main.ind.
I know that the first line refers to a reference included and not yet indexed by bibtex (this has already been resolved). My question relates to this excerpt:
bibitemlist
! Illegal parameter number in definition of \Hy@tempa.
<to be read again>
E
l.49
I imagine it has something to do with hyperref inside bibtex, but I can not figure out exactly what it is, since I have multiple files and I do not know which line 49 is displayed. In addition, changes to the file modify the value of this line, which was already 81, for example.
Question
What can cause this error, and how to fix it?
Update:
I was able to isolate the problem, which appears in two lines of import
, specific to abntex2cite:
\usepackage[brazilian,hyperpageref]{backref} % Paginas com as citações na bibl
\usepackage[num]{abntex2cite} % Citações padrão ABNT
% ---
% Configurações do pacote backref
% Usado sem a opção hyperpageref de backref
\renewcommand{\backrefpagesname}{Citado na(s) página(s):~}
% Texto padrão antes do número das páginas
\renewcommand{\backref}{}
% Define os textos da citação
\renewcommand*{\backrefalt}[4]{
\ifcase #1 %
Nenhuma citação no texto.%
\or
Citado na página #2.%
\else
Citado #1 vezes nas páginas #2.%
\fi}%
I understand that "isolating" here is not very specific, but if we comment on the two lines of \usepackage
above, the problem stops appearing.
I put the code that follows those two \usepackage
because I understand that they might be relevant to the problem.