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
2
votes
1 answer

Is this a troff file, and if so how do I convert to ps or pdf?

I have a file with the following heading: .PS .ps 8.5 boxht = 1/6 boxwid = 0.3 moveht = 1/12 movewid = 0.15 linethick = 0 It looks like a troff file, at least that's what Linux file tells me (I have not been able to simply open it with, say,…
Dervin Thunk
  • 19,515
  • 28
  • 127
  • 217
2
votes
1 answer

avoid space in manpage after .BI

I'm attempting to write a somewhat portable manpage, in which I need to describe the format of a particular string. I use the .BI macro to switch between fixed and variable parts, however I have more than six components (which is non-portable), and…
Simon Richter
  • 28,572
  • 1
  • 42
  • 64
1
vote
1 answer

Rendering Swedish Å Ä and Ö with groff, mupdf

I am learning to use groff as an alternative to Latex and am struggling with rendering Å Ä and Ö characters. In an English only setting, I have been running groff with: $ groff -ms example.ms -T pdf > example.pdf and then viewing my pdf with : $…
dublc
  • 13
  • 4
1
vote
1 answer

Missing ".TH" section when converting .rst file to groff format in pandoc (reStructuredText, manpage)

What should I put in a source reStructuredText file to populate the "Title Heading" (.TH) line in the destination file when using pandoc to convert it to groff-format? I have a python project whose documentation is built with sphinx. As such, most…
Michael Altfield
  • 2,083
  • 23
  • 39
1
vote
1 answer

Where can latex classes ported to g/troff?

I’m becoming horrified at latex’s verbosity so excited by g/troff But where can I find popular latex classes like ieeetrans or acmart ported to g/troff?
Tim Menzies
  • 641
  • 5
  • 14
1
vote
1 answer

Is there a way to exit double column mode without page break in groff?

I'm trying to write up my CV in groff/troff and would like to have my contact details in two columns at the top, one column adjusted on the left and the other on the right. I tried doing it like this: .2C Name .LP Address line 1 .LP Address line…
1
vote
1 answer

Use cedilla in groff .ms type document to export as pdf

I'm struggling to use special characters in .ms document. Is there a way to use cedilla in a .ms document to export to pdf using groff?
Souza13
  • 35
  • 1
  • 3
1
vote
2 answers

Extraneous space between characters/glyphs in groff eqn

I am running ubuntu 16.04 (it is on an OLD laptop). I am using 'pic | eqn -Tpdf -d@@ | groff -mm -Tpdf' software as per the ubuntu release. I need some symbols which are not in the standard groff TIMES font for the release. I have found the…
petern0691
  • 868
  • 4
  • 11
1
vote
0 answers

MacOS groff -mom unable to produce hyperlink

I have been trying to output a pdf using groff mom. I am using the below: groff -mom test.txt | pstopdf -i -o test.pdf Everything is as expected, except it completely ignoring .PDF_WWW_LINK and I can't figure out why. I am on MacOS, and cannot use…
1
vote
2 answers

Groff Eqn - How to do higher roots (cube root, etc)

Does someone know how to do higher roots (cube roots, 4th roots, etc) in groff eqn? Been searching around the docs and cant seem to find the answer
1
vote
2 answers

How to make a loop to compile groff documents into a specific folder

I have several .ms documents scattered in different folders and I would like to make a script which compiles each .ms document and output the corresponding .pdf file in a specific folder. The folder structure is as…
Emperor_Udan
  • 157
  • 8
1
vote
1 answer

GROFF PDFPIC converted w ImageMagick to .ms document causes "troff: sample.ms:18: division by zero" and leads images to show very right of the pdf doc

I converted my original image to pdf with ImageMagick. If viewed independently, the pdf image looks perfectly normal. sample.ms : .PDFPIC Figure_1.pdf Once I try to compile my .ms document with the following command: groff -ms sample.ms -U -T pdf…
1
vote
1 answer

groff putting single word on line after trap

I have a groff document, however, when I set the trap to create a footer, groff puts one word after the specified height, then executes the macro for the trap. I am compilinig the document with groff -Tpdf -P-pletter ex.groff > ex.pdf. ex.groff: .de…
theman25
  • 50
  • 6
1
vote
2 answers

Disable groff hyphenation at the command line

I am using the program groff to format text. groff is hyphenating words and breaking them onto multiple lines. I would not like it to do that. The manual outlines methods for disabling hyphenation. However, I can't figure out how to invoke .hn at…
Kevin Burke
  • 61,194
  • 76
  • 188
  • 305
1
vote
1 answer

Can man pass an option to the roff formatter?

SYNOPSIS From man(1): -l Format and display local manual files instead of searching through the system's manual collection. -t Use groff -mandoc to format the manual page to stdout. From groff_tmac(5): papersize This macro file is already loaded at…
Olius
  • 226
  • 1
  • 6