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.

Filter by
Sorted by
Tagged with
1
vote
1answer
29 views

How do I output an individual eqn described equation to a .ps or .eps?

I would like to reuse the output from eqn to get PS or EPS files which contains just the equation and not a complete A4 with the equation. If I try: $ cat test.eqn .EQ For ~ y=1 ~ -> ~ L( y hat , y)...
0
votes
2answers
29 views

How do I scale a whole figure in pic?

Given a pic figure: .PS circle "Foo" arrow box "Bar" arrow box dashed "Foo" "Dashed" .PE Is it possible to scale the whole diagram element's widths and heights?...
2
votes
1answer
27 views

How can I include a pic figure as external file in groff?

While using groff and pic it is possible to do: $ cat test.ms .TL Test .NH 1 Test Header .PS circle arrow box .PE $ cat test.ms | groff -ms -p > test.ps Which generates a valid test.ps file ...
8
votes
3answers
287 views

Are ∈ and ℝ symbols available in eqn/roff?

A set of commonly used symbols to represent that a variable belongs to a given real coordinate space are ∈ ("ELEMENT OF", Unicode U+2208) and ℝ ("DOUBLE-STRUCK CAPITAL R", Unicode ...
0
votes
2answers
40 views

Inserting the date in groff

How can I insert today's date in groff? I know I can type today's date directly, but I would like the date to dynamically be produced, so that a document could be recompiled with a new date without ...
0
votes
1answer
39 views

Is there a way to prevent line breaks in man pages?

Title says it all. I'm just trying to avoid awkward line breaks between words. I read somewhere that in {,t,g}roff using ~ in place of a space should do it, but that doesn't seem to work for man pages ...
0
votes
1answer
54 views

groff registers not defined during macro

Context: Let's say I am trying to write a macro in groff in order to draw a rectangle given some arguments (like width and height for example). For this I need to perform some simple arithmetic, that ...
1
vote
1answer
71 views

Does Groff have an updated formatting algorithm (Knuth-Plass/other)?

In the groff mission statement it says that Groff will be moving to an improved formatting algorithm. Considering that the mission statement was written in 2014; I was wondering where this was at ...
9
votes
2answers
3k 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
45 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 ...
1
vote
2answers
670 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
208 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 ...
1
vote
1answer
274 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 ...
6
votes
1answer
2k 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
442 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
164 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
811 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 ...
8
votes
1answer
948 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^...
8
votes
2answers
1k 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
261 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,...
3
votes
1answer
353 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 ...
7
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.) ...
13
votes
3answers
9k 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 ...
7
votes
1answer
664 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 - ...