Text Formatting ⇒ File ended while scanning use of \@citex
File ended while scanning use of \@citex
I am having the following error message when trying to compile my code
File ended while scanning use of \@citex suspect you have forgotten a } , causing meto read past where you wanted me to stop.
Could you please help with this.
Another question please
Elsevier site says that (The article should preferably be written using Elsevier's document class 'elsarticle')
What dose that mean? which document class I need to use?
Many thanks in advance.
Nadia
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
File ended while scanning use of \@citex
welcome to the board!
Possibly you forgot a closing brace }. Show the code, then we would know. You could remove non-relevant code and text in the copy you post.
Regarding the second question, have look here: Elsarticle LaTeX document class. I installed TeX Live, it already contains elsarticle.
Stefan
File ended while scanning use of \@citex
welcome to the LaTeX community!
This error could have any number of causes. We will need to see some code to give you an answer. Please provide us with aNadia wrote:I am having the following error message when trying to compile my code
File ended while scanning use of \@citex suspect you have forgotten a } , causing meto read past where you wanted me to stop.
Could you please help with this.

Like it says: use the class »elsarticle«:Nadia wrote:Elsevier site says that (The article should preferably be written using Elsevier's document class 'elsarticle')
What dose that mean? which document class I need to use?
Code: Select all
\documentclass{elsarticle}
...

Regards
PS: Pfff, Stefan beat me again

- Stefan Kottwitz
- Site Admin
- Posts: 10335
- Joined: Mon Mar 10, 2008 9:44 pm
Re: File ended while scanning use of \@citex


Stefan
File ended while scanning use of \@citex
The following link has helped a lot, it is perfect for elsarticle.cls document class.
Best regards,
Nadia
http://cdn.elsevier.com/assets/pdf_file ... elsdoc.pdf
File ended while scanning use of \@citex
Got another problem with elsarticle.cls style which is the title 'References' does not print out when generate the pdf file. I mean, the references list is showed up without the heading 'references'. Could you please help with this.
Many thanks,
Nadia
- Stefan Kottwitz
- Site Admin
- Posts: 10335
- Joined: Mon Mar 10, 2008 9:44 pm
File ended while scanning use of \@citex
perhaps post this as a new topic together with a

Stefan
File ended while scanning use of \@citex
Code: Select all
\documentclass[final,3p,times,twocolumn]{elsarticle}
\usepackage{amssymb}
\usepackage{amsthm}
\usepackage{amsmath}
\usepackage{pifont}
\usepackage{natbib}
\usepackage{geometry}
\usepackage{tikz}
\usepackage{graphicx}
\usepackage{txfonts}
\usepackage{hyperref}
\usepackage{latexsym}
\usepackage{multirow}
\usepackage{array}
\usepackage{lineno}
\begin{document}
\begin{frontmatter}
\title{}
%\tnotetext[label1]{}
\author{\fnref{1}}
\author{ \fnref{1}}
\author{ \fnref{1}}
\ead{}
%\ead[url]{home page}
%\fntext[label2]{}
%\cortext[cor1]{}
%\address{\fnref{3}}
%\fntext[label3]{}
\begin{abstract}
-----
\end{abstract}
\begin{keyword}
------
\end{keyword}
\end{frontmatter}
\section{INTRODUCTION}
my text
\bibliographystyle{elsarticle-num}
\bibliography{my bibdatabase file}
\end{document}
Best regards,
Nadia
File ended while scanning use of \@citex
elsarticle
class is designed to give articles in a way Elsevier wants it. And I believe it is by design that there is no heading for the references.I could be wrong, of course...
Regards
Re: File ended while scanning use of \@citex
Actually for Elsevier articles, there is heading for references and I think using an asterisk (*) after the section command like (\section*{Introduction}) could fix the problem.
http://www.fauskes.net/nb/latextips/#di ... nnumbering
Many thanks and best regards,
Nadia