Page LayoutVertical centering and section seperation

Information and discussion about page layout specific issues (e.g. header and footer lines, page formats, page numbers).
Post Reply
itsmereally
Posts: 32
Joined: Sun Jul 25, 2010 11:15 pm

Vertical centering and section seperation

Post by itsmereally »

Hello

1). Is there any way to get a single page of a document centred both vertically and horizontally? I know how to do the horizontal part.

2). Are there any set macros or other commands that would put a horizontal line from margin to margin? I'd like to use this to clearly seperate certain sections of my documents.

Thanks. :)

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

Vertical centering and section seperation

Post by Stefan Kottwitz »

itsmereally wrote: 1). Is there any way to get a single page of a document centred both vertically and horizontally? I know how to do the horizontal part.
You could use \vspace*{\fill} before and after the piece of text that should be centered.
itsmereally wrote:2). Are there any set macros or other commands that would put a horizontal line from margin to margin? I'd like to use this to clearly seperate certain sections of my documents.
You could use \rule like

Code: Select all

\rule{\textwidth}{1pt}
If you use paragraph indentation you could suppress it by \noindent before \rule.

Or even simpler: \hrulefill.

Stefan
LaTeX.org admin
itsmereally
Posts: 32
Joined: Sun Jul 25, 2010 11:15 pm

Re: Vertical centering and section seperation

Post by itsmereally »

Oops! I forgot to check this thread. :oops:

It worked perfectly. Thank you very much, again. :)
Post Reply