Are there any standard tex style wrappers that can help to create a title page for diploma or coursework? My main objective is to get some shortcuts for creating title, author name etc. Some help on the table of contents would be appreciated, too.
-
1If you use \author{Your name} \date{\today} \title{My title} in the preamble and simply write \maketitle after \begin{document} a simple titlepage will be created. With specific formatting needs use a titlepage-environment and "go wild" inside of it. Or are you searing for a even simpler method?– Martin HMay 10, 2011 at 12:56
-
2Have a look on the following questions: Title Page Creation and How can I make a cover for a report.– Martin ScharrerMay 10, 2011 at 13:15
-
How to insert an image in front cover of a Report in LaTeX might be also relevant.– Christian LindigMay 22, 2011 at 20:07
1 Answer
Like Martin said in his comment, there are standard LaTeX commands for creating simple title pages, available in many document classes. Here's a complete example:
\documentclass{book}
\begin{document}
\title{Example document}
\author{Stefan Kottwitz}
\date{\today}
\maketitle
\end{document}
I recommend using those macros \title
etc. right after \begin{document}
, but not before. The reason is, that some packages, such as babel, provide features which are activated as soon as the document begins. And such text features, such as shorthands or hyphenation tools, could be useful also in title and author field.
For more flexible title pages you could use the titlepage
environment, this gives you a blank page without page number and without header, which you could freely design. For example:
\documentclass{book}
\begin{document}
\begin{titlepage}
\vfill
\centering
{\Huge Example document}\\[1cm]
{\Large Stefan Kottwitz}\\[0.6cm]
\today
\vfill
\end{titlepage}
\end{document}
The titling
package gives you further control about LaTeX's titling features.