.\" This file gives a small example how a web page could look like if created .\" with groff. .\" .\" .\" To make it work with other output devices also, we include www.tmac .\" directly. .\" .nr PS 10 .nr VS 12 .if '\*[.T]'html' .nr LL 10i .if r ps4html .nr LL 10i . .HEAD "" .\" .HEAD "" . .mso www.tmac . .de blm-macro . nr tmp \\n[.i] . LP . in \\n[tmp]u .. .blm blm-macro . .HX 0 . .defcolor mydarkred rgb 0.65f 0.1f 0.2f .defcolor mydarkgreen rgb 0.1f 0.5f 0.2f .defcolor mydarkblue rgb 0.1f 0.2f 0.6f . .ds GNU \m[mydarkred]G\m[]\m[mydarkgreen]N\m[]\m[mydarkblue]U\m[] . .NHR .HTL . Home of Groff (GNU Troff). . . .HTML-IMAGE-LEFT .PSPIC -L gnu.eps 2i 2i .ie r ps4html \ . nop \v'-0.66i'\h'2.0i'\s[100]\*[GNU] Troff\s0 .el \ . nop \v'-0.66i'\h'2.0i'\s[60]\*[GNU] Troff\s0 .HTML-IMAGE-END . .HR .HnS 1 GNU Troff (\c .URL http://\:groff.ffii.org/ Groff ) \[em] a .URL http://\:www.gnu.org/ GNU project. .HnE .HR .LK . .LP .DC T HE mydarkred groff (GNU Troff) software is a typesetting package which reads plain text mixed with formatting commands and produces formatted output. Groff now supports HTML. . . .SH Download The source code of the currently released versions of groff is available at the .URL "http://\:groff.ffii.org/\:groff/" "FFII host (Germany)" , .URL "ftp://\:ftp.gnu.org/\:gnu/\:groff/" "GNU host (USA)" , and its mirrors. . The USA site also contains older, obsolete versions. The most actual pre-release, development version is available from a CVS repository, see below. . Development snapshots (produced twice a day from the CVS repository) can be downloaded from .URL "http://\:groff.ffii.org/\:groff/\:devel" here . For a special version of groff on the Microsoft operating systems, see .URL "http://\:gnuwin32.sf.net/\:packages/\:groffl.htm" "Groff for Windows" . GNU troff is released under the .URL http://\:www.gnu.org/\:copyleft/\:gpl.html "GNU Copyright License" . User issues lead: .MTO Ted.Harding@\:nessie.mcc.ac.uk "Ted Harding" . .br Technical issues lead: .MTO wl@\:gnu.org "Werner Lemberg" . . . .SH README This is the GNU groff document formatting system. The version number is given in the file VERSION. Included in this release are implementations of troff, pic, eqn, tbl, grn, refer, \-man, \-mdoc, and \-ms macros, and drivers for PostScript, TeX dvi format, HP LaserJet\~4 printers, Canon CAPSL printers, HTML format (beta status), and typewriter-like devices. Also included is a modified version of the Berkeley \-me macros, an enhanced version of the X11 xditview previewer, and an implementation of the \-mm macros contributed by .MTO jh@\:axis.se "J\[:o]rgen H\[:a]gg" . See the file INSTALL for installation instructions. You will require a C++ compiler. The file NEWS describes recent user-visible changes to groff. Groff is free software. See the file COPYING for copying permission. The file PROBLEMS describes various problems that have been encountered in compiling, installing, and running groff. The most recent released version of groff is always available by .URL "ftp://\:ftp.gnu.org/\:gnu/\:groff" "anonymous ftp" . The current development version of groff is available from a .URL "http://\:savannah.gnu.org/\:cvs/\:?group=groff" "CVS repository" . You can access it by first selecting a parent directory in which to create a working copy (call it, say, ~/cvswork), and then executing the commands .in 2m .nf .ft C cd ~/cvswork CVS_RSH=ssh; export CVS_RSH cvs -d:ext:anoncvs@savannah.gnu.org/cvsroot/groff -z5 co groff .ft P .fi .in (Note that you need an SSH client for security reasons.) This will create a subdirectory, ~/cvswork/groff, with a `checked out' copy of the CVS repository. An update of this working copy may be achieved, at any later time by invoking the commands .in 2m .nf .ft C cd ~/cvswork/groff CVS_RSH=ssh cvs -z5 update -dP .ft P .fi .in Please read the CVS info pages for further details. Finally, it is possible to access the CVS with a .URL http://\:savannah.gnu.org/\:cvs/\:?group=groff "web browser" . Alternatively, you can download snapshots (which are updated twice a day). The complete groff source as a single file is available .URL http://\:groff.ffii.org/\:groff/\:devel/\:groff-current.tar.gz here . A diff file relative to groff-\[la]version\[ra], the latest official groff release is available at .in 2m .ft C http://groff.ffii.org/groff/devel/groff-\[la]version\[ra]-current.diff.gz .ft P .in Assuming that groff-\[la]version\[ra].tar.gz and groff-\[la]version\[ra]-current.diff.gz are in the same directory, do the following to apply the diff file: .in 2m .nf .ft C tar xzvf groff-\[la]version\[ra].tar.gz cd groff-\[la]version\[ra] gunzip -c ../groff-\[la]version\[ra]-current.diff.gz | patch -p1 .ft P .fi .in Depending on your requirements, you may need at least some of the following tools to build groff directly from its source: .in 2m .nf ghostscript the psutils package the netpbm package texinfo 4.8 bison \[>=] 1.875b or byacc .fi .in Note that texinfo and bison or byacc are required only for building from CVS sources (either a checked out working copy, or a daily snapshot). They are not required for building from a stable release tarball. Also note that the version numbers stated are the minimum supported. No version of texinfo < 4.8 will work, and the original release of bison 1.875 is known not to work; you \fImay\fP find that bison releases < 1.875 will work, but in case of difficulty, please update to a later version \fIbefore\fP posting a bug report. For \fIall\fP sources, you need ghostscript for creation of either PDF or HTML output; the netpbm and psutils packages are required only for HTML output. If you don't intend to produce output in either of these formats, then these packages are unnecessary. Please report bugs using the form in the file BUG-REPORT; the idea of this is to make sure that FSF has all the information it needs to fix the bug. At the very least, read the BUG-REPORT form and make sure that you supply all the information that it asks for. Even if you are not sure that something is a bug, report it using BUG-REPORT: this will enable us to determine whether it really is a bug or not. Three mailing lists are available: .ULS .LI .MTO bug-groff@gnu.org bug-groff@gnu.org for reporting bugs .LI .MTO groff@gnu.org groff@gnu.org for general discussion of groff .LI .MTO groff-commit@gnu.org groff-commit@gnu.org a read-only list showing commitments to the CVS repository .ULE You can post mails directly to the `bug-groff' list, without subscribing; to post mails to the `groff' list you must subscribe to it. To subscribe, send e-mail to \[la]list\[ra]-request@\[la]domain\[ra] (example: .MTO groff-request@\:gnu.org groff-request@\:gnu.org for the `groff' list) with the word `subscribe' in either the subject or body of the e-mail (don't include the quotes). Alternatively, you may subscribe by visiting the web pages at .in 2m .nf .URL http://lists.gnu.org/mailman/listinfo/bug-groff .URL http://lists.gnu.org/mailman/listinfo/groff .URL http://lists.gnu.org/mailman/listinfo/groff-commit .fi .in Each of these web pages also provides a link to a browseable archive of postings to the corresponding mailing list. GNU groff was written by .MTO jjc@\:jclark.com "James Clark" . It is now maintained by .MTO Ted.Harding@\:nessie.mcc.ac.uk "Ted Harding" and .MTO wl@\:gnu.org "Werner Lemberg" . . . .SH NEWS VERSION 1.19.2 . .SH 2 troff .ULS .LI Analogously to the .ft and \ef pair, two new requests `gcolor' and `fcolor' (which pair with \em and \eM, respectively) have been added to set the glyph and background colours. .LI A new read-only, string-valued register `.sty' returns the name of the current style. .LI Two new conditional operators `F\~\[la]name\[ra]' and `S\~\[la]name\[ra]' have been added. `F' is true if a font \[la]name\[ra] exists. `S' is true if a style \[la]name\[ra] has been registered. .LI Cyrillic characters have been added to the `utf8' and `html' output devices. .ULE . . .SH 2 pic .ULS .LI The `by' argument in a `for' loop can now be negative if it is additive. For the multiplicative case, it must be greater than zero. .ULE . . .SH 2 eqn .ULS .LI The following keywords aren't new but haven't been documented previously: .in 2m \fBundef NAME\fP (to undefine a macro) .br \fBcopy "FILE"\fP (a synonym for `include') .br \fBspace n\fP (to modify the vertical spacing before and after an equation) .in .LI The following macros aren't new but haven't been documented previously: .in 2m \fBAlpha, .\|.\|., Omega\fP (the same as `ALPHA', .\|.\|., `OMEGA') .br \fBldots\fP (three dots on the base line) .br \fBdollar\fP (a dollar glyph) .in .LI The following keywords have been extended. Again, this isn't new but hasn't been documented previously: .in 2m .ft B col n { .\|.\|. } .br lcol n { .\|.\|. } .br rcol n { .\|.\|. } .br ccol n { .\|.\|. } .br pile n { .\|.\|. } .br lpile n { .\|.\|. } .br rpile n { .\|.\|. } .br cpile n { .\|.\|. } .ft P (set vertical spacing between rows to\~N) .ULE . . .SH 2 grohtml .ULS .LI This device driver has been raised to beta stage; its set of tags should be stable now. .LI New command line option `\-s' to set the base point size. .LI New command line option `\-S' to set the split level while generating multiple files. .ULE . . .SH 2 grotty .ULS .LI Experimental support for zero-width and double-width characters. .ULE . . .SH 2 gxditview .ULS .LI On platforms which have the X\~Window System this program is now built and installed automatically. .ULE . . .SH 2 xtotroff .ULS .LI This program to create font definition files for xditview isn't new but hasn't been installed previously. .ULE . . .SH 2 groffer .ULS .LI A security problem (reported as CAN-2004-0969) has been fixed. .ULE . . .SH 2 gdiffmk .ULS .LI A new script contributed by Mike Bianchi. It compares two groff, nroff, or troff documents and creates an output with added margin characters (using `.mc') to indicate the differences. .ULE . . .SH 2 pdfroff .ULS .LI A new wrapper script contributed by Keith Marshall to easily create PDF documents with groff. .ULE . . .SH 2 macro packages .ULS .LI ms.tmac .ULS .LI Support for fractional point sizes: A value for the `PS', `VS', `FPS', and `VPS' register larger than or equal to 1000 is always divided by 1000. For example, `.nr\~PS\~10250' sets the document's font size to 10.25 points. .LI The `Ds' and `De' macros provided in ms since groff version 1.19 have been removed; the equivalent `DS' and `DE' macros should be used instead. X11 documents which actually use `Ds' and `De' always load a specific macro file from the X11 distribution (`macros.t') which provides proper definitions for the two macros. .LI The following registers have been added for improving layout control: .IP PORPHANS Defines number of lines following `LP', `PP', `QP', `IP' or `XP' which must be kept together, before any automatic page break. .IP HORPHANS Sets number of lines of following paragraph which must be kept with a heading, defined by `NH' or `SH', before any automatic page break. .IP GROWPS Sets the first level of heading (set with `NH') which will keep the same point size as body text. .IP PSINCR Sets the point size increment for each level of heading (set with `NH'), below the threshold level set by `GROWPS'; e.g., if \en[PS]\~=\~10, \en[GROWPS]\~=\~3 and \en[PSINCR]\~=\~2.0p, then `.NH\~1' will produce 14pt headings, `.NH\~2' will produce 12pt, and all other levels will remain at 10pt (because \en[PS]\~=\~10). .LI The `SH' macro now accepts a numeric argument, to make heading size match that of `NH' with same argument value when the `GROWPS'/`PSINCR' feature is enabled. .ULE Please refer to the documentation of the ms package for other, minor improvements. .LI me.tmac The section type set with the `++' request is available in the `_M' register. This isn't new but hasn't been documented before. .LI www.tmac The `HR' macro no longer causes an empty line for non-HTML devices. A new macro `HEAD' has been added to directly add data to the
... block. New macros `OLS' and `OLE' to start and end an ordered list. New macros `DLS' and `DLE' to start and end a definition list. .ULE . . .SH 2 pdfmark .ULS .LI A new macro package contributed by Keith Marshall which implements PDF marks. This is in alpha stage currently. .ULE . . .SH 2 miscellaneous .ULS .LI Two new keywords to the DESC file have been added which are needed for grohtml: `image_generator' and `unscaled_charwidths'. The former gives the name of the program which creates PNG images, and the latter makes troff always use unscaled character widths. .ULE . . .SH NEWS VERSION 1.19.1 . .SH 2 groff .ULS .LI The argument of the command line option `\-I' is now also passed to troff and grops, specifying a directory to search for files on the command line, files named in `so' and `psbb' requests, and files named in \eX'ps:\~file' and \eX'ps:\~import' escapes. .LI If option `\-V' is used more than once, the commands will be both printed on standard error and run. .ULE . . .SH 2 troff .ULS .LI Two new read-only, string-valued registers `.m' and `.M' return the name of the current drawing and background color, respectively. .LI New read-only register `.U' which is set to\~1 if in safer mode and set to\~0 if in unsafe mode. .LI An input encoding file for \%latin-5 (a.k.a.\& ISO \%8859-9) has been added. Example use: .in 2m .ft C groff \-Tdvi \-mlatin5 my_file > my_file.dvi .ft R .in Note that some output devices don't support all glyphs of this encoding. .LI If the `return' request is called with an argument, it exits twice, namely the current macro and the macro one level higher. This is used to define a wrapper macro for `return' in trace.tmac. .LI For completeness, two new requests have been added: `dei1' and `ami1'. They are equivalent to `dei' and `ami', respectively, but the macros are executed with compatibility mode off (similar to `de1' and `am1'). .LI New command line option `\-I' to specify a directory for files (both those on the command line and those named in `psbb' requests). This is also handled by the groff wrapper program. .LI Since version 1.19 you can say `.vs\~0'. Older versions emit a warning and convert this to `.vs\~\en[.V]'. This hasn't been documented properly. Note that `.vs\~0' isn't saved in a diversion since it doesn't result in vertical motion. .ULE . . .SH 2 pic .ULS .LI Dashed and dotted ellipses have been implemented. .ULE . . .SH 2 tbl .ULS .LI New key character `x' to make tbl call a user-defined macro on a table cell. Patch by .MTO hj.oertel@\:surfeu.de "Heinz-J\[:u]rgen Oertel" . .ULE . . .SH 2 grap2graph .ULS .LI A new script contributed by .MTO esr@\:thyrsus.com "Eric S. Raymond" . It converts a grap diagram into a cropped image. Since it uses gs and the PNM library, virtually all graphics formats are available for output. [Note that the grap program itself isn't part of the groff package; see the file MORE.STUFF how to obtain grap.] .ULE . . .SH 2 grohtml .ULS .LI New option `\-j' to emit output splitted into multiple files. .ULE . . .SH 2 grops .ULS .LI New command line option `\-I' to specify a directory to search for files on the command line and files named in \eX'ps:\~import' and \eX'ps:\~file' escapes. This is also handled by the groff wrapper program. .LI The default value for the `broken' keyword in the DESC file is now\~0. .ULE . . .SH 2 grolj4 .ULS .LI A new man page `lj4_font(5)' documents how fonts are accessed with grolj4. .LI The built-in fonts for LJ4 and newer PCL\~5 devices have been completely revised, mainly to access as much glyphs as possible. The provided metric files should be compatible with recent PCL\~5 printers also. Additionally, font description files have been added for the Arial and Times New Roman family, the MS symbol, and Wingdings fonts. .ULE . . .SH 2 afmtodit .ULS .LI New option `\-x' to prevent use of built-in Adobe Glyph List. .ULE . . .SH 2 hpftodit .ULS .LI Completely revised to handle HP TrueType metric files also. See the hpftodit manual page for more details. .ULE . . .SH 2 groffer .ULS .LI This version is a rewrite of groffer in many parts, but it is kept in the old single script style. .ULS .LI New options: \-\-text (\-\-mode\~text), \-\-tty-viewer, \-\-X (\-\-mode\~X), \-\-X-viewer, \-\-html (\-\-mode\~html), \-\-html-view, \-\-apropos-data, \-\-apropos-devel, \-\-apropos-progs. .LI New documentation file README_SH. .LI Enhancement of the configuration files and the `apropos' handling. .ULE .ULE . . .SH 2 macro packages .ULS .LI www.tmac: New macro `JOBNAME' to split output into multiple files. .LI In mdoc, multiple calls to `.Lb' are now supported in the LIBRARY section. .ULE . . .SH NEWS VERSION 1.19 . .SH 2 troff .ULS .LI Input encoding files for \%latin-9 (a.k.a.\& \%latin-0 and ISO \%8859-15) and \%latin-2 (ISO \%8859-2) have been added. Example use: .in 2m .ft C groff -Tdvi -mlatin9 my_file > my_file.dvi .ft P .in You still need proper fonts with the necessary glyphs. Out of the box, the groff package supports \%latin-9 only for \-Tps, \-Tdvi, and \-Tutf8, and \%latin-2 only for \-Tdvi and \-Tutf8. .LI Composite glyphs are now supported. To do this, a subset of the Adobe Glyph List (AGL) Algorithm as described in .URL http://partners.adobe.com/asn/tech/type/unicodegn.jsp \ http://partners.adobe.com/asn/tech/type/unicodegn.jsp is used to construct glyph names based on Unicode character codes. The existing groff glyph names are frozen; no glyph names which can't be constructed algorithmically will be added in the future. The \e[...] escape sequence has been extended to specify multiple glyph components. Example: .in 2m .ft C \e[A ho] .ft R .in this accesses a glyph with the name `u0041_0328'. Some groff glyphs which are useful as composites map to `wrong' Unicode code points. For example, `ho' maps to U+02DB which is a spacing ogonek, whereas a non-spacing ogonek U+0328 is needed for composite glyphs. The new request .in 2m .ft C \&.composite from to .ft R .in will change the mapping while a composite glyph name is constructed. To make \e[A\~ho] yield the expected result, .in 2m .ft C \&.composite ho u0328 .ft R .in is needed. [The new file `composite.tmac' loaded at start-up already contains proper calls to `.composite'.] Please refer to the info pages of groff and to the groff_char man page for more details. .LI A new request `fschar' has been added to define font-specific fallback characters. They are searched after the list of fonts declared with the `fspecial' request but before the list of fonts declared with `special'. .LI Fallback characters defined with `fschar' can be removed with the new `rfschar' request. .LI A new request `schar' has been added to define global fallback characters. They are searched after the list of fonts declared with the `special' request but before the already mounted special fonts. .LI In groff versions 1.18 and 1.18.1, \eD'f\~...'\& didn't move the current point horizontally. Despite of being silly, this change has been reverted for backwards compatibility. Consequently, the intermediate output command `Df' also moves the position horizontally again. \eD'f\~...'\& is deprecated since it depends on the horizontal resolution of the output device (given with the `hor' parameter in the DESC file). Use the new \eD'Fg\~...'\& escape instead. .LI For orthogonality, new \eD subcommands to change the fill color are available: .in 2m .ft C \eD'Fr ...' \f[R](rgb)\f[] .br \eD'Fc ...' \f[R](cmy)\f[] .br \eD'Fg ...' \f[R](gray)\f[] .br \eD'Fk ...' \f[R](cmyk)\f[] .br \eD'Fd' \f[R](default color)\f[] .ft R .in The arguments are the same as with the `defcolor' request. The current position is \f[I]not\f[] changed. .LI The values set with \eH and \eS are now available in number registers \en[.height] and \en[.slant], respectively. .LI The `.pe' number register isn't new but hasn't been documented before. It is set to\~1 during a page ejection caused by the `bp' request. .LI The new glyph symbol `tno' is a textual variant of `no'. .LI The new glyph symbol `+e' represents U+03F5, GREEK LUNATE EPSILON SYMBOL. (Well, it is not really new since it has been previously supported by grolj4.) The mapping for both the dvi and lj4 symbol font has been changed accordingly so that Greek small letter epsilon, `*e', has the same glyph shape as with other devices. .ULE . . .SH 2 grops .ULS .LI The font `freeeuro.pfa' has been added to provide various default glyph shapes for `eu' and `Eu'. .LI It is now possible to access all glyphs in a Type\~1 font, not only 256 (provided the font file created by afmtodit has proper entries). grops constructs additional encoding vectors on the fly if necessary. .LI The paper size is now emitted via the %%DocumentMedia and PageSize mechanisms so that it is no longer required to tell `gv' or `ps2pdf' about the paper size. The `broken' flag value\~16 omits this feature (the used PostScript command `setpagedevice' is a LanguageLevel\~2 extension). Patch by .MTO egil@\:kvaleberg.no "Egil Kvaleberg" . .LI Non-slanted PostScript metrics have been changed again; they no longer contain negative left italic correction values. This assures correct spacing with eqn. .ULE . . .SH 2 grodvi .ULS .LI The font cmtex10 has been added as the special font `SC' to the DVI fonts. It is used as a font-specific special font for CW and CWI. .LI New options \-l and \-p to set landscape orientation and the paper size. grodvi now emits a `papersize' special which is understood by DVI drivers like dvips. Consequently, the DESC file should contain a `papersize' keyword. .LI The glyph shapes for \e[*f] and \e[*e] have been exchanged with \e[+f] and \e[+e], respectively, to be in sync with all other devices. .LI Glyphs \e[HE] and \e[DI] have been replaced with \e[u2662] and \e[u2661], respectively, since the former two glyphs have a black (filled) shape which grodvi doesn't provide by default (it never has actually). .ULE . . .SH 2 grolj4 .ULS .LI The glyphs \e[*e] and \e[+e] have been exchanged to be in sync with all other devices. .LI The glyph \e[~=] is now called \e[|=]. Similar to other devices, \e[~=] is now another name for glyph \e[~~]. .ULE . . .SH 2 grotty .ULS .LI New option `\-r'. It is similar to the \-i option except it tells grotty to use the `reverse video' attribute to render italic fonts. .ULE . . .SH 2 pic .ULS .LI New command `figname' to set the name of a picture's output box in TeX mode. .ULE . . .SH 2 refer .ULS .LI The environment variable `REFER' to override the name of the default database isn't new but hasn't been documented before. .ULE . . .SH 2 soelim .ULS .LI New option `\-r' to avoid emission of `.lf' lines. .LI New option `\-t' to emit TeX comment lines (giving current file and the line number) instead of `.lf' lines. .ULE . . .SH 2 afmtodit .ULS .LI Unencoded glyphs in an AFM file are output also (since grops can now emit multiple encoding vectors for a single font). .LI New option `\-m' to prevent negative left italic correction values. .LI The mapping and encoding file together with file `DESC' are now searched in the default font directory also. Please refer to the man page of afmtodit for more details. .ULE . . .SH 2 macro packages .ULS .LI .MTO kollar@\:alltel.net "Larry Kollar" and others made the man macros more customizable. .ULS .LI New command line options \-rFT, \-rIN, and \-rSN to set the vertical location of the footer line, the body text indentation, and the sub-subheading indentation. .LI New command line option \-rHY (similar to the ms macros) to control hyphenation. .LI New macros `.PT' and `.BT' to print the header and footer strings. They can be replaced with a customized version in `man.local'. .LI The string `HF' now holds the typeface to print headings and subheadings. .LI Similar to the ms macros, the LT register now defaults to LL if not explicitly specified on the command line. .ULE .LI troff's start-up file `troffrc' now includes `papersize.tmac' to set the paper size with the command line option `-dpaper=