7
I’m running abntex2 to compose a graduation work.
I follow the canonical model distributed by abntex2 here with some modifications to produce my work.
The main modification is the separation of the model into several smaller files. When compiling my document, I receive the following stream interruption, requesting a 'enter', which I do not know how to 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 solved). My question relates to that passage:
bibitemlist
! Illegal parameter number in definition of \Hy@tempa.
<to be read again>
E
l.49
I imagine it has something to do with the hyperref inside the Bibtex, but I can’t figure out exactly what it is, since I have multiple files and I don’t know what this 49 line is on. In addition, changes in the file modify the value of this line, which was already 81, for example.
Question
What can cause this error, and how to correct?
Updating:
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 the "isolate" 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
as they may be relevant to the problem.
Please avoid long discussions in the comments; your talk was moved to the chat
– Maniero