Questions tagged [roff]

The general name for a family of text formatting programs and mark-up languages, all descended from CTSS's 1964 `RUNOFF` system. Current versions are known as `groff`, `troff`, `nroff`, `ditroff`, etc. and are used at the command line to format manual pages (`man` pages) on Unix-like operating systems.

8
votes
2answers
2k views

Is Troff Turing complete?

Troff supports both macro definitions using .de and branching using .if (see pages 5 and 6 of the Troff user's manual). In these two respects, it is very much like TeX. However, I don't know of highly ...
0
votes
1answer
42 views

Rendering of underlined dots in man

If you look at the documentation source for man(1) (probably at /usr/share/man/man1/man.1.gz) using, you'll notice lines like this one - .IR page [.\| section \|]\ \|.\|.\|.\|]\ \.\|.\|.\& This ...
0
votes
1answer
226 views

Embed ascii diagram in groff?

I have groff file to generate a pdf in the format: .TL Article title .AU Author name .AI Publication title .SH .LP First paragraph .PP More paragraphs I'm then running groff -ms a.ms -T pdf > a....
3
votes
3answers
87 views

How to access man pages as structured content

I'm building a resource that references man pages, and I'm wondering if anyone knows of a way to access man pages as structured data? My current approach is to do a lot if REGEXing, but this is ...
2
votes
1answer
128 views

exporting man pages to postscript

I found that I can save man page into ps format: man -t man > file.ps or to pdf: man -t man | ps2pdf - file.pdf Apart from the man page itself, the export includes man version, page numbers and ...
3
votes
1answer
1k views

How do I convert a troff manpage with UTF-8 characters (czech to be precise) to PDF

I have a troff document (manpage) with UTF-8 characters and I am trying to convert it to a PDF. However, when using the -Tpdf option, the PDF generated does not show the correct characters. This is ...
1
vote
3answers
205 views

How can 'man' render double quotes not as doubled backtick and prime characters?

When I do a command such as: man bash I see quotes shown as: ``...'' There have been posts about why this happens: Man page quotation characters Why some strings are quoted with double backticks ...
2
votes
3answers
145 views

How to add a dot to a raw man file at the end of a line?

I've got a fragment of a manual file which looks like this: .TP .I krb5_key_file Location of the key for this client's principal. Note that the key file must be owned by root and mode 0400. The ...
4
votes
1answer
403 views

TROFF to pdf or docx conversion?

I have my partially complete PhD thesis in TROFF format (?) - so it would laser print from the unix station back then. It has had a layer of Atari 1stWord encapsulation, which may still be at the ...
5
votes
1answer
553 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 ^[[1mSYNOPSIS^...
6
votes
2answers
722 views

Man page quotation characters [duplicate]

I've just been looking through a few man pages for a few different commands including grep and ifconfig. I've noticed over a few pages, the content uses a strange syntax to notate what i think are ...
2
votes
1answer
198 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 ...
3
votes
0answers
2k views

troff to PDF conversion

I am very new to UNIX and trying to learn troff. I have some set of very old written troff files (before 20 years from now). Some samples are hereunder: file_00.g B,4.5,3.5,15.5,23.5 D,1.3,1.25,1.5,...
2
votes
1answer
282 views

groff to PS Conversion

I am very new to UNIX, learning groff with the help of cygwin on Windows XP SP3. I have downloaded groff-binaries from here, but using cygwin, I could not able to re-produce ps files. I have used ...
6
votes
1answer
1k views

Emacs mode for man pages

I'm translating man pages, and have run in to a few problems with Emacs. How do you specify language? (With man, it looks like this man -Lsv shutdown for the Swedish "sv" subdirectory, if available.) ...
14
votes
3answers
7k views

Find and install man file manually

I seem to be missing some man pages, notably gcc and g++. It doesn't help that I specify the section. whereis doesn't list man pages for those two, so I think they are simply not there. With Google I ...
6
votes
1answer
372 views

Nested lists in man page

I have a command line parameter that takes a number of flags afterwards, which I would like to have as a list inside the parameter list in the man page. Currently I am simply making lines of Flag - ...