GROFF(1) GROFF(1) (NAME) groff - GNU roff (SYNOPSIS) groff [ ... ] [ ... ] (DESCRIPTION) groff GNU roff . GNU roff PostScript PDF HTML DVI . (primitives) . . "-" groff (stdin) . AT&T Unix groff POSIX . . groff . groff . (OPTIONS) -h --help . groff troff(1) . groff troff . troff groff . groff (groff-specific options) troff groff . -D enc (fallback) preconv(1) enc -k . -e eqn(1). -g grn(1). -G grap(1) -p . -I dir troff ( ) -g -s . soelim(1) grn -M dir . -j chem(1) -p . -k preconv(1). -K -D . -K enc preconv(1) enc -k . -l (spooler) . "print" groff_font(5) . lpr(1) . -L -X . -L arg arg . -L . groff arg . -M troff ( ) eqn(1) grap(1) grn(1) . -N (newline) eqn: -N eqn(1) . -p pic(1). -P arg arg (postprocessor). -P . groff arg . -R refer(1). refer refer . -s soelim(1). -S <<>> (safer mode) -U . . -t tbl(1). -T dev troff dev. groff troff dev << >> . -U (unsafe): -U pic troff. -v --version groff -v . -V (pipeline) groff . groff . -X gxditview(1) X11. -Tps PostScript -TX75 -TX100 X11 . -Z . troff ( -z ) groff_out(5) . (Transparent options) troff(1) . -a (plain text) . -b (backtrace) . -c . -C troff AT&T -c . -d cs -d name=string (string). -E troff -Ww . -f fam (font family) . -F dir dir . -i . -I dir dir . -m name name.tmac . -M dir dir . -n num num. -o list list . -r cnumeric-expression -r register=numeric-expression . -w name -W name (-w) (-W) name. -z troff. (USAGE) GNU roff roff ( <<>>) troff . roff(7) . GNU roff roff . GNU roff groff roff(7) . (Getting started) << !>> . $ echo "Hello, world!" | groff -Tascii | sed '/^$/d' Hello, world! sed . ( roff .) UTF-8 : $ echo "Hello, world!" | groff -Tutf8 | sed '/^$/d' PDF HTML DVI TeX : $ echo "Hello, world!" | groff -Tpdf > hello.pdf $ evince hello.pdf $ echo "Hello, world!" | groff -Thtml > hello.html $ firefox hello.html $ echo "Hello, world!" | groff -Tdvi > hello.dvi $ xdvi hello.html groff REPL (Using groff as a REPL) groff -- (REPL) . . -ww : $ groff -ww -Tutf8 \# This is a comment. Let's define a register. .nr a 1 \# Do integer arithmetic with operators evaluated left-to-right. .nr b \n[a]+5/2 \# Let's get the result on the standard error stream. .tm \n[b] 3 \# Now we'll define a string. .ds name Leslie\" This is another form of comment. .nr b (\n[a] + (7/2)) \# Center the next two text input lines. .ce 2 Hi, \*[name]. Your secret number is \n[b]. \# We will see that the division rounded toward zero. It is \# Here's an if-else control structure. .ie (\n[b] % 2) odd. .el even. \# This trick sets the page length to the current vertical \# position, so that blank lines don't spew when we're done. .pl \n[nl]u Hi, Leslie. Your secret number is 4. It is even. (Paper format) GNUroff troff . (.pl) (.po) (.ll) . . papersize troff "letter" "A4" groff_tmac(5) . "A4" . . DESC . -p -l (landscape) . groff_font(5) papersize . grops(1) . groff -P PostScript A4 : groff -Tps -dpaper=a4l -P-pa4 -P-l -ms foo.ms > foo.ps (Front end) groff troff(1) . . roff(7) . grog(1) . (Language) roff (escape sequences) . roff roff(7) . GNU roff groff(7) . GNU roff AT&T troff groff_diff(7) . (Preprocessors) ( ) roff . ( ) . roff . GNU roff AT&T troff troff . tbl eqn pic refer soelim grn chem pic gperl groff glilypond LilyPond gpinyin Hanyu Pinyin. perl(1)n(1) GNU roff preconv(1) troff . . (token) . . . . troff . ideal groff . +-------------------------------------+------------------------------------+------------------------------------+ | | | | +=====================================+====================================+====================================+ | chem | .cstart | .cend | | eqn | .EQ | .EN | | grap | .G1 | .G2 | | grn | .GS | .GE | | ideal | .IS | .IE | | | | .IF | | pic | .PS | .PE | | | | .PF | | | | .PY | | refer | .R1 | .R2 | | tbl | .TS | .TE | +-------------------------------------+------------------------------------+------------------------------------+ | glilypond | .lilypond start | .lilypond stop | | gperl | .Perl start | .Perl stop | | gpinyin | .pinyin start | .pinyin stop | +-------------------------------------+------------------------------------+------------------------------------+ (Macro packages) roff . << >> (macro package) . -m . GNU roff AT&T troff . nroff troff ( <> manual <> ms -ms ). . << >> : an () groff_man(7) . -man . doc 4.3BSD-Reno () groff_mdoc(7) . -mdoc . e s AT&T groff_me(7) . -me . m AT&T s groff_mm(7) . -mm . om ( <> ) (Peter Schaffter) GNU roff . HTML mom . -mom . s AT&T groff_ms(7) . -ms . andoc GNU roff man mdoc . -mandoc . man(1) . ( <<>> raw ) groff_tmac(5) . (Formatters) roff troff(1) . AT&T troff nroff . -C troff << >> (compatibility mode) AT&T . nroff(1) AT&T nroff . (locale) -T . troff groff_out(5) . (Output devices) troff << >> -T . GROFF_TYPESETTER ps . : ascii ISO 646 1991:IRV ( US-ASCII). cp1047 IBM. dvi DVI TeX. html xhtml HTML XHTML. latin1 ISO Latin-1 (ISO 8859-1). lbp CaPSL ( LBP-4 LBP-8). lj4 PCL5 HP LaserJet 4. pdf PDF. ps PostScript. utf8 (ISO 10646) UTF-8. X75 gxditview (dpi) . X75-12 gxditview . X100 gxditview . X100-12 gxditview . (Postprocessors) troff . GNU roff << >> . ( ) . . postpro groff_font(5) . -X gxditview . grodvi(1) dvi. grohtml(1) html xhtml. grolbp(1) lbp. grolj4(1) lj4. gropdf(1) pdf. grops(1) ps. grotty(1) ascii cp1047 latin1 utf8. gxditview(1) X75 X75-12 X100 X100-12 ps. (Utilities) GNU roff : gdiffmk(1) roff. grog(1) groff . : addftinfo(1) AT&T troff troff . afmtodit(1) PostScript Type 1. pfbtops(1) PostScript Type 1 PFB () PFA afmtodit. hpftodit(1) HP LaserJet 4. tfmtodit(1) DVI TeX. xtotroff(1) X Window. roff : eqn2graph(1) eqn . grap2graph(1) grap . pic2graph(1) pic . refer(1) : indxbib(1) . lkbib(1) . lookbib(1) . (EXIT STATUS) groff -h --help . groff groff . groff : ( ) ( ) ( ) . ( : + + ). groff -V . (ENVIRONMENT) PATH (:) ( ) . GROFF_BIN_PATH groff PATH . (/usr/bin) PATH . GROFF_COMMAND_PREFIX GNU roff AT&T . <> ( gtroff gnroff geqn gpic gtbl ). GROFF_ENCODING -e preconv(1) . -k . -K groff . GROFF_FONT_PATH troff(1) groff_font(5) . GROFF_TMAC_PATH troff(1) groff_tmac(5) . GROFF_TMPDIR . TMPDIR TMP TEMP /tmp . refer(1) grohtml(1) grops(1) . GROFF_TYPESETTER ps . -T . SOURCE_DATE_EPOCH . gmtime(3) asctime(3) . TZ tzset(3) . SOURCE_DATE_EPOCH (UTC) . (EXAMPLES) roff . man(1) : groff -t -man -Tutf8 /usr/share/man/man1/groff.1 (pager) . roff tbl pic me AT&T : pic foo.me | tbl | troff -me -Tutf8 | grotty groff : groff -p -t -me -T utf8 foo.me grog(1) : $(grog -Tutf8 foo.me) groff gxditview: groff -X -P -title -P 'trial run' mydoc.t : groff -X -Z mydoc.t | gxditview -title 'trial run' - (LIMITATIONS) ascii cp1047 latin1 utf8 more(1) less(1) ( ) grotty(1) . EBCDIC ( OS/390 Unix) ascii latin1 . cp1047 ISO 646 ISO 8859 . (INSTALLATION DIRECTORIES) GNU roff . : /etc/X11/app-defaults gxditview(1). /usr/bin groff. /usr/share/groff/1.23.0/eign indxbib(1). /usr/share/groff/1.23.0 . /usr/dict/papers/Ind lkbib(1) refer(1). /usr/share/doc/groff-base . /usr/share/doc/groff-base/examples . /usr/share/groff/1.23.0/font . /usr/share/doc/groff-base/html HTML. /usr/lib/font . /usr/share/groff/site-font . /usr/share/groff/site-tmac ( tmac). /usr/share/groff/1.23.0/tmac ( tmac). /usr/share/groff/1.23.0/oldfont groff grops(1) . /usr/share/doc/groff-base/pdf PDF. groff GNU roff /usr/share/groff/1.23.0/tmac . troff(1) . groff_tmac(5) . groff GNU roff /usr/share/groff/1.23.0/font . troff(1) . groff_font(5) . (AVAILABILITY) groff . grap (Ted Faber) grap . groff grap . (AUTHORS) groff ( ) (James Clark) . . (Trent A. Fisher) (Werner Lemberg) (Bernd Warken) . (G. Branden Robinson) . (SEE ALSO) Groff: The GNU Implementation of troff . groff . info groff . : roff(7) groff ( troff AT&T): gxditview(1) : chem(1) eqn(1) neqn(1) glilypond(1) grn(1) preconv(1) gperl(1) pic(1) gpinyin(1) refer(1) soelim(1) tbl(1) : groff_hdtbl(7) groff_man(7) groff_man_style(7) groff_mdoc(7) groff_me(7) groff_mm(7) groff_mmse(7) ( ) mmroff(1) groff_mom(7) pdfmom(1) groff_ms(7) groff_rfc1345(7) groff_trace(7) groff_www(7) : indxbib(1) lkbib(1) lookbib(1) : groff(7) groff_char(7) groff_diff(7) groff_font(5) groff_tmac(5) : groff_out(5) : troff(1) : nroff(1) pdfroff(1) : grodvi(1) grohtml(1) grolbp(1) grolj4(1) gropdf(1) grops(1) grotty(1) : addftinfo(1) afmtodit(1) hpftodit(1) pfbtops(1) tfmtodit(1) xtotroff(1) : eqn2graph(1) grap2graph(1) pic2graph(1) : gdiffmk(1) groff: grog(1) groff GROFF(1)