Document ClassesUnexpected problem with document class »elsarticle«

Information and discussion about specific document classes and how to create your own document classes.
Post Reply
Orofea
Posts: 4
Joined: Wed Nov 10, 2010 9:30 am

Unexpected problem with document class »elsarticle«

Post by Orofea »

Hi all,

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!
Last edited by Orofea on Thu Nov 11, 2010 1:40 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.

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

Unexpected problem with document class »elsarticle«

Post by Stefan Kottwitz »

Hi Orofea,

perhaps try to reduce a copy of your code to a minimal example which produces this problem and post it here.

Stefan
LaTeX.org admin
Orofea
Posts: 4
Joined: Wed Nov 10, 2010 9:30 am

Unexpected problem with document class »elsarticle«

Post by Orofea »

Hi Stefan,

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}
And I keep receiving the same error.

Thanks!
User avatar
localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

Unexpected problem with document class »elsarticle«

Post by localghost »

Are you sure that your are using the stuff concerning the abstract correctly? Perhaps you should take a look at the elsarticle manual for clarification.


Best regards and welcome to the board
Thorsten
Orofea
Posts: 4
Joined: Wed Nov 10, 2010 9:30 am

Unexpected problem with document class »elsarticle«

Post by Orofea »

Thank god!
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 rest of the code remains the same.
The problem was in the abstract. It was subtle difference, but still, an important difference...
Post Reply