You are not logged in.

#1 2008-11-22 03:05:20

cautha
Member
From: Kingston, Ontario
Registered: 2008-06-02
Posts: 115
Website

Vertical text alignment in LaTeX? (Solved)

I can't see why this can't be done; it's obviously just a matter of my ignorance (after all, M$ Word can do it lol). I'm a total noob when it comes to LaTeX, but I'm trying . . .

I have a block of text below my header that I would like to position directly in the center of my page - as you can see, I've already centred it horizontally:

\center{Assignment 2: Algebra Units 4 \& 5\linebreak [name]\linebreak MATH103\linebreak Instructor: [name]\linebreak Friday, November 21, 2008}\pagebreak

What can I do to solve this? I know it's probably something simple.

Harry

Last edited by cautha (2008-11-22 04:44:37)

Offline

#2 2008-11-22 04:20:14

iBertus
Member
From: Greenville, NC
Registered: 2004-11-04
Posts: 2,228

Re: Vertical text alignment in LaTeX? (Solved)

Remove the newline and use the following:

\vspace*{\fill}
\center{Assignment 2: Algebra Units 4 \& 5\\ \[name\] \\ MATH103\\ Instructor: \[name\]\\ Friday, November 21, 2008}
\vspace*{\fill}

Offline

#3 2008-11-22 04:43:59

cautha
Member
From: Kingston, Ontario
Registered: 2008-06-02
Posts: 115
Website

Re: Vertical text alignment in LaTeX? (Solved)

This is why I love these forums big_smile

I found a better way to do the header, too: instead of using \rhead, I've now got

\fancyhead[R]{Assignment 2\hspace{1em}\thepage}\fancyfoot{}

This link to texblog.wordpress.com proved useful in that regard.

(I took out the names because I didn't think my prof would appreciate being mentioned on a forum; but, that's beside the point.)

You've been very helpful!

Harry

Last edited by cautha (2008-11-22 04:47:11)

Offline

Board footer

Powered by FluxBB