TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. Join them; it only takes a minute:

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

Is there an option in algorithm2e to split the algorithm over several pages? Please no answer with "use algorithmic or listings packages". algorithm2e is the best package for algorithms in latex, so I want to get it running with this package.

share|improve this question
“algorithm2e is the best package for algorithms in latex” – actually, no; it’s definitely not. algorithmicx (note the trailing “x”!) is far superior – Konrad Rudolph May 24 '11 at 14:00
Also a package which has "2e" in its name to indicate that it is for LaTeX2e and not for LaTeX2.x gives me the impression that it is rather old. (@Konrad) – Martin Scharrer May 24 '11 at 14:28

From the algorithm2e documentation:

Caution: algorithms cannot be cut

You could use instead the algorithmicx package which offers you improved functionality and offers the possibility of breaking long algorithms (see Section 2.6 Breaking up long algorithms of the package documentation).

share|improve this answer
Thanks all, I've got it working with algorithmicx. – Ares May 24 '11 at 14:42
Not much better though, it still requires you to manually break the algorithm block. Could mean massive reflow of your document. – Code Different Nov 15 '13 at 2:42

Your Answer


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.