abntex2 compilation error

Asked

Viewed 3,109 times

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.

1 answer

6


Have you checked if any of your Urls (including your references) have a special Latex character? Looks like an old error when Urls contain #, for example.

I would search your Bibtex reference file for urls that contain #. If so, just exchange them for \#.

If you have few references used in the text, you could also comment on each occurrence to find out what the problematic 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, it’s after the 18th page was generated and before the 19th, so it’s probably one of the references that appear on the 19th page generated. Since you can only generate your text when commenting on the package inclusions related to citations, it is possible that you may also have to look at a few pages before or after the 19th when running the commented version. I say 19th page because that’s not necessarily page number 19. It’s up to you to use Roman numerals for the pre-textual part and other things.

An example of someone who has passed a similar error message (in English):

http://mail-archives.apache.org/mod_mbox/httpd-docs/200306.mbox/%[email protected]%3E

  • I did two things, following your suggestion: I found two # within Urls, which I escaped with \#. After that, I commented one by one on one of my 23 quotations, and the error remains. Thinking that the error could be happening in more than one place at the same time (despite the only error message) I commented half of the file alternately. The error remains.

  • 2

    The error remains until executed bibtex arquivo for the system to update the references that will be used in the composition of the document. You are correct, Ailton! Answer accepted!

Browser other questions tagged

You are not signed in. Login or sign up in order to post.