Paragraph ended before \@citex was complete
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\listfiles
\documentclass[review]{elsarticle}
\usepackage[latin1]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{lmodern}
\usepackage{cite}
\begin{document}
Few studies have been dedicated to bla bla bla ~\cite{Myref1,Myref2,Myref3}
so far.
\bibliographystyle{elsarticle-num}
\bibliography{/home/myself/mybibfile}
\end{document}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
with
*File List*
elsarticle.cls 2009/09/17, 1.20b: Elsevier Ltd
article.cls 2007/10/19 v1.4h Standard LaTeX document class
cite.sty 2009/08/29 v 5.2
Any help or tip will be welcomed
--
Dominique RICHARD
elsarticle uses natbib, so you shouldn't be loading the cite package.
--
Joseph Wright
But my problem remains, I would like to get [1-5] instead of [1,2,3,4,5] in
the text.
So I had a (maybe too) quick look at the natbib doc and tried :
\setcitestyle{compress}
(since the nat bib package is already loaded by elsarticle, I suppose that I
should not use \usepackage[compress]{natbib})
but this did not give the expected result
any clue ?
--
Dominique RICHARD
According to the elsarticle documentation, you should use
\biboptions{sort&compress}
(see Section 4, "Usage").
--
Joseph Wright
Try \biboptions{}. Some template from Elsevier gives some hints, see
below.
Erwin
%% natbib.sty is loaded by default. However, natbib options can be
%% provided with \biboptions{...} command. Following options are
%% valid:
%% round - round parentheses are used (default)
%% square - square brackets are used [option]
%% curly - curly braces are used {option}
%% angle - angle brackets are used <option>
%% semicolon - multiple citations separated by semi-colon
%% colon - same as semicolon, an earlier confusion
%% comma - separated by comma
%% numbers- selects numerical citations
%% super - numerical citations as superscripts
%% sort - sorts multiple citations according to order in ref.
list
%% sort&compress - like sort, but also compresses numerical
citations
%% compress - compresses without sorting
%%
%% \biboptions{comma,round}
> According to the elsarticle documentation, you should use
> \biboptions{sort&compress}
> (see Section 4, "Usage").
Thank you Joseph and Erwin,
It works !
I had a look at the wrong doc (natbib instead of elsarticle)
--
Dominique RICHARD