Tell me more ×
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.

I am using the algorithm package and I seem to have a lot of whitespace created when placing an algorithm.

\usepackage{algorithm} 
\usepackage[ruled,vlined]{algorithm2e}

\begin{algorithm}[H]
\SetAlgoLined

\end{algorithm}

The whitespace occurs by the use of a H. If it can't fit on the previous page then whitespace is added between all paragraphs, making it look ridiculous.

I understand the H is must be here but when I change it to a h, it makes the entire document go to the left and fits text into about an inch!

share|improve this question
1  
Can you please add a minimal, yet complete document illustrating the undesired effect mentioned at the end of your question? – Gonzalo Medina Sep 13 '12 at 14:54

closed as too localized by lockstep, percusse, Joseph Wright Oct 6 '12 at 21:43

This question is unlikely to help any future visitors; it is only relevant to a small geographic area, a specific moment in time, or an extraordinarily narrow situation that is not generally applicable to the worldwide audience of the internet. For help making this question more broadly applicable, see the FAQ.