LaTeX forum ⇒ Theses, Books, Title pages ⇒ Including the Date When I don't Specify

Classicthesis, Bachelor and Master thesis, PhD, Doctoral degree
JohnnyBeGood
Posts: 1
Joined: Thu Jan 14, 2021 6:55 am

Including the Date When I don't Specify

Hello - I do not want to include the date on my title page, but for some reason it is automatically including it.

Here is my code -

\documentclass{article}
\usepackage[utf8]{inputenc}
\begin{document}
\title{My title}
\maketitle
\end{document}

And the document displays two lines - "My title" and then below "January 14, 2021" , which is a day ahead by the way.
Last edited by cgnieder on Sun Jan 17, 2021 10:41 pm, edited 1 time in total.

Ijon Tichy
Posts: 560
Joined: Mon Dec 24, 2018 10:12 am
article's (documented) default of the date is \today. You can explicitly set an empty date using \date{} (note the empty argument). However, this would print an empty date, so the place is used as if there would be a date. If you need a more individual title, you cannot use \maketitle but design and implement it manually. For a in-head-title (which is the default of article) with only a title but no date and no auther, you could e.g. use something simple like:
\documentclass{article}
\usepackage[utf8]{inputenc}
\usepackage{blindtext}
\begin{document}
\begin{center}
\LARGE\bfseries My title
\bigskip
\end{center}
\tableofcontents
\section{My first section}
\blindtext
\end{document}

For a document with title page instead of in-head-title you should use environment titlepage, e.g.:
\documentclass{article}
\usepackage[utf8]{inputenc}
\usepackage{blindtext}
\begin{document}
\begin{titlepage}
\centering
\vspace*{.25\textheight}

\LARGE\textbf{My title}

\bigskip

\large\textbf{My subtitle}
\end{titlepage}
\tableofcontents
\section{My first section}
\blindtext
\end{document}

BTW: I cannot say why your date is one day in the future. TeX uses the local time reported by your system. So maybe your system clock is one day in the future.

BTW: Please always mark your code as code. You can do so, selecting the code with your mouse and then click to the Code button in the toolbar (please do not use the MWE button, because it has another meaning, nor the LaTeX button, which should be used for inline code only not for multiple lines of code). For more information about text formation in the forum, see the BBCode help page.