
Hold a general text really independant of languages. If you talk about a particular language in your paper, you can focus on this language more, use language specific elements and so on, than if it's a general text. Showing an implementation of some algorithm is done more programming-like, closer to programming languages. Yes there is no guide and I think a convention could make things only more complicated than easier.įor example it could depend on how deep you want to go into details. Now, even if you don't write your documentd with LaTeX, you could write just your pseudocode that way and use the resulting PDF, or just copy the resulting text into whatever editor you are using. Go back to the beginning of current section\ Alternatively, you can have a look at the Algorithms section of the LaTeX WikiBook, which is shorter and simpler and mentions all three. algorithm2e, algorithms or algorithmicx.Įach of the packages have a documentation PDF which includes several examples you can follow, and have multiple in-built commands for things like conditions, repetition, clauses, etc. A de-facto sort-of-convention is using one of the LaTeX algorithm listing packages, e.g.
