LaTeX/Title Creation

For documents such as basic articles, the output of is often adequate, but longer documents (such as books and reports) often require more involved formatting. We will detail the process here.

There are several situations where you might want to create a title in a custom format, rather than in the format natively supported by LaTeX classes. While it is possible to change the output of, it can be complicated even with minor changes to the title. In such cases it is often better to create the title from scratch, and this section will show you how to accomplish this.

Standard Titles
Most document classes provide a simple interface to store details to be represented in the title and to typeset the actual title. The standard classes provide just four storing commands (,    and  ). You can store any information you want to be shown in the title, including formatting.

The actual title will be typeset by issuing the command. The layout is defined by the documentclass in use.

The command  will store content, which will produce a footnote along with the title. As the name suggests, it can be used to thank someone. Or just to print an email address or similar in a footnote.

The authors are separated by the command, allowing author blocks to be output next to each other. In the example above, there is not enough horizontal space to fit both authors on the same line.

If  was not defined, LaTeX will print the current date. If you want to omit the date completely, use, which stores an empty string.

The commands to store your title data can be used in the preamble. Since  does actual output, it needs to be used after. Usually, the title is the first thing in a document.

Please see examples for KOMA-script and  classes below. Both provide (different) commands to change the appearance of the title. Learn later how to completely design your own titlepage.

As usual, the class documentation reveals more details about the possible commands.

The title for journal submission
Journals follow a specific layout. To ensure this they often provide a template which defines the layout. What is available for the title (for example emails, affiliation names, keywords) heavily depends on the template and highly differs between different journals. Follow the template if the journal provides one. If they don't you should use the most basic concepts of LaTeX titles described above.

Create a custom title for a report or book
The title page of a book or a report is the first thing a reader will see. Keep that in mind when preparing your title page.

You need to know very basic LaTeX layout commands in order to get your own title page perfect. Usually a custom titlepage does not contain any semantic markup, everything is hand crafted. Here are some of the most often needed things:

If you want to center some text just use. If you want to align it differently you can use the environment for right-alignment and  for left-alignment. The command for including images (a logo for example) is the following :. There is no as you would usually use since you don't want it to be floating, you just want it exactly where want it to be. When handling it, remember that it is considered like a big box by the TeX engine. If you want to change the size of some text just place it within braces, {like this}, and you can use the following commands (in order of size):, , , , , , , ,. So for example:
 * Alignment :
 * Images :
 * Text size :

Remember, if you have a block of text in a different size, even if it is a bit of text on a single line, end it with. The command as the last item of your content will add empty space until the page is full. If you put it within the page, you will ensure that all the following text will be placed at the bottom of the page.
 * Filling the page :

A practical example
All these tips might have made you confused. Here is a practical and compliable example. The picture in use comes with package  and should be available with every complete LaTeX installation. You can start testing right away.

As you can see, the code looks "dirtier" than standard LaTeX source because you have to take care of the output as well. If you start changing fonts it gets even more complicated, but you can do it: it's only for the title and your complicated code will be isolated from all the rest within its own file.

The result is shown below



Integrating the title page
A title page for a book or a report to get a university degree {Bachelor, Master, Ph.D., etc.) is quite static, it doesn't really change over time. You can prepare the titlepage in its own little document and prepare a one page pdf that you later include into your real document. This is really useful, if the title page needs to have completely different margins compared to the rest of the document. It also saves compile time, though it is not much.

Assuming you have done the title page of your report in an extra document, let's pretend it is called, you can include it quite simply. Here is a short document setup.

A title to be re-used multiple times
Some universities, departments and companies have strict rules how a title page of a report should look. To ensure the very same output for all reports, a redefinition of the command is recommended.

This is best done by an experienced LaTeX user. A simple example follows, as usual there is no real limit with respect to complexity.

As a starting point, a LaTeX package called  is generated that defines the complete title matter. It will later be hidden from the end user. Ideally, the person creating the package should maintain it for a long time, create an accompanying documentation and ensure user support.

This package can be loaded within a usual document. The user can set the variables for  and the like. Which commands are actually available, and which might be omissible should be written in a documentation that is bundled with the package.

Look around what happens if you leave one or the other command out.

Packages for custom titles
The package provides control over the typesetting of the  and  commands. It is useful for small changes to the standard output.

Italian users may also want to use the package. It defines a frontispiece as used in Italy.

Package provides new means to typeset the authors. This is especially helpful for journal submissions without an available template.

More titlepage examples
The package presents many different styles for title pages.

TeX.SE has a collection of titlepages.

Another small collection can be found on Github.

Notes and References
Latex/Título LaTeX/ Eine Titelseite erstellen LaTeX/生成封面和标题 Manual de LaTeX/La estructura de un documento en LaTeX/Cuerpo/Portada del documento LaTeX/Стварање наслова