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.
30 questions
6
votes
1
answer
392
views
Is groff ignoring `.nh` command?
For a man page written in POD (perlpod) I had the effect that the SYNOPSIS was left-adjusted on the text terminal, but the PostScript output (read: troff) adjusted the text to both borders.
So I tried ...
4
votes
1
answer
296
views
Word split between two lines is not found in man pages search
I'm on Linux Mint 21 (Ubuntu based). Just noted man pages internal search (/) does not find a word if split between two lines (the word is whole in the source of the page, displayed with a hyphen and ...
1
vote
2
answers
342
views
Two Columns For Text And One For Footnotes In Groff
I'm new to groff, so excuse me if it's a silly question. I can't find an appropriate solution for have two-columned content with one-columned footnotes. I've messed with .1C and .2C macros to get the ...
0
votes
5
answers
335
views
Delete columns that contains only numbers
I have a table that containes some data and I need to delete the columns that contains only number (Nr.,Cod,Tiraj):
Nr. Autor Titlu Cod Tiraj Tara
1 Gauss Carl ...
0
votes
1
answer
1k
views
How do I create a table using tbl command [duplicate]
I have to create a table and I tried doing this using tbl
This is how the table should look:
But I can't find a way how to use the tbl command to create this table in a file called authors.
1
vote
1
answer
128
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
2
answers
233
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
1
answer
1k
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 ...
9
votes
3
answers
1k
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 ...
1
vote
2
answers
633
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
1
answer
240
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
1
answer
183
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 ...
2
votes
1
answer
196
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 ...
10
votes
2
answers
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
1
answer
75
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 ...