Theses, Books, Title pagesIncluding the Date When I don't Specify

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

Including the Date When I don't Specify

Post by JohnnyBeGood »

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 -

Code: Select all

\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.

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org
LaTeX Beginner's Guide LaTeX Cookbook LaTeX TikZ graphics TikZによるLaTeXグラフィックス
User avatar
Ijon Tichy
Posts: 640
Joined: Mon Dec 24, 2018 10:12 am

Including the Date When I don't Specify

Post by Ijon Tichy »

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:

Code: Select all

\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.:

Code: Select all

\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.
Sorry, but I can no longer participate here as the administrator is trampling on my wishes on one of his other platforms. :cry:
Post Reply