Questions tagged [groff]
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.
86 questions
3 votes
2 answers
147 views
Creating a text file from man page including pagination
I want to create a text file of a man page that includes pagination. This will allow later to send to a legacy line/matrix printer. This implies that the command header and footer will be repeated in ...
2 votes
1 answer
102 views
Cannot insert the mapsto character ↦ in groff
I am trying to learn how to insert the mapsto (↦, U+21A6) character in groff. I am trying to use this code to insert the character \[u21A6] But I get the following error message and nothing is ...
0 votes
2 answers
143 views
gtksourceview: syntax highlight for language groff in gedit
Sciancisco and I developed a syntax highlighter for the Groff markup language to be used with Gedit, Pluma, Xed etc. I installed it in /usr/share/gtksourceview-4/language-specs/groff.lang and it ...
6 votes
1 answer
412 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 ...
1 vote
1 answer
66 views
How do I append an option argument to the flag without spaces?
I am writing a program manual in mdoc(7). One example of my programs has this synopsis: parsrc.sh [-lf<s>] [CSV_file] Taken from ShellShoccar-jpn/Parsrs/parsrc.sh For example if you run parsrc....
4 votes
1 answer
314 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 ...
0 votes
1 answer
109 views
Change header/footer font with groff mm
I am currently testing the mm and mom macro packages and noticed that the default font family is not used for headers/footers with mm (unlike mom, which uses the selected font for all text). My test ...
4 votes
1 answer
111 views
Input encoding in groff macro files
The -K option allows me to specify my troff file's encoding, but this does not seem to extend to macro files. If a custom macro file contains non-ASCII characters in a string, the output looks like ...
0 votes
1 answer
102 views
Slight indentation with non-regular (bold/italic) font in groff
I am new to groff and noticed a slight indentation if the first word of a paragraph (or new line) is set in a non-regular font. In the following example, this happens only in the second and third ...
1 vote
1 answer
476 views
GREP error: warning: cannot select font 'i'
I am in the process of learning the usage of iscsiadm and somehow I noticed a strange behavior of grep. Attempting to run the following grep command man iscsiadm | grep "aia" results in ...
0 votes
2 answers
145 views
Groff -ms .R macro not working; Can't format heading
groff version: 1.22.4 My style guide insists on formatting headings following way: Level 1 UPPERCASE BOLD 12pt Level 2 Bold italic letters 10pt Level 3 Italic letters 10pt According to reference for ...
0 votes
2 answers
177 views
groff -mandoc creating "ESC[1m" versus overstriking with backspace for bold text
I found that groff uses different ways to indicate bold text for the utf8 output format. On FreeBSD 14, groff emits escape codes for a terminal (ESC, [1m): $ printf ".Dd today\n.Sh NAME\n" | ...
1 vote
1 answer
93 views
Converting non-English manual pages to PDF/PostScript
I'm trying to convert manual pages containing either Japanese or Russian characters to the PDF/PostScript formats. I'm doing it with the following commands. man -Tpdf /usr/share/man/ja/man1/vim.1.gz &...
1 vote
2 answers
366 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
2 answers
252 views
Console doesn't render according to man manual
So why is my console on Ubuntu doesn't render according to the man manual? If I type in man man in the console I get a manual for man. And for example, it points out that italic text replace ...