The GNU enhanced re-implementation of Joe Osanna's 1975 `roff` text formatting mark-up language, macros, and its related programs (also known as `troff` and `nroff`). Used at the command line to format manual pages (`man` pages) on Unix-like operating systems.

learn more… | top users | synonyms

1
vote
0answers
20 views

Troff Load User Font

In Heirloom Troff, is it possible to just load an OTF font (or another supported format) via a URI? I’m trying, .fp 10 R /Users/jacob/Restore/Fonts/Roboto/Roboto-Medium.ttf ttf .ft 10 .ft R Test ...
2
votes
2answers
43 views

How do I choose a groff macro package?

I want to try a classic groff macro package for structured technical documents as a replacement for the arguably more complex LaTeX and DocBook. I understand ms was the earliest macro package, and mm ...
2
votes
1answer
75 views

How do I generate manpages using escape codes for bold, etc.?

While inspecting the source code of less, I noticed that the included manpage (less.man) used terminal escape codes for showing bold text: ^[[1mNAME^[[0m less - opposite of more ...
1
vote
2answers
51 views

How to control content of header in groff man macros

I'm using the groff man macros to produce general purpose documentation (not actually man pages) because they are easy to learn and use. I'd like control of the postscript page header as free text ...
1
vote
0answers
81 views

Man page to PDF with groff: no space after headings

I have written a 250+ page manual page whose printed appearance I'm trying to polish. It uses the old-style man macros: the page begins with .TH, and uses things like .SH, .SS and .TP for sectioning. ...
1
vote
1answer
256 views

How do I display a manpage with groff in/on msysgit?

I've been unable to correctly set up a MANPATH environment variable in msysgit (1.9.0; 20140217) on Windows 7 (which is not my main concern here). Every time I execute the man command, I recieve the ...
2
votes
1answer
121 views

Properly inserting code samples in man pages

I'm trying to write a man page for a software, and would like to include some code snippets. I'm currently using the .RS and .RE macros as part of a custom-made .SAMPLE macro, but for some reason that ...
5
votes
3answers
352 views

Is troff/groff relevant anymore?

I've heard that troff/groff have largely been replaced by TeX. Is this true? The only thing that I know actually used troff nowadays is manpages. Is this also true? If not, what are some other uses?
0
votes
1answer
425 views

Man displaying groff control characters

Man is displaying groff control characters after I compiled a later version of groff. For example, when I try to view groff's man page: GROFF(1) General Commands Manual ...
5
votes
1answer
799 views

convert man output to ebook format

I can convert man output to PDF. First, man -t grep >grep.ps (grep is just an example; I am not looking for mobile version of grep man page). Then Adobe Distiller converts PostScript to PDF. ...
1
vote
3answers
785 views

Can groff create a ps file with interpreted ANSI escape characters?

This question is inspired by this one on SU. How can I print bold or color using lp and ANSI escape sequences? I know how to display, for example, bold text in the terminal: $ echo -e ...