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
1
vote
1 answer

man – How can I make part of the word italic?

How can I make part of word italic in groff manpage? When I write this: .TH prog 1 normal .I italic Output is like this: normal italic How can I do this without inserting the space between words normal and italic? normalitalic
jiwopene
  • 3,077
  • 17
  • 30
1
vote
2 answers

Can a number register be used in a groff request?

Can someone explain to me why embedding literal values (e.g., "1c") in the .po ("page offset") request works but referencing a number register does not? .\" Set the dimensions of an A4 page. .nr a4_width 21c .nr a4_height 29.7c .nr…
magnus
  • 4,031
  • 7
  • 26
  • 48
1
vote
1 answer

tbl with groff/ntoff: borders messed-up when reaching end-of-page

As output for a script, I produce inut for tbl. However, when a table seems to reach an end of page, the borders of a table go all over the place. As an example: │ │ │ │ │ …
Ljm Dullaart
  • 4,273
  • 2
  • 14
  • 31
1
vote
1 answer

Man page, as structured data (csv, database, ...)

In order to simplify my question, I mainly consider man pages of commands. eg «man grep». Man pages are, more or less, structured. Most sections and their presentation are standard, and an explanation can be found on…
Arthur Rainbow
  • 216
  • 1
  • 8
1
vote
1 answer

ASCII diagram formatting messed up in Nroff

I am using Nroffeditor to develop a rfc like document and adding a ascii diagram, which I handcrafted. There is a online tool asciiflow.com, which can also be used. When I paste the ASCII diagram in the NroffEditor, it shows a messed up diagram in…
AnilJ
  • 1,951
  • 2
  • 33
  • 60
1
vote
2 answers

Force man to output ANSI codes

I'm using man along with man2html to automatically generate some html documentation, along the lines of man manpage | man2html. This is working well, except when I run it on Travis CI, man is not generating the proper escape sequences to make…
asmeurer
  • 86,894
  • 26
  • 169
  • 240
1
vote
0 answers

How to generate images?

Generates an HTML page with a link to image without image file: man -Hfirefox 3 exit Generates an HTML page with link and file, but it is empty (zero size). Also generates the code for the table, but it is empty: zcat /usr/share/man/man3/exit.3.gz…
Mauricio
  • 670
  • 1
  • 8
  • 23
1
vote
1 answer

Groff "Page n of m" with mom

We're using groff with the mom macros for generating reports, and we'd like to change the page numbering from the "- n -" format to "Page n of m". Looking through the mom documentation, I see several ways of formatting the page number, but nothing…
Frank Hunleth
  • 720
  • 4
  • 13
1
vote
1 answer

Text codepage in groff

How to setup a correct codepage in groff? For example to use a cyrillic language. Man page notes about -T switch. But troff -T utf8 -ms troff_file.txt gives: warning: invalid input character code 128`
egor7
  • 4,678
  • 7
  • 31
  • 55
1
vote
1 answer

Preview a troff file

So, I have a text file, embedded with troff formatting commands. However, my printer is currently broken, but I want to see what the file looks like, so I can make sure everything is correct. Is there a program that can interpret the commands and…
1
vote
1 answer

How do I add a blank line in an unix man page using groff?

I tried the following and it doesn't work: .SH ADD A NEW TEST Everytime you invoke a command within the shell, this is what actually happens: the shell search for a folder named as your command inside the directory .B path/to/framework/Tests or any…
Zagorax
  • 11,440
  • 8
  • 44
  • 56
0
votes
1 answer

How to convert a PDF file to letter size using groff?

I am trying to convert a text file in groff format to PDF, using the following command: groff -Tps -dpaper=letter -P-letter -P-l -ms foo.ms | ps2pdf - output.pdf The command works fine and outputs me a PDF file, but the paper size is "a4". I would…
null null
  • 19
  • 1
0
votes
1 answer

Multiple page breaks in ms macros

In groff using ms macros, how can I insert multiple page breaks one after another? This only produces one new page before the next paragraph (as expected): .bp .bp However this also only produces one new page before the next paragraph: .bp +2 I…
Galladite
  • 83
  • 6
0
votes
2 answers

How to get Groff to not print empty lines?

It's been some time since posting to the forum. I've been trying to find a solution in the bash or zsh programming language that would allow me to cat tables to files that later I could update with textual strings including info on time and dates,…
0
votes
1 answer

using groff inside of a flatpak container

I am trying to call the program groff from inside a gedit flatpak (external tools plugin). The flatpak can access the groff binary, but groff looks for files at /usr/share/groff, while in flatpak, this path is mapped to…