GeneralError in using package

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

Error in using package

Post by Alirezakn »

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.
<to be read again>
\par
l.60

?
My code:

Code: Select all

\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-term
climate 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 their
unpredictable nature. Increase in the distribution of Renewable energy sources and simultaneously adapted
production with demand, practically without the use of energy storage systems is not possible
\cite{hall2008energy, hadjipaschalis2009overview, dell2001energy}. The main challenge for storage systems is
to 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 finally
a 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.

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p

Stefan Kottwitz
Site Admin
Posts: 10335
Joined: Mon Mar 10, 2008 9:44 pm

Error in using package

Post by Stefan Kottwitz »

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
LaTeX.org admin
User avatar
Stefan Kottwitz
Site Admin
Posts: 10335
Joined: Mon Mar 10, 2008 9:44 pm

Error in using package

Post by Stefan Kottwitz »

Instead of loading \cite, use

\biboptions{sort&compress}

Stefan
LaTeX.org admin
Post Reply