[Tex/LaTex] Can’t insert date with \maketitle (using llncs.cls)

lncstitles

I'm just trying to write some notes on Overleaf using the llncs template (you can play with it here), but when I put \date{06 August 2016} before \maketitle, nothing appears. Currently my notes begin with

\documentclass{llncs}

\begin{document}

\title{My Notes on Bla Bla}
\author{John Doe}
\institute{
\email{noreply@xyz.com}\\
}
\date{06 August 2016}
\maketitle

(I know my \email probably wasn't inserted correctly, but at this point I just need something that works)

All I want is something very basic like this:

enter image description here

Best Answer

The \date does not form part of \maketitle under llncs. You'll either have to update the subsequent \@maketitle manually or perhaps patching it using something like etoolbox. However, an easier option is to just add it manually after a call to \maketitle:

enter image description here

\documentclass{llncs}

\title{My Notes on Bla Bla}
\author{John Doe}
\institute{
\email{noreply@xyz.com}\\
}
\date{06 August 2016}

\begin{document}

\maketitle

\noindent
\makebox[\linewidth]{\small 06 August 2016}

\end{document}

Here would be a possible patch applied to \@maketitle using etoolbox:

\usepackage{etoolbox}
\makeatletter
\patchcmd{\@maketitle}% <cmd>
  {\end{center}}% <search>
  {\bigskip\small\@date
   \end{center}}% <replace>
  {}{}% <success><failure>
\makeatother

It inserts a gap and the \date supplied at the \end{center} - the end of \@maketitle.