Email addresses & Abstract missing when using the elsarticle class

I am trying to format my paper using Latex with the class elsarticle for an Elsevier journal. I am using TeXnicCenter along with Miktex.

It's working perfectly when the content is all in English (compiled with pdflatex). Working example:

\documentclass[3p,twocolumn]{elsarticle}
\usepackage[utf8]{inputenc}
%\usepackage{fontspec}
\usepackage[english]{babel}
\usepackage{lineno,hyperref}
%\usepackage{arabxetex}
\modulolinenumbers[5]

\journal{Example Journal}
\bibliographystyle{elsarticle-num}

\begin{document}

\begin{frontmatter}
\title{A title for the paper}

% include affiliations in footnotes:
\cortext[mycorrespondingauthor]{Corresponding author}

\begin{abstract}
\end{abstract}
\begin{keyword}
word1 \sep word2 \sep word3.
\end{keyword}
\end{frontmatter}

\end{document}


Now, the thing is that my paper has some Arabic scripts. To make them appear and work properly, I use the commented packages in the previous code and compile it with XeLatex. This compiles with some warnings, but the resulted PDF is missing the whole frontmatter part!

And I get this compilation error message:

! LaTeX Error: \begin{frontmatter} on input line 21 ended by \end{document}.

Any help will be appreciated.

• Have you tried your .tex file with ShareLaTeX, to ensure that it is not a problem with the version of elsarticle you are using? – Charles Stewart Apr 28 '17 at 8:18