Document Classes ⇒ Unexpected problem with document class »elsarticle«
Unexpected problem with document class »elsarticle«
I have just installed the elsevier class elsart.cls (I think I did it fine, since I did not receive any error message), but I while compiling I receive the next error message ! You can't use `\end' in internal vertical mode.. This error appear in the line in where I have written the \end{document} command.
Since the only thing I have changed in the .tex file is changing
\documentclass[a4paper, twocolumn,english]{paper}
into
\documentclass[preprint,english]{elsarticle}
I do not know if the problem is in the installation or in the .tex file.
Can anyone help me? Thank you!
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: 10324
- Joined: Mon Mar 10, 2008 9:44 pm
Unexpected problem with document class »elsarticle«
perhaps try to reduce a copy of your code to a minimal example which produces this problem and post it here.
Stefan
Unexpected problem with document class »elsarticle«
I have reduced the code as much as i could. Here it is
Code: Select all
\documentclass[preprint,english]{elsarticle}
\usepackage{layout}
\usepackage[latin1]{inputenc}
\usepackage{babel}
\usepackage[T1]{fontenc}
\usepackage{amsmath, latexsym, soul, color, type1cm,dsfont, float, fancyhdr}
\usepackage[official]{eurosym}
\usepackage{graphicx}
\pagestyle{headings}
\title{title}
\author{authors}
\begin{document}
\maketitle
\abstract{abstract}
\section{Introduction}
section1
\section{Experimental set up}
section2
\section{Measurements and results}
section3
\subsection{X axis}
X
\subsection{Y axis}
Y
\subsection{Z axis}
Z
\subsection{Compressor}
compressor.
\section{Conclusions}
conclusions
\begin{thebibliography}{99}
\bibitem{1} book1
\end{thebibliography}
\end{document}
Thanks!
- localghost
- Site Moderator
- Posts: 9202
- Joined: Fri Feb 02, 2007 12:06 pm
Unexpected problem with document class »elsarticle«
Best regards and welcome to the board
Thorsten
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10
Unexpected problem with document class »elsarticle«
Problem solved!

Keen eye, Thorsten!!
Code: Select all
\documentclass[preprint,english]{elsarticle}
\usepackage{layout}
\usepackage[latin1]{inputenc}
\usepackage{babel}
\usepackage[T1]{fontenc}
\usepackage{amsmath, latexsym, soul, color, type1cm,dsfont, float, fancyhdr}
\usepackage[official]{eurosym}
\usepackage{graphicx}
\usepackage{abstract}
\pagestyle{headings}
\title{title}
\author{authors}
\begin{document}
\maketitle
\begin{abstract}
abstract
\end{abstract}
The problem was in the abstract. It was subtle difference, but still, an important difference...