Questions tagged [groff]

Groff (GNU troff) is a typesetting system that reads plain text mixed with formatting commands and produces formatted output. Output may be PostScript or PDF, html, or ASCII/UTF8 for display at the terminal.

Groff (GNU troff) is a typesetting system that reads plain text mixed with formatting commands and produces formatted output. Output may be PostScript or PDF, html, or ASCII/UTF8 for display at the terminal.

http://www.gnu.org/software/groff/

67 questions
0
votes
1 answer

groff for Windows: man pages bad formatted when output in windows command prompt

From Windows command prompt I am using groff for Windows to display some man pages. I can see that some characters are not being correctly outputted and in some case depending on the device being passed in as parameter I get some warnings. For…
Willy
  • 9,848
  • 22
  • 141
  • 284
0
votes
1 answer

GNU make: several targets in one pattern rule

With explicit targets I can combine several rules like foo.o bar.o: $(SOURCES) cc $< -o $@ This is equivalent of foo.o: $(SOURCES) cc $< -o $@ bar.o: $(SOURCES) cc $< -o $@ But I want to use pattern rules. I have several troff…
user996142
  • 2,753
  • 3
  • 29
  • 48
0
votes
1 answer

Groff: how to successfully compile a manpage, containing Cyrillic in UTF-8?

Colleagues, please tell me what arguments you need to set for groff so that it compiles the manpage writed in Cyrillic, in UTF-8 encoding. I have a number of pages written in markdown and converted to nroff by the lowdown utility. Groff version…
ogogon
  • 70
  • 5
0
votes
0 answers

Asymmetrical Groff output

For years, I've been generating tables created with raw Groff commands. All I did was groff -t file >file.ps, and I got what I wanted. The administrator upgraded gnu utilities, and now the same scripts produce output on a page that seems longer and…
0
votes
1 answer

Using groff to generate pdf man pages for a c program file

Give a working c code how to use groff to generate man pages for it in pdf format . Is it something that can be automatically generated or does it require any manual file creation? The only instruction I have is to use groff with the “man” macro…
pensee
  • 375
  • 1
  • 10
0
votes
0 answers

My man page output does not start at first line of display

I'm writing a man page for a script that I installed at my company, my first such man page. I began by copying the man page for cat to my new man/man1 directory. I then issued the man command for that page and got perfect output. I then started…
fireblood
  • 151
  • 4
0
votes
0 answers

groff in chroot environment

I want to use groff in a chroot environment. It bombs out with "Abort trap" which is not very helpful as an error message. I assume it is invoking some tool or data it can't reach. I can run the same command outside the chroot environment without…
0
votes
1 answer

Groff, mom - table is wider than the page width

I have a table that is wider than the page width. How can I change the font size or table width so that it fits on the page? The second question is, how do I set the table in portrait orientation? Here is a part from the alpha.csv…
Aaron
  • 769
  • 1
  • 14
  • 25
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
0 answers

More advanced mathematic typesetting using groff and eqn?

I've been learning Groff and eqn for document typesetting - I'm a physics and mathematics student, so a lot of my documents require semi-complex mathematical formatting. Generally, I'm using eqn for the equations, and it's working well, but I've…
0
votes
1 answer

Nested bulleted lists in roff/groff?

I'm trying to construct a nested bulleted list in roff. I'm on macOS, using GNU groff version 1.19.2. From the roff documentation, it seems like the .IP macro is an appropriate way to do this. So I'm .IP for the bulleted items, in combination with…
Andrew Janke
  • 23,508
  • 5
  • 56
  • 85
0
votes
1 answer

Opening a newly created man file in a text editor BASH

I've created a new groff file, now named junk-man.1.gz (as I've been asked to gzip file). How do I view the man file in gedit? I want to be able to view the man file as in all its presented glory, not the original groff code.
Chris Daly
  • 17
  • 3
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

Combine eqn math in pic labels

I want to add math equations to pic labels. How can I write such a thing, for example box "This is an $1 over 2$ test" "using math in pic labels" . I know of ctan circuit_macros, but that would require a tex document. I want the document to stay in…
ikrabbe
  • 1,909
  • 12
  • 25
0
votes
0 answers

Changing font size in groff does nothing

I have an unordered list defined in groff, but the system I'm on can't render the unicode bullet character, so I wanted to use a small o, and I've tried to use \s-2 to decrease the typesize by two, yet, when I open said file with man, the o doesn't…
Alexej Magura
  • 4,833
  • 3
  • 26
  • 40