2

I am beginner of LaTeX, and wondering how to write functions or procedures in pseudocode. Is there any existing environment for that?

  • 2
    Try the algorithm2e package (which you already tagged :-) ) – Martin Scharrer Jul 13 '11 at 14:59
  • 2
    There's also algorithmicx – egreg Jul 13 '11 at 15:02
  • what to write in latex... is there any examples? – Richard Jul 13 '11 at 15:08
  • 1
    LaTeX is about reading documentation. You should do it too. – Andrey Vihrov Jul 13 '11 at 15:12
2

For what it's worth, I'm posting a summary of the comments as an answer.

There are several LaTeX packages for typesetting pseudocode. The most prominent are, in no particular order:

The listings package also has an experimental feature called literate programming with similar goals.

Your Answer

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

Not the answer you're looking for? Browse other questions tagged or ask your own question.