LaTeX forum ⇒ GeneralError in using package Topic is solved

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

Error in using package

Postby Alirezakn » Sat Nov 17, 2018 8:33 am

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

Runaway argument?
]{hites2006persistent}. In order to deal with long-term climate chang\ETC.
! Paragraph ended before \@citex was complete.
<to be read again>

My code:
Code: [Select all] [Expand/Collapse] [Download] ({untitled.tex})
  1. \documentclass[5p]{elsarticle}
  3. \usepackage{lineno,hyperref}
  4. \modulolinenumbers[10]
  5. \usepackage{cite}
  7. \journal{Journal of \LaTeX\ Templates}
  9. %% Elsevier bibliography styles
  12. %% `Elsevier LaTeX' style
  13. \bibliographystyle{elsarticle-num}
  14. %\bibliographystyle{IEEEtran}
  15. %%%%%%%%%%%%%%%%%%%%%%%
  17. \begin{document}
  18. \begin{frontmatter}
  20. \title{Elsevier \LaTeX\ template\tnoteref{mytitlenote}}
  21. \tnotetext[mytitlenote]{Fully documented templates are available in the elsarticle package on
  22. \href{}{CTAN}.}
  24. %% Group authors per affiliation:
  25. \author{Alireza Abedin\fnref{myfootnote}}
  26. \address{Radarweg 29, Amsterdam}
  27. \fntext[myfootnote]{Since 1880.}
  29. %% or include affiliations in footnotes:
  30. \author[mymainaddress,mysecondaryaddress]{Elsevier Inc}
  31. \ead[url]{}
  33. \author[mysecondaryaddress]{Global Customer Service\corref{mycorrespondingauthor}}
  34. \cortext[mycorrespondingauthor]{Corresponding author}
  35. \ead{}
  37. \address[mymainaddress]{1600 John F Kennedy Boulevard, Philadelphia}
  38. \address[mysecondaryaddress]{360 Park Avenue South, New York}
  40. \begin{abstract}
  41. This template helps you to create a properly formatted \LaTeX\ manuscript.
  42. \end{abstract}
  44. \begin{keyword}
  45. \texttt{elsarticle.cls}\sep \LaTeX\sep Elsevier \sep template
  46. \MSC[2010] 00-01\sep 99-00
  47. \end{keyword}
  49. \end{frontmatter}
  51. \linenumbers
  53. \section{Introduction}
  54. Greenhouse gas emissions in the atmosphere from burning down fossil fuels are a serious threat
  55. to the global environment and climate change \cite{hites2006persistent}. In order to deal with long-term
  56. climate change by reducing reliance on oil, future energy sources should be renewable and non-polluting
  57. \cite{lund2007renewable}. The expansion of renewable resources is limited due to their frequency and their
  58. unpredictable nature. Increase in the distribution of Renewable energy sources and simultaneously adapted
  59. production with demand, practically without the use of energy storage systems is not possible
  60. \cite{hall2008energy, hadjipaschalis2009overview, dell2001energy}. The main challenge for storage systems is
  61. to achieve energy savings as much as needed and when Which needs to be available as soon as possible.
  62. Many studies have led to hydrogen fuel to achieve a clean fuel and a credible solution to replace fossil fuels.
  63. Steam Methane reforming (SMR) is the most common industrial method for the production of hydrogen
  64. \cite{holladay2009overview}, an endothermic reaction with two steps of high and low temperature and finally
  65. a purification step \cite{gallucci2013recent}.
  66. \section*{References}
  68. \bibliography{ref}
  70. \end{document}
Last edited by Stefan Kottwitz on Sat Nov 17, 2018 1:02 pm, edited 1 time in total.

User avatar
Stefan Kottwitz
Site Admin
Posts: 9567
Joined: Mon Mar 10, 2008 9:44 pm

Postby Stefan Kottwitz » Sat Nov 17, 2018 1:08 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 admin

User avatar
Stefan Kottwitz
Site Admin
Posts: 9567
Joined: Mon Mar 10, 2008 9:44 pm

Postby Stefan Kottwitz » Sat Nov 17, 2018 10:36 pm

Instead of loading \cite, use


Stefan admin

Return to “General”

Who is online

Users browsing this forum: No registered users and 7 guests