Typevia
Document Structure

Introduction to Title Pages in LaTeX

First impressions matter, and in the world of academic and professional documents, the title page is that first impression. While LaTeX provides a standard way to create titles, many users find the default style too restrictive for theses, books, or formal reports.

A custom title page allows you to control the layout, font sizes, spacing, and inclusion of logos or decorative elements precisely. In LaTeX, we move beyond the simple \maketitle command and use the titlepage environment to build a unique front cover from scratch.


1. The Standard vs. Custom Approach

Before diving into customization, it is important to understand the two ways LaTeX handles titles.

The Standard Method

Most beginners start with the standard preamble commands:

\title{My Research Project}
\author{Jane Doe}
\date{\today}

\begin{document}
\maketitle
\end{document}

The \maketitle command is easy but rigid. It follows the specific style of your document class (like article or report) and offers little room for design changes.

The Custom Method

To create a truly custom design, we use the titlepage environment. This environment:

  1. Creates a new page for the title.
  2. Prevents a page number from appearing on that page.
  3. Resets the page counter so that the page following the title is considered page 1.
  4. Gives you a "blank canvas" where you can use any LaTeX commands to position text and images.

2. Using the titlepage Environment

When you use \begin{titlepage}, you are telling LaTeX to stop following the standard rules for headers and footers for a moment. Inside this environment, you will typically use centering, vertical spacing, and font size commands to arrange your content.

Basic Structure Example

Here is a template for a clean, professional title page:

\documentclass{report}

\begin{document}

\begin{titlepage}
    \centering
    \vspace*{1cm}
    
    {\huge \bfseries The Impact of LaTeX on Technical Writing \par}
    \vspace{1.5cm}
    
    {\Large \textbf{Jane Doe}} \par
    \vspace{0.5cm}
    Student ID: 12345678 \par
    
    \vfill
    
    A thesis submitted for the degree of \\
    \textit{Master of Science}
    
    \vfill
    
    \includegraphics[width=0.4\textwidth]{university_logo.png}
    
    \vfill
    
    Department of Computer Science \\
    University of TeX \\
    \today
    
\end{titlepage}

\end{document}

Key Commands Explained:

  • \centering: Centers all text and images within the environment.
  • \vspace{length}: Adds vertical space. Use \vspace*{length} at the very top of a page to ensure LaTeX doesn't "eat" the white space.
  • \vfill: This is a "rubber" length. It expands to fill all available vertical space. Using multiple \vfill commands distributes space evenly between elements.
  • \par: Ends a paragraph. This is often necessary when changing font sizes to ensure the line spacing (leading) is calculated correctly.

Note: Inside the titlepage environment, you do not use \maketitle. You are manually defining where every element goes.


3. Enhancing Layout with Images and Lines

A professional title page often includes a university or company logo and horizontal lines to separate sections.

To add an image, ensure you have \usepackage{graphicx} in your preamble. You can then use \includegraphics within the centering environment.

Using Horizontal Lines

Horizontal lines (rules) can add a modern look to your document. You can create them using the \rule command.

\begin{titlepage}
    \centering
    \rule{\linewidth}{0.5mm} \\[0.4cm]
    { \huge \bfseries Advanced Macro-Economics: \\ An Annual Report }\\[0.4cm]
    \rule{\linewidth}{0.5mm} \\[1.5cm]
    
    \begin{minipage}{0.4\textwidth}
        \begin{flushleft} \large
            \emph{Author:}\\
            John \textsc{Smith}
        \end{flushleft}
    \end{minipage}
    ~
    \begin{minipage}{0.4\textwidth}
        \begin{flushright} \large
            \emph{Supervisor:} \\
            Dr. Alan \textsc{Turing}
        \end{flushright}
    \end{minipage}

    \vfill
    {\large \today}
\end{titlepage}

Why use Minipages?

In the example above, minipage environments are used to place the "Author" and "Supervisor" information side-by-side. Each minipage takes up 40% of the text width (0.4\textwidth), and the ~ adds a bit of horizontal space between them.


4. Typography and Font Control

Because the title page is a standalone design, it is the perfect place to experiment with LaTeX's font size and style commands.

Common Size Commands

  • \huge, \Huge: Best for the main title.
  • \large, \Large: Best for authors and subtitles.
  • \small: Best for fine print or legal disclaimers at the bottom.

Text Styling

  • \textbf{text}: Bold.
  • \textit{text}: Italics.
  • \textsc{text}: SMALL CAPS (very common for author surnames in academic papers).

Tip: If you want to use a different font entirely just for the title page, you can load a font package and use a font switch inside the titlepage environment. However, for beginners, sticking to the standard sizing and weight commands is safer.


5. Using the titling Package

If you want to keep the convenience of \maketitle but gain the ability to customize its components, the titling package is an excellent tool. It allows you to access variables like \theauthor and \thetitle anywhere in the document.

\usepackage{titling}

\pretitle{\begin{center}\LARGE\itshape} % Style before the title
\posttitle{\par\end{center}\vskip 0.5em} % Style after the title

\title{My Customizable Document}
\author{A. Student}

This is useful if you need to repeat the title or author name in the headers or footers of your document later on.


6. Best Practices and Common Pitfalls

To ensure your title page looks professional and compiles without errors, keep these tips in mind:

  1. Check for Overfull Boxes: If your title is very long, it might run off the edge of the page. Use \\ to manually insert line breaks in the title for better visual balance.
  2. Resetting Page Numbers: The titlepage environment automatically sets the page number to 1 for the next page. If you are writing a book and want the title page to be "i" and the first chapter to be "1", you may need to use \pagenumbering{roman} and \pagenumbering{arabic} manually.
  3. The "Vfill" Trick: If your elements are clumped at the top, remember that \vfill only works if there is something below it. If you want to push something to the very bottom, put a \vfill before it and a small \vspace or empty \mbox{} after it.
  4. Consistency: While the title page is unique, ensure it shares some DNA with the rest of your document (e.g., using the same main font family) to maintain a cohesive look.

Summary Checklist

  • Is \usepackage{graphicx} included if you have a logo?
  • Did you use \centering to align your elements?
  • Are font sizes like \Huge followed by a \par?
  • Have you used \vfill to distribute white space effectively?
  • Did you double-check that the page numbering starts correctly on the second page?