#Displaying pseudocode

1 messages · Page 1 of 1 (latest)

pure terrace
#

How can I typeset pseudocode exactly like it is shown in the photo?

#

that is, including the highlighting of the keywords

timid bramble
#

use listing with tcolorbox

tribal crystal
#

what's the package you used for pseudocode?

teal vale
#

lstlisting or something

tribal crystal
timid bramble
#

please don't hijack another thread for your own question

viscid lodge
#

there are some packages specifically for writing pseudocode https://en.wikibooks.org/wiki/LaTeX/Algorithms

LaTeX has several packages for typesetting algorithms in form of "pseudocode". They provide stylistic enhancements over a uniform style (i.e., all in typewriter font) so that constructs such as loops or conditionals are visually separated from other text. The pseudocode is usually put in an algorithm environment.
For typesetting real code, writt...