Take the 2-minute tour ×
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.

How do I guarantee that the vertical space above and below a figure (including the caption) are equal? The automatic [h!] placement is not doing this by default. In my particular case, it's leaving more space below the figure than above it.

I understand that the spacing will never look "exactly as I want it". However, can I at least make sure that they are equal from above and below?

share|improve this question
    
Related Question: vspace around table and figure environment –  Peter Grill Mar 24 '12 at 17:27

1 Answer 1

In the standard implementation of LaTeX2e there is deficiency around handling in-text floats which indeed results in not applying the space equally. In the answer to the question "intextsep gives doubled space" I discuss this in some detail including ways to improve that situation.

There is a related issue in that even if the spacing above and below is made equal there is the issue that you get adjustments due to the depth of the line in front of the float and those adjustements then make the float visually go off-center. How to improve that is discussed in "parskip inserts extra space after floats (and listings)".

Finally the content of your float may have extra space at the bottom or top if you have a caption there as the caption has a \abovecaptionskip (usually positive and a problem if the caption is on top of the float or table) and a \belowcaptionskip (usually zero, but may not be and then a problem if the caption is below the float.

share|improve this answer

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.