dlee@tut.cis.ohio-state.edu (Dik Lee) (11/04/87)
Is there any way in Latex to print algorithms nicely: must be able to use tab to indent begin/end blocks appropriately; use bold font for key words (begin/end, while, etc.), center the algorithm. The second requirement would not allow verbatim environment, and the last one would not allow tabbing environment. I think tabular is possible but too difficult to use for this purpose. Any suggestion? - Dik Lee. -- Dept. Computer and Information Science dlee@tut.cis.ohio-state.edu The Ohio State University ..!cbosgd!tut.cis.ohio-state!dlee Columbus, OHIO 43210-1277 614-292-2568
bob@aargh.cis.ohio-state.edu (Bob Sutterfield) (11/04/87)
In article <991@tut.cis.ohio-state.edu> dlee@tut.cis.ohio-state.edu (Dik Lee) writes: >Is there any way in Latex to print algorithms nicely...? I am very pleased with tgrind. Other than the fact that it makes TeX rather than LaTeX from your code, what did it not do that you wanted it to do for you? -=- Bob Sutterfield, Department of Computer and Information Science The Ohio State University; 2036 Neil Ave. Columbus OH USA 43210-1277 bob@ohio-state.{arpa,csnet} or ...!cbosgd!osu-cis!bob soon: bob@cis.ohio-state.edu
elwell@tut.cis.ohio-state.edu (Clayton Elwell) (11/05/87)
[Re: formatting algorithms] Well, there are two approaches. Part of the TeX system is a pair of programs called "weave" and "tangle" which are specifically designed to simplify the exposition of algorithms. The only disadvantage is that they are pretty specific to Pascal notation. The second approach is 'tgrind', which is a table-driven pretty printer that produces TeX output. There should be a manual page on Tut. Feel free to come by CAE 246 and talk in person. If I can look at what you want to do, I can get a better idea of which approach would be simpler. -- Clayton M. Elwell UUCP: ...!cbosgd!cis.ohio-state.edu!elwell ARPA: elwell@ohio-state.arpa (if you feel lucky...)
janum@iesd.dk (Henrik Janum) (04/27/89)
We are writing a manual in LaTeX and we want to include screen/keyboard examples in the document. (Standard tty terminal -- WYSE 75) Are there anyone out there who have done this before, if so HOW. Could you send an example ? Thanks, -- Henrik Janum