Re: Groff algorithm

2021-01-12 Thread Damian McGuckin
On Tue, 12 Jan 2021, M Douglas McIlroy wrote: I wonder how I can format a nice algorithm in the usual sense in groff. I want to write pseudocode...\ It all depends on what you mean by "nice". If it's just a properly indented listing, most of the standard macro packages have adequate support. F

Re: Groff algorithm

2021-01-12 Thread John Gardner
Both syntax highlighting and elegant algorithm specifications would make great preprocessors. ;-) I find the latter works best when used tastefully (and never, *ever* in a manual page). It'd be trivial to write an Awk script for replacing basic-looking keywords, substituting them with proper place