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

Groff algorithm

2021-01-12 Thread M Douglas McIlroy
> 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. For example, in the -ms package (man 7 groff_ms

Groff algorithm

2021-01-12 Thread Filip
Hi, I wonder how I can format a nice algorithm in the usual sense in groff. I want to write pseudocode... //F