## LaTeX forum ⇒ General ⇒ Error in using package Topic is solved

LaTeX specific issues not fitting into one of the other forums of this category.
Alirezakn
Posts: 3
Joined: Sat Nov 17, 2018 8:23 am

### Error in using package

Hi, I want to write an essay in Elsevier Journal. I use the template of journal but when I want to add any package to this template, it cause error. the error is shown below

Error:
Runaway argument?
]{hites2006persistent}. In order to deal with long-term climate chang\ETC.
! Paragraph ended before \@citex was complete.
\par
l.60

?
My code:
\documentclass[5p]{elsarticle} \usepackage{lineno,hyperref}\modulolinenumbers[10]\usepackage{cite} \journal{Journal of \LaTeX\ Templates} %% Elsevier bibliography styles  %% Elsevier LaTeX' style\bibliographystyle{elsarticle-num}%\bibliographystyle{IEEEtran}%%%%%%%%%%%%%%%%%%%%%%% \begin{document}\begin{frontmatter} \title{Elsevier \LaTeX\ template\tnoteref{mytitlenote}}\tnotetext[mytitlenote]{Fully documented templates are available in the elsarticle package on\href{http://www.ctan.org/tex-archive/macros/latex/contrib/elsarticle}{CTAN}.} %% Group authors per affiliation:\author{Alireza Abedin\fnref{myfootnote}}\address{Radarweg 29, Amsterdam}\fntext[myfootnote]{Since 1880.} %% or include affiliations in footnotes:\author[mymainaddress,mysecondaryaddress]{Elsevier Inc}\ead[url]{www.elsevier.com} \author[mysecondaryaddress]{Global Customer Service\corref{mycorrespondingauthor}}\cortext[mycorrespondingauthor]{Corresponding author}\ead{support@elsevier.com} \address[mymainaddress]{1600 John F Kennedy Boulevard, Philadelphia}\address[mysecondaryaddress]{360 Park Avenue South, New York} \begin{abstract}This template helps you to create a properly formatted \LaTeX\ manuscript.\end{abstract} \begin{keyword}\texttt{elsarticle.cls}\sep \LaTeX\sep Elsevier \sep template\MSC[2010] 00-01\sep  99-00\end{keyword} \end{frontmatter} \linenumbers \section{Introduction}Greenhouse gas emissions in the atmosphere from burning down fossil fuels are a serious threat to the global environment and climate change \cite{hites2006persistent}. In order to deal with long-termclimate change by reducing reliance on oil, future energy sources should be renewable and non-polluting\cite{lund2007renewable}. The expansion of renewable resources is limited due to their frequency and theirunpredictable nature. Increase in the distribution of Renewable energy sources and simultaneously adaptedproduction with demand, practically without the use of energy storage systems is not possible\cite{hall2008energy, hadjipaschalis2009overview, dell2001energy}. The main challenge for storage systems isto achieve energy savings  as much as needed and when Which needs to be available as soon as possible.Many studies have led to hydrogen fuel to achieve a clean fuel and a credible solution to replace fossil fuels.Steam Methane reforming (SMR) is the most common industrial method for the production of hydrogen\cite{holladay2009overview}, an endothermic reaction with two steps of high and low temperature and finallya purification step \cite{gallucci2013recent}.\section*{References} \bibliography{ref} \end{document}
Last edited by Stefan Kottwitz on Sat Nov 17, 2018 1:02 pm, edited 1 time in total.

Stefan Kottwitz
Posts: 9285
Joined: Mon Mar 10, 2008 9:44 pm
It's just the cite package here, that doesn't work with elsarticle.

If you don't write \usepackage{cite} then the problem doesn't appear.

Stefan

Stefan Kottwitz
Posts: 9285
Joined: Mon Mar 10, 2008 9:44 pm
Instead of loading \cite, use

\biboptions{sort&compress}`

Stefan