Graphics, Figures & TablesAlgorithm2e my algorithm is too big

Information and discussion about graphics, figures & tables in LaTeX documents.
Post Reply
marcoesteves
Posts: 18
Joined: Tue Jun 09, 2009 3:33 pm

Algorithm2e my algorithm is too big

Post by marcoesteves »

Hello,
I've got a problem.
I'm using algorithm2e package, and my algorithm has more than one page.
Package help says "one algorithm can't be cut".
How can I manage this?
I've got 3 cycles, so I can't cut algorithm (manually) in two.

THanks

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

User avatar
gmedina
Posts: 2313
Joined: Wed Jul 11, 2007 11:45 pm

Algorithm2e my algorithm is too big

Post by gmedina »

Hi,

if it only exceeds the page by few lines, you could try changing to a smaller font and/or enlarging the page with

Code: Select all

\enlargethispage{3\baselineskip}
changing 3 to the appropriate value.

If the algorithm spans almost two pages, and you don't want to (or cannot) split it manually, I would suggest you to use the listings package instead.
1,1,2,3,5,8,13,21,34,55,89,144,233,...
Post Reply