TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

How can I require two (large, near page-size) figures (on separate though consecutive/facing pages) to be horizontally aligned? I've tried \begin{figure}[t] but LaTeX ignores me. If they simply are at the top of the page.

share|improve this question
1  
If the figures are near page size and there is no other text on those pages anyway, do not use a figure environment. just use \includegraphics{} maybe inside a center environment if you have to. Then you can control the placement precisely with e.g. \vspace*{length-value}. If you need a captio use the \captionof{figure}{pic description} command from the capt-of or caption package – Martin H May 5 '13 at 11:57
    
If you copypasta that response into an answer, I'll tick it! – Hugh May 5 '13 at 12:02
    
@MartinH - With your method, you'll also need to provide instructions such as \clearpage to ensure that the graphs start at the top of a new page, right? – Mico May 5 '13 at 12:07
    
I did say that the figures were "large" so \clearpage isn't required, I don't think. – Hugh May 5 '13 at 12:16
up vote 1 down vote accepted

By default, LaTeX's standard document classes will center a float that occupies a page by itself vertically; providing a location specifier such as [t] won't override this. If you want to the two floats to be top-aligned, you could issue the following commands:

\makeatletter
\setlength{\@fptop}{0\p@} 
\setlength{\@fpbot}{0\p@ \@plus 1fil}
\makeatletter

If you want them to be bottom-aligned, just switch the arguments of the two \setlength instructions.

share|improve this answer
    
And also you can use a nonstretchable, nonzero unit for \@fptop to keep the tops of the figures at the same vertical positions (without losing a sense of balance in the page). – Hugh Jun 7 at 4:46
    
@Hugh - Thanks. You had indicated, three years ago, that the figures were "near page-size". As such, setting \@fptop to a (nontrivial) positive length might risk pushing one or both figures down so much as to make their bottom edge protrude into the page margin. That's why I had suggested setting \setlength{\@fptop}{0\p@}. Naturally, if the figures are not nearly as tall as the text block, then choosing 0pt as the length for the top offset may be too cautious. – Mico Jun 7 at 5:28

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.