[Tex/LaTex] redefine \maketitle

titles

I am using a template which defines \maketitle to include the date, in addition to the author and the title. I cannot find the file in which this is defined, but there is the following comment in the .tex template which I am modifying:

\maketitle          % Use the \author, \title and \date info

I would like to redefine the command to include just the \author and \title info. Any suggestions on how to do this?

I want to redefine \maketitle in my .tex file. The original definition could be in any package that I might be using.

Best Answer

As you indicated you have no clue where your \maketitle is defined. Lets take TeX to find out the definition:

Replace

\maketitle          % Use the \author, \title and \date info

with

\meaning\maketitle

This line will give you the definition of \maketitle currently in effect. Chances are high that this will result in some bookkeeping operations and then calling another macro, often called \@maketitle or similar as in WChargin's answer. We thus have to find out what \@maketitle (or however it is called) does. So add

\makeatletter\meaning\@maketitle\makeatother

The \makeatletter ... \makeatother-pair is necessary to make LaTeX cope with the @ in \@maketitle.

With this information you can proceed as described win WChargin's answer. Lets assume you get the definition WChargin posted you could alter it as below (adding \makeatletter ... \makeatother again because of the @)

\makeatletter
\def\@maketitle{%
  \newpage
  \null
  \vskip 2em%
  \begin{center}%
  \let \footnote \thanks
    {\LARGE \@title \par}%
    \vskip 1.5em%
    {\large
      \lineskip .5em%
      \begin{tabular}[t]{c}%
        \@author
      \end{tabular}\par}%
    \vskip 1em%
    %{\large \@date}%
  \end{center}%
  \par
  \vskip 1.5em}
\makeatother

You will observe that this is exactly equivalent to what WChargin wrote.