1

I would like to know how it is to write a long algorithm beyond the edges of a page, knowing I used algorithm and algorithmic packages?

enter image description here

  • 4
    Either see Algorithm over two pages, with itemized lists (breaking up the algorithm manually using \algsave and \algrestore) or Algorithm tag and page break (automated break of algorithm that doesn't float). Give some feedback once you've visited these posts. – Werner Feb 21 '15 at 6:06
  • Welcome to TeX.SX! Please help us to help you and add a minimal working example (MWE) that illustrates your problem. It will be much easier for us to reproduce your situation and find out what the issue is when we see compilable code, starting with \documentclass{...} and ending with \end{document}. – ChrisS Feb 21 '15 at 6:07
  • 1
    In my opinion, this is some Java code which implements an algorithm, but the various algorithm packages are designed to show language-independent pseudo-code features. It's better to use listings etc. for the representation of Java code – user31729 Feb 21 '15 at 13:53
  • Isn't is more prudent to call this a source code (program) rather than algorithm? – xxx--- Jun 6 '19 at 15:49

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.