1

since i want that multiple citations look like [1-5], instead of [1,2,3,4,5] i did the following thing as suggested here "http://texblog.org/2007/05/28/mulitple-reference-citation/"

I load the package \usepackage{cite}, but now i get a lot of error messages:

Paragraph ended before \@citex was complete.

for every empty line in the editor (I do this to get a better overview).

Example:

@misc{A01,

author = {Jones, A. and James, C., and Giannini, J.},

year = {2001},

title = {Title of journal article},

}


\documentclass[preprint,12pt]{elsarticle}
\usepackage{cite}
\usepackage{amssymb}

\usepackage{lineno}
\usepackage{graphicx}
\usepackage{amsmath}
\usepackage{caption}
\usepackage{subcaption}

\journal{Energy}



\begin{document}
lasjfsjlf


sjflsjdlfj \cite{A01}

\bibliographystyle{ieeetr}
\end{document}

Hope someone can help me; thank you

  • 1
    Can you please include a minimal working example exhibiting this error? – Emma Oct 19 '16 at 16:08
  • Added an example --> perhaps \citep works? – Math_reald Oct 19 '16 at 16:57
  • It seems elsarticle is not compatible with the cite package. Fortunately, elsarticle itself provides the functionality you want. In your example \citep still works because it is provided by elsarticle and not cite, whereas \cite is provided by elsarticle and then incompatibly overwritten by cite. – Emma Oct 19 '16 at 18:57

Your Answer

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

Browse other questions tagged or ask your own question.