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.

Is there any support for procedures/methods in the algorithmic package? Of course one could use several algorithms to define each method/procedure however because LaTeX usually doesn't put more than three float environments on one page the environments have the bad behaviour to appear pages after they are mentioned. Perhaps there isn't a command that handles this, however I am quite sure there must be an elegant workaround.

share|improve this question
3  
I would suggest you to use the algorithmicx package instead; this package offers you increased functionality (predefined blocks for procedures and functions, for example). –  Gonzalo Medina Mar 7 '12 at 22:59
    
That's a nice solution for this problem. Thanks! –  CommuSoft Mar 8 '12 at 22:52
    
You're welcome! If it's OK with you, I'll post my comment as an answer so you can accept it ;-) –  Gonzalo Medina Mar 8 '12 at 23:06
add comment

1 Answer

up vote 1 down vote accepted

I would suggest you to use the algorithmicx package instead; this package offers you increased functionality (predefined blocks for procedures and functions and the possibility to define your own customized blocks, for example).

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.