mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-07-29 19:35:37 +02:00
groff: create page
Sources: https://embswit.wordpress.com/2013/02/08/render-man-page-from-source/, and the EXAMPLES section of `man groff` :)
This commit is contained in:
parent
7b3bb72fba
commit
d6330e2107
1 changed files with 24 additions and 0 deletions
24
pages/common/groff.md
Normal file
24
pages/common/groff.md
Normal file
|
@ -0,0 +1,24 @@
|
|||
# groff
|
||||
|
||||
> Typesetting program that reads plain text mixed with formatting commands and produces formatted output.
|
||||
> It is the GNU replacement for the troff and nroff Unix commands for text formatting.
|
||||
|
||||
- Render a man page as plain text, and display the result:
|
||||
|
||||
`groff -man -T utf8 {{manpage.1}}`
|
||||
|
||||
- Render a man page using the ASCII output device, and display it using a pager:
|
||||
|
||||
`groff -man -T ascii {{manpage.1}} | less`
|
||||
|
||||
- Render a man page into an HTML file:
|
||||
|
||||
`groff -man -T html {{manpage.1}} > page.html`
|
||||
|
||||
- Process a roff file using the `tbl` and `pic` preprocessors, and the `me` macro set:
|
||||
|
||||
`groff -t -p -me -T utf8 {{foo.me}}`
|
||||
|
||||
- Run a `groff` command with preprocessor and macro options guessed by the `grog` utility:
|
||||
|
||||
`eval "$(grog -T utf8 {{foo.me}})"`
|
Loading…
Add table
Reference in a new issue