Generalvertical center titlepage?

LaTeX specific issues not fitting into one of the other forums of this category.
Post Reply
hub
Posts: 12
Joined: Sun Oct 05, 2008 12:25 pm

vertical center titlepage?

Post by hub »

Hello!

Can I vertically center the titlepage?
I havent used any custom titlepage, just using \maketitle.

//Hub

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

User avatar
localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

vertical center titlepage?

Post by localghost »

To me it looks like the title page contents is centred by default. Consider the following minimal working example (MWE).

Code: Select all

\documentclass[11pt,a4paper]{report}
\usepackage[T1]{fontenc}
\usepackage[latin1]{inputenc}
%\usepackage[centering,includeheadfoot,margin=2cm]{geometry}
\usepackage{txfonts}

\parindent0em
\author{Author}
\title{Title}
\date{\today}

\begin{document}
  \maketitle
\end{document}
If in your case there is no vertical centring, please create another MWE that shows the undesired effect.


Best regards and welcome to the board
Thorsten¹
hub
Posts: 12
Joined: Sun Oct 05, 2008 12:25 pm

Re: vertical center titlepage?

Post by hub »

Thx for the quick answer!

I had article as class, not report. When i changed to report its nice and centered.

But now the chapter numbering starts at 0!
Need to change the sections to chapter and so on...

Is there a way to get the same titlepage as in report for article?
User avatar
localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

vertical center titlepage?

Post by localghost »

hub wrote:[...] I had article as class, not report. [...]
This is information you should have given right at the beginning of your request.
hub wrote:[...] Is there a way to get the same titlepage as in report for article?
Of course you can get a title page for the article class. Modify my MWE as follows.

Code: Select all

\documentclass[11pt,a4paper,titlepage]{article}
\usepackage[T1]{fontenc}
\usepackage[latin1]{inputenc}
%\usepackage[centering,includeheadfoot,margin=2cm]{geometry}
\usepackage{txfonts}

\parindent0em
\author{Author}
\title{Title}
\date{\today}

\begin{document}
  \maketitle
\end{document}
You should do some basic reading about LaTeX. Take a look at the first (sticky) topic in the LaTeX»General forum.
hub
Posts: 12
Joined: Sun Oct 05, 2008 12:25 pm

Re: vertical center titlepage?

Post by hub »

Ok, my bad! :(
Should have been more clear.
Will be that in the future!

Thx for the help!
Post Reply