[texhax] vertical alignment

Steve Schwartz s.schwartz at imperial.ac.uk
Wed Feb 7 09:39:04 CET 2007


Sean,

I don't know where you want your line "Midday... to end up, but the
easiest way I can think of is to insert a couple of \vfill's in the
appropriate places, e.g.:

\vfill
line one\break
...
line ten\break
\vfill
Midday...\break
\newpage

will centre your 10 lines and put Midday... at the bottom. Else put the
\vfill after the Midday line to centre your (10 lines +Midday line),
else put \vfill's in both places to provide equal space from the top to
your 10 lines and another equal space to Midday..., else...

Does this help?

Steve


On Tue, 2007-02-06 at 10:05 -0500, Sean Sieger wrote:
> This is working near perfect:
> 
> \documentclass[12pt,titlepage]{article}
> \author{Sean Sieger}
> \title{Poems}
> \usepackage{fancyhdr}
> \begin{document}
> \maketitle
> \tableofcontents
> \newpage
> \pagestyle{fancy}
> \chead{\thepage}
> \renewcommand{\headrulewidth}{0pt}
> \cfoot{}
> \section*{Song}
> \addcontentsline{toc}{section}{Poem}
> \raggedright
> \baselineskip = 24pt
> line one\break
> 
> . . .
> 
> line ten\break
> Midday, the ambulating day originates in day.\break
> \newpage
> \end{document}
> 
> I don't want to say, 'The last thing . . .' but, I think the only
> thing left to do is to center my ten lines vertically on each page. I
> have looked and looked through documentation (found \valign, but
> haven't figured out how to use it for my purposes) and will continue
> to do so.  Can someone point me in the right direction?
> 
> _______________________________________________
> TeX FAQ: http://www.tex.ac.uk/faq
> Mailing list archives: http://tug.org/pipermail/texhax/
> More links: http://tug.org/begin.html
> 
> Automated subscription management: http://tug.org/mailman/listinfo/texhax
> Human mailing list managers: postmaster at tug.org
-- 
+-------------------------------------------------------------------+
Professor Steven J Schwartz      Phone: +44-(0)20-7594-7660
Space and Atmospheric Physics    Fax:   +44-(0)20-7594-7772
The Blackett Laboratory          E-mail: s.schwartz at imperial.ac.uk
Imperial College London          Office: Huxley 6M70 
London SW7 2BW, U.K.             Web: http://www.sp.ph.ic.ac.uk/~sjs
+-------------------------------------------------------------------+



More information about the texhax mailing list