Questions tagged [troff]

troff is an typesetting language for producing documents.

troff is a typesetting language for producing documents. While popular a long time ago (most famous computer science books were written with troff), nowadays its use is primarily related to writing man pages and most modern usage is done with groff instead. There are a set of tools (pre-processors) that work with troff/groff that enhance its functionality:

  • tbl - writing tables
  • pic - mainly for writing diagrams and flow charts
  • chem - drawing chemical structure diagrams
  • eqn - writing mathematical equations

References

Related Tags

38 questions
0
votes
1 answer

Is there an HTML and/or CSS equivalent of the nroff / troff concept of a "floating display?"

Is there an HTML and/or CSS equivalent of the nroff / troff concept of a "floating display*?" Note that giving an HTML element a style attribute with a value of page-break-inside:avoid emulates an nroff / troff "static display*," not a "floating…
0
votes
2 answers

extraneous space around italics and bolds in manpage?

I am writing a man page. I am displaying only with man -l filename.man. I am running into an issue where my text is displaying as: file/path/[ option ] Where I would like it to display as: file/path/[option]. The offending lines of text (code?) look…
jsarbour
  • 928
  • 1
  • 8
  • 20
0
votes
1 answer

How to use `tbl` command for more than 72 lines?

I used tbl command to format the data in a tabular format and it worked fine for a file which contain 71 lines and when I added another line in the file it break with below error - error: page 2: table will not fit on one page; use .TS H/.TH with a…
VIPIN KUMAR
  • 3,019
  • 1
  • 23
  • 34
0
votes
1 answer

How can I reuse a text portion with commands in nroff?

When writing a UNIX manual page, I realized that some phrase occurs multiple times. I'd like to define it once and reuse it (not by copying with the editor). I see that I can use variables (.ds) for multi-line text, but it fails when the phrase…
U. Windl
  • 3,480
  • 26
  • 54
0
votes
1 answer

Writing portable man pages

If I want to write man pages which are portable between different Unix-like systems, which source language standard should I use? Or can I simply assume that GNU troff (groff) is available everywhere?
August Karlstrom
  • 10,773
  • 7
  • 38
  • 60
0
votes
2 answers

Diacritical marks in man pages

I have written a man page in the nroff syntax. The text is in English but I want to make sure that a name containing the character "ö" is displayed correctly (even on a non-UTF-8 system). Is there a way to specify this character in nroff, similar to…
August Karlstrom
  • 10,773
  • 7
  • 38
  • 60
0
votes
2 answers

Is groff's grammar LALR(1)?

As a pet project, I'm trying to make a groff parser with Jison ( a JavaScript clone of Bison ), but I'm struggling my head trying to figure out if groff's grammar is LALR(1). Does anyone have an insight about this?. Thanks in advance. Update 1 In…
roperzh
  • 890
  • 7
  • 12
-1
votes
1 answer

man 7 groff_man - No manual entry for groff

I am wanting to view more information on the Groff Macro Packages through my Man Page viewer. However, when I try to see them, they do not work. ➜ man groff # [...works as expected...] ➜ man 7 groff No manual entry for groff in…
FilBot3
  • 3,460
  • 6
  • 33
  • 55
1 2
3