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

Why is my man page formatted incorrectly ONLY when viewed with man?

I am writing a man page for a program, the source looks like this: .TH prog 1 "26 AUG 2010" "Version 0.1" "Center header" .NAME prog \- runs a program .SH SYNOPSIS .B prog When I use $ groff -Tascii -man source.txt | more the output is pretty much…
Derrick
  • 2,356
  • 5
  • 32
  • 43
0
votes
2 answers

How to add literal code lines in manual page?

I'd like to embed a block of code like this: foreach my $n (1..10) { print "$n\n"; } in a groff 'man' document and not have it reformat it into a single line. I'd like to suppress all formatting, and not have groff recognize and process any…
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
0
votes
1 answer

GNU Make: permissions issue creating files

I'm using Make to get some data from a MySQL database, populate a report and email it using cron. I've run into a permissions issue when processing the groff file. The Make: get: $(DATA) $(DATA): bash $(GET) $(SQL) > $@ format:…
Bubnoff
  • 3,917
  • 3
  • 30
  • 33
0
votes
1 answer

How does man.cgi deal with cat vs. mdoc man pages?

I want to start a site with a collection of BSD man-pages, similar to man.cgi, but static HTML, and which includes all the stuff from the ports trees, too. I've tried unpacking man/ from all the OpenBSD packages for a recent release, and I've…
cnst
  • 25,870
  • 6
  • 90
  • 122
0
votes
2 answers

Output a backslash in groff, also avoiding hyphenation

How groff can output \ symbol in my text, do not reading this symbol as a macro? And how to prohibit dividing words with a dash (hyphenation)?
Uncle Leo
  • 15
  • 2
-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 4
5