# Placing date on the front matter (elsarticle document class)

Is there a neater way to place date on the front matter (elsarticle document class)?

\documentclass[final,authoryear,1p,times,letterpaper,12pt]{elsarticle}
\usepackage[utf8]{inputenc}
\usepackage[english]{babel}
\usepackage{amsmath}
\usepackage{amsfonts}
\usepackage{amssymb}
\usepackage{indentfirst}
\usepackage{amscd}
\usepackage{mathrsfs}
\usepackage{ulem}
\usepackage{bbm}
\usepackage{hyperref}
\usepackage{tikz}
\usetikzlibrary{calc}
\usepackage{setspace}
\usepackage{color}
\usepackage{subfiles}
\usepackage{lmodern}
\usepackage{kpfonts}
\usepackage{amsthm,amssymb}
\usepackage{thmtools}
\crefname{lem}{lemma}{lemmas}
\crefname{prop}{Proposition}{Propositions}
\crefname{thr}{Theorem}{Theorems}
\crefname{cor}{Corollary}{Corollaries}
\crefname{ass}{Assumption}{Assumptions}
\crefname{df}{Definiton}{Definitons}
\usepackage{enumitem}
\usepackage{caption}
\usepackage{subcaption}
\usepackage{pifont}% for openstar in the title footnotes;
\usepackage{natbib}% for citation processing;
\usepackage{geometry}% for margin settings;
\usepackage{fleqn}% for left aligned equations;
\usepackage{graphicx}% for graphics inclusion;
\usepackage{txfonts}% optional font package, if the document is to be formatted with Times and compatible math fonts;

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\let\oldFootnote\footnote
\newcommand\nextToken\relax

\renewcommand\footnote[1]{%
\oldFootnote{#1}\futurelet\nextToken\isFootnote}

\newcommand\isFootnote{%
\ifx\footnote\nextToken\textsuperscript{,}\fi}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

\begin{document}
\begin{frontmatter}
\title{Random title\tnoteref{t1}}
\tnotetext[t1]{Very preliminary and incomplete. All errors remain our own.}
\author[jd]{John Doe}
\author[jnd]{Jane Doe}
\begin{abstract}
\end{abstract}
\end{frontmatter}
\end{document}

• \date{\today} does not work? – user31729 Oct 16 '14 at 16:12
• I think elsarticle allows for maketitle. See tex.stackexchange.com/questions/84573/… – Ethan Bolker Oct 16 '14 at 16:12
• @EthanBolker Just checked, frontmatter just calls maketitle. – Johannes_B Oct 16 '14 at 16:13
• Are you submitting to elsevier? They decide on what goes to the title. – Johannes_B Oct 16 '14 at 16:14
• @ChristianHupfer: it doesn't. – capadocia Oct 16 '14 at 16:18

A bit subjective, but a "neater" way is to patch the \MaketitleBox and \pprintMaketitle commands to automatically add the date halfway between the address and abstract (keeping the default 36pt vertical space). This way you are not passing the date to the \address command (which is a bit hackish).

\usepackage{etoolbox}


In your MWE (removing the superfluous packages):

\documentclass[final,authoryear,1p,times,letterpaper,12pt]{elsarticle}
\usepackage{etoolbox}

\begin{document}
\begin{frontmatter}
\title{Random title\tnoteref{t1}}
\tnotetext[t1]{Very preliminary and incomplete. All errors remain our own.}
\author[jd]{John Doe}
\author[jnd]{Jane Doe}