abntex2 compile error

7

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.

    
asked by anonymous 19.12.2013 / 20:53

1 answer

5

Have you checked if any of your URLs (including those of your references) have a special LaTeX character? It looks like an old error when URLs contain # , for example.

I would look in your BibTeX reference file for urls that contain #. If this is the case, you can only change them to \# .

If you have few references used in the text, you could also comment on each occurrence to find out what the problem is.

You can have a clue where this reference is, seeing that the error appears between

  

[18] (./main.bbl (./main.brf)

and

  

[19]

That is, after the 18th page was generated and before the 19th, then it is probably one of the references that appear on the 19th page generated. Since you can only generate your text when you comment on package inserts for citations, you may also have to look at some pages before or after the 19th when you run the annotated version. I say 19th page because that's not necessarily the 19th page. It depends on whether you use Roman numeral for the pre-textual part and so on.

An example of someone who has experienced a similar error message:

link

    
03.02.2014 / 05:23