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 am beginner of LaTeX, and wondering how to write functions or procedures in pseudocode. Is there any existing environment for that?

share|improve this question
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
add comment

1 Answer

up vote 2 down vote accepted

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.

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.