How to adjust man page line length

David J. Weller-Fahy dave-lists-freebsd-questions at weller-fahy.com
Thu Jan 20 04:54:19 UTC 2011


* Polytropon <freebsd at edvax.de> [2011-01-18 13:44 -0500]:
> man2pdf.sh:
> 
> 	#!/bin/sh
> 	[ "$1" != "" ] && zcat `man -w $1` | \
> 	groff -Tps -dpaper=a4 -P-pa4 -mandoc | ps2pdf - $1.pdf
> 
> This would cause groff to format for A4 paper width.  It's fully
> possible that a similar approach can be used for requesting a specific
> terminal width given in characters, rather than inches or centimeters
> (from a predefined value).

I forgot to mention in the [SOLVED] email - thank you for mentioning the
groff command-line, as it helped in both the initial and final
solutions.

Regards,
-- 
dave [ please don't CC me ]
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 195 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-questions/attachments/20110120/046a41b8/attachment.pgp


More information about the freebsd-questions mailing list