recentpopularlog in

kme : groff   5

Use groff to easily create PDF pages - Mac OS X Hints |
Can I make groff produce PS output with monospaced fonts?

Update (20171218): Yup. Use the "C" (Courier) font, like this:

<code class="language-bash">
# fonts are in /usr/share/groff/<ver>/font/devps
# don't put 'R' ("regular" I guess) or 'B' or 'I' on the end, just "C"
# the files can be viewed with 'less' to discern what their "proper" name is
groff -mandoc -f C -Tps $(man -w manpage) >

(Careful, '-l' sends it straight to the printer.)

From the comments:
As someone who has been using *roff since about 1976 (first roff, under V6 UNIX, then nroff/troff, then ditroff, then MKS/SoftQuad sqroff, then groff under BSDI and FreeBSD and now under MacOS/X), it warms my heart to see that the program continues to live on and have value.

One of the most useful features in the *roff family is the set of filters that exist for it. These are aimed at tables (tbl), equations (eqn), figures (pic), graphs (grap), and references (refer). There are also macro packages that may have value to some other than -mom and -man, such as -ms, which is probably the oldest, widely-used package, and -me, which was designed for typesetting dissertations. Finally, for those who are inclined towards programming, it can be very useful to use make(1) to manage all the pieces, filtering, and transformations in a longer groff document.

There are weaknesses with *roff in today's environment, chiefly the fact that it doesn't directly support output formats that are currently portable, such as .rtf and .pdf (you can get to .pdf from .ps as in the hint and also in various other ways, but the current .rtf translators are unacceptable). The problem is that some journals require either .doc or .rtf for manuscripts. However, there are other output formats that are supported, see groff(1).
groff  typesetting  unix  manual  manpages  mac  osx  tipsandtricks  solution  fuckina 
september 2017 by kme

Copy this bookmark:

to read