I would like to create a verbatim environment for writing pseudo-code in. Anyone have any suggestions/hints on how to go about it. I've looked at verb-*.tex, but they don't enlighten much. I basically want simple stuff like pseudo-code you'd find in one of Knuth's books or anything by Aho, Sethi, Hopcrof, and/or Ullman and those kinds of books. nikolai -- ::: name: Nikolai Weibull :: aliases: pcp / lone-star / aka ::: ::: born: Chicago, IL USA :: loc atm: Gothenburg, Sweden ::: ::: page: www.pcppopper.org :: fun atm: gf,lps,ruby,lisp,war3 ::: main(){printf(&linux["\021%six\012\0"],(linux)["have"]+"fun"-97);}
* Nikolai Weibull
I would like to create a verbatim environment for writing pseudo-code in. Anyone have any suggestions/hints on how to go about it. I've looked at verb-*.tex, but they don't enlighten much.
I basically want simple stuff like pseudo-code you'd find in one of Knuth's books or anything by Aho, Sethi, Hopcrof, and/or Ullman and those kinds of books.
What I really need to know now (I got a small implementation I want to try out) is how to install the verbatim environment and then how to try it out. nikolai -- ::: name: Nikolai Weibull :: aliases: pcp / lone-star / aka ::: ::: born: Chicago, IL USA :: loc atm: Gothenburg, Sweden ::: ::: page: www.pcppopper.org :: fun atm: gf,lps,ruby,lisp,war3 ::: main(){printf(&linux["\021%six\012\0"],(linux)["have"]+"fun"-97);}
* Nikolai Weibull
What I really need to know now (I got a small implementation I want to try out) is how to install the verbatim environment and then how to try it out.
OK. Here's a preliminary implementation. Perhaps using a verbatim environment complicates matters unnecessarily. Anyway, set up with [palet=,style=\rm,icommand=\bf,ccommand=\rm] it looks kind of nice. Suggestions for other solutions are welcome. But I need to start writing down some algorithms soon, so... nikolai -- ::: name: Nikolai Weibull :: aliases: pcp / lone-star / aka ::: ::: born: Chicago, IL USA :: loc atm: Gothenburg, Sweden ::: ::: page: www.pcppopper.org :: fun atm: gf,lps,ruby,lisp,war3 ::: main(){printf(&linux["\021%six\012\0"],(linux)["have"]+"fun"-97);}
participants (1)
-
Nikolai Weibull