[Tex/LaTex] redefine \maketitle


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:


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



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


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 @)

  \vskip 2em%
  \let \footnote \thanks
    {\LARGE \@title \par}%
    \vskip 1.5em%
      \lineskip .5em%
    \vskip 1em%
    %{\large \@date}%
  \vskip 1.5em}

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