5

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{[email protected]}\\
}
\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

1 Answer 1

8

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{[email protected]}\\
}
\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.

2
  • thanks it worked! but for a long-term solution, could u plz also explain how I should update \@maketitle?
    – ladiesman
    Sep 16, 2016 at 15:45
  • @ladiesman: Done.
    – Werner
    Sep 16, 2016 at 16:18

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .