26

I am getting an error when I use BibTeX bibliography. I used \usepackage{natbib} and \usepackage{cite} when I compile the file, I get the error

Paragraph ended before \@citex was complete

and part of the paragraph located after the citation disappears also, I get the message

I suspect you've forgotten a '}', causing me to apply this control sequence to too much text

I am using IEEE tran style with the commands:

\bibliography{library}
\bibliographystyle{IEEEtran}

can you help me with this ?

I have just downloaded a new IEEE template, but the same problem appears.

31

The cite and natbib packages are both redefining the same things and are not compatible with each other: you need to choose one or the other. As you are using the IEEEtran (a natbib style) it seems likely you'll want something like

\usepackage[numbers,super]{natbib}

and simply remove \usepackage{cite}. (One can also load natbib with no options and set the style using \setcitestyle{numbers,super}.)

  • 2
    Thank you.Now the error disappeared when I removed \usepackage{cite}, and using natbib as you suggested. But, I am getting the citation as a superscript question mark, and the paper title is not shown in the References. Is there any additional thing I can do ? – user3780383 Dec 5 '16 at 2:24
  • @user3780383 If you don't want superscript references, don't use the super keyword. The inclusion of the article title is down to the BibTeX style (IEEEtran), not related to using cite or natbib. – Joseph Wright Dec 5 '16 at 6:48
  • removing the \usepackage{cite} worked for me while using the ACM-Reference-Format – João Quintas Mar 1 '19 at 18:19
2

I had this error:

Paragraph ended before \@citex was complete

There was simply a brace } missed and LaTeX considers the whole paragraph as a BibTeX key citation!!

  • 1
    Welcome to TeX.SX! Where was the missing brace (in the bib or tex file, affecting which macro)? Could you add a snippet from the example which affected you? Given } are required all over the place in TeX, it's helpful to associate the missing brace with other commands to narrow down the search. – Dai Bowen Feb 20 '17 at 10:54
1

Beyond removing \usepackage{cite}, you can use

\biboptions{sort&compress}

to preserve the same functionality.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.