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.

I'm using algorithm2e package but my algorithm does not fit in only one page. Is there any way to split it over two pages, even if manually?

If doing it manually, we can use two algorithm environments, but there are some issues:

  1. Maintain the line counting - OK, this can be done by calling the package with noresetcount

  2. Remove the caption from the first/second algorithm (depending if we want the caption in the beginning or end) -- how to do it?

  3. Take care of the vertical lines of the indentation, that is, I expect them to "cross" the pages -- how to do it?

share|improve this question
add comment

1 Answer 1

If you don't have to use algorithm2e, you should have a look at the listings package, which supports listings on multiple pages.

share|improve this answer
add comment

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.