Re: What do we have that will save a manpage as we see it on-screen
On Fri, Oct 1, 2021 at 12:25 PM Gene Heskett <gheskett@shentel.net> wrote:
>
> Greetings all;
>
> With the man markup subtracted, so what we save is exactly what we see.
Maybe one of these man option will work for you:
-t, --troff
Use groff -mandoc to format the manual page to stdout.
This option is not required in conjunction with -H, -T, or -Z.
-T[device], --troff-device[=device]
This option is used to change groff (or possibly
troff's) output to be suitable for a device other than the default.
It implies -t. Examples (provided with Groff-1.17)
include dvi, latin1, ps, utf8, X75 and X100.
-H[browser], --html[=browser]
This option will cause groff to produce HTML output, and
will display that output in a web browser. The choice of browser is
determined by the optional browser argument
if one is provided, by the $BROWSER environment
variable, or by a compile-time default if that is unset (usually
lynx). This option implies -t, and will only work with
GNU troff.
-X[dpi], --gxditview[=dpi]
This option displays the output of groff in a graphical
window using the gxditview program. The dpi (dots per inch) may be
75, 75-12, 100, or 100-12, defaulting to 75;
the -12 variants use a 12-point base font. This option
implies -T with the X75, X75-12, X100, or X100-12 device respectively.
-Z, --ditroff
groff will run troff and then use an appropriate
post-processor to produce output suitable for the chosen device. If
groff -mandoc is groff, this option is passed to
groff and will suppress the use of a post-processor. It
implies -t.
man -Tpdf will get you a PDF.
Reply to: