Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

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.

share|improve this question
1  
If 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 H May 10 '11 at 12:56
2  
Have a look on the following questions: Title Page Creation and How can I make a cover for a report. –  Martin Scharrer May 10 '11 at 13:15
    
How to insert an image in front cover of a Report in LaTeX might be also relevant. –  Christian Lindig May 22 '11 at 20:07
add comment

1 Answer

up vote 5 down vote accepted

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.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.