TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

This is what I write with latex:




but when I compile it, it gives me an error:

!Latex error: something's wrong-- perhaps a missing \item
share|improve this question

Are you using BibTeX? If so you need to remove the \begin{bibliography} and \end{bibliography}. i.e.


\bibliographystyle{unsrt} % <- Choose a style. Your document class may do this for you.


You will need to run pdflatex (or whatever LaTeX variant you use), then bibtex and then pdflatex twice more to get everything settled.

If you are using direct input from a file (this is very unlikely), then use \input{my-biblio} rather than \bibliography{...} and keep the \begin{bibliography} and \end{bibliography}.

Journals commonly ask for your bibliography to be placed directly in the LaTeX document. Perhaps this is where the confusion arose. When you need to do this, use the code above, and when you send it to the journal, copy the contents of the .bbl file and replace the \bibliographystyle{...} and \bibliography{...} lines with the content.

share|improve this answer
Yes I'm using bibTex, I have tried what you said too, and it works, but I want the references to be in the order of their appearance, so I tried \bibliographystyle{urst} or {IEEEtr} but none of them changed the order of references! – anna Mar 7 '12 at 15:25
unsrt (note the spelling, it's wrong in your comment but I'm guessing not in your document) should do what you want, so I'm not sure what's going on there. – qubyte Mar 7 '12 at 15:35
It could be that the document class itself is causing the problem. What happens with unsrt and, say, \documentckass{article}? – qubyte Mar 7 '12 at 15:37
I'm looking at the style file you're using. It declares the plainnat bibliography style. If you are sending the document to ISERC 2012, then do not try to change it. They obviously want it this way. If you really want it to change, at the bottom of iserc.cls (the class file they gave you) change \bibliographystyle{plainnat} to \bibliographystyle{unsrtnat}. – qubyte Mar 7 '12 at 15:51
All I can do is suggest you delete the .aux file and the latex, bibtex, latex, latex sequence again. Make sure that you have save the changes in the iserc.cls file and that it's in the same directory as your .tex file before you do. – qubyte Mar 7 '12 at 16:53

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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