356

I'm using the \author and \title commands to produce a title with \maketitle. I also know that there is a \date command to specify the date of my work. However, if I omit \date, \maketitle will produce the current date. How do I achieve that no date is displayed at all?

\documentclass{article}

\author{Author, A.}
\title{Alpha}

\begin{document}

\maketitle

Some text.

\end{document}

4 Answers 4

350

If you want a blank date, just use \date{}.

If you want to remove the spacing altogether where the date usually goes, look into using the titling package, or else the mechanisms provided by your document class, depending on what it is.

6
  • 10
    If I use \date{} with the article class (instead of simply omitting the date), the vertical alignment of any following text will change as if the spacing was removed.
    – lockstep
    Sep 5, 2010 at 16:24
  • 4
    @lockstep long time post, but testing today (with TexStudio), the \date{} it works fine. Dec 8, 2012 at 23:56
  • 20
    For future reference: if you want to use the titling package to remove space, you can do \predate{} and \postdate{} and then \date{} (as above). The same can be done for author (\preauthor{}, \postauthor{}, and \author{}) and title. To remove the space after the title line itself, do \posttitle{\par\end{center}}, which is the same as the default posttitle except with the \vskip 0.5em omitted (see texdoc titling, page 2).
    – Reid
    Feb 24, 2014 at 13:52
  • 1
    Today the spacing seems to be gone already, so it should be fine.
    – xji
    Jun 11, 2016 at 4:05
  • This approach doesn't seem to work with KOMA. Specifically, the scrartcl class. Jul 28, 2019 at 11:33
188

For a cheap and easy solution to removing the spacing without delving into the titling package that frabjous mentions, try:

\documentclass{article}

\author{Me}
\title{Foo}
\date{\vspace{-5ex}}
%\date{}  % Toggle commenting to test

\begin{document}

\maketitle

Bar

\end{document}
22

@Reid’s titling solution (mentioned above in a comment, and alluded to in @frabjous’s answer) deserves a full answer, since it does a nice job of removing the space associated with the date:

\documentclass{article}

% remove spacing around date:
\usepackage{titling}
\predate{}
\postdate{}

\author{Author, A.}
\title{Alpha}
\date{} % clear date

\begin{document}

\maketitle

Some text.

\end{document}

enter image description here

2
  • 1
    Can you explain how this works? What do \predate{} and \postdate{} do? Nov 7, 2020 at 19:41
  • 2
    @RylanSchaeffer They remove the spacing around the date by setting pre- and post-date hooks (provided by titling package) to empty.
    – Roly
    Nov 10, 2020 at 12:51
3

Important: ordering matters when using \date{}

In Overleaf, date omission only works if \date{} comes before \maketitle. Minimal Working Example:

\documentclass{article}
\begin{document}
\title{Some title}
\date{}
\maketitle
%% \date{} % omission fails if placed after maketitle instead
\end{document}
1
  • 3
    In general, \date will always only then have an effect on \maketitle if it comes before \maketitle. And this is not only the case in Overleaf (which just uses a normal TeX distribution anyways). Apr 9, 2021 at 10:37

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.