Text FormattingFile ended while scanning use of \@citex

Information and discussion about LaTeX's general text formatting features (e.g. bold, italic, enumerations, ...)
Nadia
Posts: 13
Joined: Wed Jan 16, 2013 12:35 am

File ended while scanning use of \@citex

Post by Nadia »

Dear all,

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

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

File ended while scanning use of \@citex

Post by Stefan Kottwitz »

Hi Nadja,

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
LaTeX.org admin
User avatar
cgnieder
Site Moderator
Posts: 2000
Joined: Sat Apr 16, 2011 7:27 pm

File ended while scanning use of \@citex

Post by cgnieder »

Hi Nadia,

welcome to the LaTeX community!
Nadia 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.
This error could have any number of causes. We will need to see some code to give you an answer. Please provide us with a Infominimal working example (if you're not sure what that is please follow the link). We will then probably be able to fix the issue.
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?
Like it says: use the class »elsarticle«:

Code: Select all

\documentclass{elsarticle}
...
It is available on CTAN (elsarticle) so probably already installed on your system. There's also documentation available: elsarticle.

Regards

PS: Pfff, Stefan beat me again ;)
site moderator & package author
User avatar
Stefan Kottwitz
Site Admin
Posts: 10335
Joined: Mon Mar 10, 2008 9:44 pm

Re: File ended while scanning use of \@citex

Post by Stefan Kottwitz »

Clemens, be faster ;-) just joking. Well, I look at here too often. As often, you made good additions, perfect. :-)

Stefan
LaTeX.org admin
Nadia
Posts: 13
Joined: Wed Jan 16, 2013 12:35 am

File ended while scanning use of \@citex

Post by Nadia »

Many thanks Stefan and Clemens for the reply. The problem has been sorted out.

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
Nadia
Posts: 13
Joined: Wed Jan 16, 2013 12:35 am

File ended while scanning use of \@citex

Post by Nadia »

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

File ended while scanning use of \@citex

Post by Stefan Kottwitz »

Hi Nadia,

perhaps post this as a new topic together with a Infominimal working example, because it's possible that helping readers don't see this new problem in an older, already solved topic which firstly deals with another issue.

Stefan
LaTeX.org admin
Nadia
Posts: 13
Joined: Wed Jan 16, 2013 12:35 am

File ended while scanning use of \@citex

Post by Nadia »

OK Stefan. This is my Latex file I am currently working on

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
Last edited by Stefan Kottwitz on Thu Jan 17, 2013 6:26 pm, edited 1 time in total.
User avatar
cgnieder
Site Moderator
Posts: 2000
Joined: Sat Apr 16, 2011 7:27 pm

File ended while scanning use of \@citex

Post by cgnieder »

I wonder: are you using the Elsevier class to submit an article to them? The reason I'm asking is because the 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
site moderator & package author
Nadia
Posts: 13
Joined: Wed Jan 16, 2013 12:35 am

Re: File ended while scanning use of \@citex

Post by Nadia »

Hi Clemens,

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
Post Reply