
13 Dec
2023
13 Dec
'23
12:26 p.m.
I wrote:
preconv «troff-file» | groff -man -Tpdf | { okular - & } [etc]
Wouldn’t you know it, another reading of the man pages for preconv and groff reveals that groff has the “-k” option to invoke preconv itself, precisely for this purpose. E.g. the above becomes the simpler groff -k -man -Tpdf «troff-file» | { okular - & } And similarly for the other cases. You can even be slightly tricky and make it just that little bit shorter: groff -kman -Tpdf «troff-file» | { okular - & }