On this page you find all important commands for the CLI tool groff. If the
command you are looking for is missing please ask our AI.
groff
Groff, short for GNU troff, is a command line tool used for typesetting documents in Unix-like systems. It is based on the original troff typesetting software developed by AT&T Bell Laboratories.
- Groff is capable of processing plain text files and converting them into formatted output for various purposes like printing, online viewing, or creating PDFs.
- It uses a markup language called "roff" that allows users to define the structure and formatting of the document.
- The groff tool provides a set of preprocessors to handle macros, equations, tables, and more, enhancing the capabilities of the formatting language.
- It supports different output devices such as printers, screens, and plotters, with the output format being scalable and adaptable.
- Groff uses a collection of fonts, including the widely used Times New Roman, Helvetica, and Courier, among others.
- It has the ability to hyphenate words automatically, making the text more aesthetically appealing and easier to read.
- The tool also supports the creation of indexes, tables of contents, footnotes, and cross-references, enabling the generation of complex documents.
- Groff allows users to customize the layout, pagination, headers, footers, and margins of the output according to specific requirements.
- It supports internationalization and can handle non-English characters, making it suitable for documents in different languages.
- Groff's versatility, high-quality output, and flexibility have made it a popular choice for creating technical documentation, books, reports, and other text-based materials in the Unix world.
List of commands for groff:
-
groff:tldr:02f5b groff: Render a man page using the ASCII output device, and display it using a pager.$ groff -man -T ascii ${path-to-manpage-1} | less --RAW-CONTROL-CHARStry on your machineexplain this command
-
groff:tldr:192e2 groff: Format output for a PostScript printer, saving the output to a file.$ groff ${path-to-input-roff} > ${path-to-output-ps}try on your machineexplain this command
-
groff:tldr:6c496 groff: Typeset a roff file containing [t]ables and [p]ictures, using the [me] macro set, to PDF, saving the output.$ groff ${-t} ${-p} -${me} -T ${pdf} ${path-to-input-me} > ${path-to-output-pdf}try on your machineexplain this command
-
groff:tldr:fd250 groff: Render a man page into an HTML file.$ groff -man -T html ${path-to-manpage-1} > ${path-to-manpage-html}try on your machineexplain this command