Hi Ken,
Simple,
  # man foo | col -b > foo.mantxt
where foo is the command.

:)

Thanks to man page of man command.  :-P


--regards
Prosun Prodhan 09339192066(M)
Registered Linux User # 318610
(LiCo : http://www.linuxcounter.net, formerly http://counter.li.org)

Use Open Document Format. Try  OpenOffice (http://www.openoffice.org) or
LibreOffice (http://www.libreoffice.org) - Free Of Cost.

[When you say, "I wrote a program that crashed Windows," people just stare
at you blankly and say, "Hey, I got those with the system, for free."  -
Linus Torvalds]

NOTICE:
This message contains confidential information and is intended only for the
individual named. If you are not the named addressee you should not
disseminate, distribute or copy this e-mail. Please notify the sender
immediately by e-mail if you have received this e-mail by mistake and
delete this e-mail from your system. E-mail transmission cannot be
guaranteed to be secure or error-free as information could be intercepted,
corrupted, lost, destroyed, arrive late or incomplete, or contain malware -
harmful to the system. The sender therefore does not accept liability for
any errors or omissions in the contents/attachments of this message, which
arise as a result of e-mail transmission. Please note that this is a
PERSONAL mail-id and any views or opinions presented in this email are
solely those of the author and do not necessarily represent those of any
company.

On Mon, Jun 27, 2016 at 6:14 PM, Ken Teh <[email protected]> wrote:

> Thanks for the tip.  Grog outputs
>
>   groff -t -man
>
> which is what 'man -t' does.  So, the error is still there.  The error
> description explicitly says how to fix the problem.
>
>   error: page 11: table will not fit on one page; use .TS H/.TH with a
>   supporting macro package
>
> If I read this right, it says to add troff markup to the man page source
> and to rerun groff with one or more additional packages.
>
> Chasing this down will take me too far afield.  The firewalld site has
> the man pages in html and they print nicely via the browser.
>
>
>
>
> On 06/24/2016 11:23 PM, James Cloos wrote:
>
>> "KT" == Ken Teh <[email protected]> writes:
>>>>>>>
>>>>>>
>> KT> Does anyone know enough groff to help me print this man page?
>> KT> # man -t firewall-cmd > /tmp/firewall-cmd.ps
>>
>> Copy the source man page to someplace like /tmp, run grog on it to see
>> what options are required (for things like tables, equations and the
>> like) and then add -Txhtml or -Thtml to the arguments.
>>
>> grohtml specifies an extremely long page length (infinite is
>> unavailable) so the table should work.
>>
>> And then use a browser to print the x?html.
>>
>> -JimC
>>
>>

Reply via email to