GeneralDifferent textwidth-and oddsidemargin-values in 1 document?

LaTeX specific issues not fitting into one of the other forums of this category.
Post Reply
Kazaam
Posts: 2
Joined: Sat Oct 04, 2008 3:49 pm

Different textwidth-and oddsidemargin-values in 1 document?

Post by Kazaam »

Hi,
I'm new to LaTeX and wanna write an articel. I first need to have a cover sheet where I have to write e.g. the date on the top right corner and my name in the top left corner. For example:

Code: Select all

\documentclass[12pt,a4paper]{article}

\usepackage[top=+0.2cm, bottom=+2.2cm, left=+0.2cm, right=+0.9cm]{geometry} 
\usepackage[ngerman]{babel}
\usepackage[utf8]{inputenc}
\usepackage{times}

\setlength\parindent{0cm}

\begin{document}
	\thispagestyle{empty}
	Kazaam the Dragon \hfill Berlin, \today
	\\\\
	Evergreenterrasse 12

	Springfield

	\begin{center}
		\vspace*{9cm} 
		\Large \textbf{1. Articel}

		\textbf{about Physics}
	
		\textbf{with}

		\textbf{Prof. Dr. Brox}
	\end{center}
	\begin{center}
		\Large Sommersemster 2008
	\end{center}
\end{document}
But now on the next page I wanna have other values for the textwidth. But the textwidth can just be changed in the preambel. Like on the next page I wanna have to have a third of a parge as border and I wanna have 10cm on the top and bottom as border.

But how to do this? Do I have to start a new document? So do I have to use many document for one articel?

Recommended reading 2024:

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

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

Stefan Kottwitz
Site Admin
Posts: 10345
Joined: Mon Mar 10, 2008 9:44 pm

Different textwidth-and oddsidemargin-values in 1 document?

Post by Stefan Kottwitz »

Hi Kazaam,

welcome to the board!
Do you want to change the margins and \textwidth several times in the document, or do you just want the layout of the cover page to be different to the rest? In that case the chngpage package could help.
The gmeometric package allows to change the page geometry (like margins etc.) to be changed inside the document, see its documentation.

Stefan
LaTeX.org admin
Kazaam
Posts: 2
Joined: Sat Oct 04, 2008 3:49 pm

Re: Different textwidth-and oddsidemargin-values in 1 document?

Post by Kazaam »

Hi Stefan_K,
thanks for your help! I need to change it several times (4 times to be exact) but I choosed chngpage because I have it already installed with the default packages of my distribution, so I think it's more common. And you can use it several times in one document. Here's a doc for it I found: http://www-h.eng.cam.ac.uk/help/tpl/tex ... gpage.html .

I have only one problem: It also changes the postition of the page number in the footer. I don't want that. The footer page number shall always be centered. Anyone knows how I can do this?
Post Reply