.\" 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 . .mso www.tmac . .HEAD "" .\" .HEAD "" . .ALN "#eeeeee" 30 . .de blm-macro . nr tmp \\n[.i] . LP . in \\n[tmp]u .. .blm blm-macro . .HX 1 . .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 \{\ . ll 10i . br . nop \v'-0.66i'\h'2.0i'\s[80]\*[GNU] Troff\s0 . ll .\} .el \ . nop \v'-0.66i'\h'2.0i'\s[60]\*[GNU] Troff\s0 .HTML-IMAGE-END . .HR . .LNS . .DC T HIS mydarkred is the home page for groff (\c .URL http://\:www.gnu.org/ GNU Troff). . Groff is a software typesetting package which reads plain text mixed with formatting commands and produces formatted output. . 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 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" . Groff was originally written and maintained by James Clark, however it is now maintained by .MTO Ted.Harding@\:nessie.mcc.ac.uk "Ted Harding" and .MTO wl@\:gnu.org "Werner Lemberg" . User issues lead: .MTO Ted.Harding@\:nessie.mcc.ac.uk "Ted Harding" . .br Technical issues lead: .MTO wl@\:gnu.org "Werner Lemberg" . . .HR . \s[-4]\f[I]This document was produced using .URL http://groff.ffii.org/ groff-\n[.x].\n[.y].\n[.Y] . .br The image at the top has been contributed by Imogen Mulley, based on a similar picture found on the .URL http://www.gnu.org "GNU server" . . .SH License .LP GNU troff is released under the .URL http://\:www.gnu.org/\:copyleft/\:gpl.html "GNU Copyright License" . The documentation is released under the .URL http://\:www.gnu.org/\:copyleft/\:fdl.html "Free Documentation License" . Groff is an official GNU project as defined on .URL http://\:savannah.gnu.org savannah . . .SH README .LP 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, \-mom, and \-ms macros, and drivers for PostScript, PDF, TeX DVI format, HP LaserJet\~4 printers, Canon CAPSL printers, HTML and XHTML formats (beta status), and typewriter-like devices. Also included is a modified version of the Berkeley \-me macros, the enhanced version gxditview 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 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 file MORE.STUFF contains information about add-on packages useful for groff. . .SH CVS and FTP access .LP 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 -d:pserver:anonymous@cvs.savannah.gnu.org/sources/groff -z5 co groff .ft P .fi .in This creates 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 -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 . .SH Groff dependencies .LP 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 works, and the original release of bison 1.875 is known not to work; you \fImay\fP find that bison releases < 1.875 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. Additionally, producing `PDF' output directly with the `gropdf' device needs a working installation of Perl. In Linux Debian, the installation of texinfo is dangerous, for it creates a file install-info that blocks the system installation. So the created /usr/local/bin/install-info must be renamed. The groff configure script searches for the X11 headers and libraries Xaw and Xmu. So the corresponding developer packages of your system must be installed, otherwise groff does not install gxditview and the -TX* devices. In Debian, the developer packages are libxaw7-dev and libxmu-dev. . .SH Bug reports .LP 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 enables us to determine whether it really is a bug or not. . .SH Mailing lists .LP 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 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. . . .SH NEWS VERSION 1.22.1 .LP (Version 1.22 has not been released.) .LP .SH 2 groff .ULS .LI A new option `\-j' has been added to call the `chem' preprocessor. .ULE . . .SH 2 tbl .ULS .LI Improved line numbering support. .ULE . . .SH 2 macro packages .ULS .LI Support for the `refer' preprocessor has been added to the \-mm macro package. .LI In \-me, the `TH' macro was changed for compatibility with line number support in tables. `bl' now works inside of blocks. The behaviour of centered blocks has been improved. Line numbering support has been improved. .LI The \-mom macro package has reached version 2.0, focusing on PDF output with gropdf (using the new `pdfmom' wrapper script). See the file `version-2.html' of the \-mom documentation for a list of the many changes. .LI Some generic Unicode fallback characters (mainly Roman numerals) have been added. .ULE . . .SH 2 tbl .ULS .LI Added numbered line support in tables. .ULE . . .SH 2 gropdf .ULS .LI A new driver for generating PDF output directly, contributed by .MTO deri@chuzzlewit.myzen.co.uk "Deri James" . Note that this driver is written in Perl, thus you need a working Perl installation to run this output device. .ULE . . .SH 2 pdfmom .ULS .LI A new wrapper around groff that facilitates the production of PDF documents from files formatted with the \-mom macros. .ULE . . .SH NEWS VERSION 1.21 .LP .SH 2 troff .ULS .LI The new `lsm' request specifies a macro to be invoked when leading spaces in an input line are encountered (which are removed then). Number registers `lsn' and `lss' hold the number of removed leading spaces and the corresponding horizontal space, respectively. .LI There is a new warning category `file', enabled by default. The `mso' request emits warnings in this category when the requested macro file does not exist. .LI The new `class' request assigns a short name to a set of characters which can be referred to in the `cflags' request. This is especially useful to control line-breaking and hyphenation rules in CJK languages. .LI Three new values for the `cflags' request have been added, which are needed for proper CJK support. .in 2m 128 prohibit before but allow break after character .br 256 prohibit after but allow break before character .br 512 allow break before and after character .in .ULE . . .SH 2 tbl .ULS .LI A new global option `nowarn' suppresses warnings if tables are longer than the current line width. .ULE . . .SH 2 afmtodit .ULS .LI New option `\-o' to specify the name of the output file. .ULE . . .SH 2 macro packages .ULS .LI A new macro `%U' has been added to the mdoc package to indicate a URL reference within an .Rs/.Re environment. .LI Rudimentary support for the Japanese script has been added, most suitable for man page handling as output by grotty. The file `ja.tmac' contains the necessary setup to allow line breaks before and after CJK characters (with proper exceptions). Note, however, that no inter-character spacing is implemented yet \[en] this usually causes many warnings about bad line breaks. .ULE . . .SH NEWS VERSION 1.20.1 .LP A packaging error made it necessary to publish this release. No user-visible changes. . . .SH NEWS VERSION 1.20 .LP .SH 2 groff .ULS .LI XHTML support has been added to grohtml and can be specified by \-Txhtml. This option also utilizes the MathML capability of eqn and combines the outputs of both in the final XHTML file. Users can also specify the `\-P\-V' option together with `\-Txhtml' in groff. This has the effect of creating an XHTML validator button at the bottom of each page. .LI Some options have been added to control a new preprocessor, `preconv' (see below): `\-k' activates it, `\-K' sets the input encoding, and `\-D' sets the default encoding. .LI A new environment variable `GROFF_ENCODING' sets the encoding of input files; it implies command option `\-k'. .ULE . . .SH 2 troff .ULS .LI Two new requests `device' and `devicem' have been added which are equivalents to the \eX and \eY escapes, respectively. .LI A new read-only number register `.br' is available which is set to\~1 if a macro is called as .foo and to\~0 if called as 'foo. This allows to reliably modify requests. .in 2m .nf .ft C \&.als bp@orig bp \&.de bp \&. tm before bp \&. ie \e\en[.br] .bp@orig \&. el 'bp@orig \&. tm after bp \&.. .ft P .fi .in .LI A new request `fzoom' has been added to adjust the optical size of a font in relation to the others. The zoom factor is given in integer multiples of 1/1000th. In the following example, the CR font is magnified by 10% (the zoom factor is 1.1). .in 2m .nf .ft C \&.fam P \&.fzoom CR 1100 \&.ps 12 \&Palatino and \ef[CR]Courier\ef[] .ft P .fi .in The new number register `.zoom' holds the zoom value of the current font, in multiples of 1/1000th. .LI The `cflags' request has been extended with a new flag value 64, to be used in combination with values\~2 (break before character) and\~4 (break after character). If set, the hyphenation codes of the surrounding characters are ignored. .LI A new debugging request, `pev', has been added to print all of the current known environments to stderr. It first prints the state of the current environment, then iterates through all of the known environments, printing each except the one that is current. .LI A new escape `\e$^' has been added. It represents the parameters of a macro as if they were an argument to the `ds' request. This is used by `trace.tmac'. .LI A new read-only number register `.O' is available which returns the current suppression level as set by the `\eO' escape. .LI The space width emitted by the `\e|' and `\e^' escape sequences can be controlled on a per-font basis. If there is a glyph named `\e|' or `\e^', respectively (note the leading backslash), defined in the current font file, use this glyph's width instead of the default value. This behaviour is not new, but hasn't been documented before. .ULE . . .SH 2 nroff .ULS .LI Two new command line options `\-w' and `\-W' are accepted and passed to groff to enable and disable warning messages, respectively. .ULE . . .SH 2 preconv .ULS .LI This is a new preprocessor to convert various input encodings to something groff understands (this is, ASCII and \e[uXXXX] entities, with `XXXX' a hexadecimal number with 4 to 6 digits, representing a Unicode input code). Normally, preconv should be invoked with options `\-k' and `\-K' of groff. See the preconv man page for details. .ULE . . .SH 2 pic .ULS .LI int(x) now really behaves as documented: It truncates the non-integer part of\~x, this is, it rounds towards zero and not towards the next integer less than or equal to\~x. .LI Pic now supports up to 32 macro arguments (and up to 16 on EBCDIC platforms). .LI Heinz-Jürgen Örtel contributed code for two new keywords, `xslanted' and `yslanted', which can change the shape of boxes into arbitrary parallelograms. .ULE . . .SH 2 tbl .ULS .LI Latest versions of DWB tbl introduced an `x' column specifier for a single column expanded to the line width. GNU tbl has now been extended to support even multiple `x' specifiers within a table. .LI To avoid collision with the new `x' specifier, a block formatting macro must now be selected with specifier letter `m'. .ULE . . .SH 2 eqn .ULS .LI Eric S. Raymond has added a new device type to eqn, MathML. When \-TMathML is enabled, eqn now emits MathML formula markup rather than groff commands. The new groff \-Txhtml device uses this. .ULE . . .SH 2 chem .ULS .LI The preprocessor `chem' was added. `chem' is a roff language to generate chemical structure diagrams. It generates `pic' output. .ULE . . .SH 2 grops .ULS .LI The PS font definition files have been regenerated with newer AFM versions from Adobe's 35 core fonts as present in most Level\~2 PS printers. The changes are minor (most notably, the addition of the `Euro' glyph and an extended set of kerning values). For backwards compatibility, the old set of font definition files is still available; for details please read the man page of grops. .ULE . . .SH 2 grotty .ULS .LI \eD'p...' is now supported if the polygon consists entirely of horizontal and vertical lines. .ULE . . .SH 2 grohtml .ULS .LI XHTML support has been added. .LI New command line option `\-V' (to be used in XHTML mode) to produce an XHTML validator button. .LI New command line option `\-y' to produce a right-justified groff signature at the end of the document (in combination with option `\-V'). .ULE . . .SH 2 gxditview .ULS .LI Support for keyboard navigation has been improved. .LI Similar to other X11 applications, there are now two resource files, `GXditview' and `GXditview-color'. .ULE . . .SH 2 groffer .ULS .LI `groffer' version 1.* exists now in a shell and a Perl version. .ULE . . .SH 2 afmtodit .ULS .LI New option `\-c' to output more font information as comments. .LI New option `\-k' to suppress output of kerning data. .LI New option `\-f NAME' to set the internal name of the groff font. .ULE . . .SH 2 macro packages .ULS .LI Joachim Walsdorff contributed the `hdtbl' package for the generation of tables, using a syntax very similar to the HTML table model. For example, a table with two cells and two rows looks like this: .in 2m .nf .ft C \&.TBL cols=2 \&. TR .TD 1*1 .TD 1*2 \&. TR .TD 2*1 .TD 2*2 \&.ETB .ft P .fi .in Here the same table using a more expanded syntax: .in 2m .nf .ft C \&.TBL cols=2 \&. TR \&. TD 1*1 \&. TD 1*2 \&. TR \&. TD 2*1 \&. TD 2*2 \&.ETB .ft P .fi .in Tables can be nested; `hdtbl' works without a preprocessor so that the full capability of groff's macro engine is available. This package currently works with `\-Tps' only. .LI \-mandoc now supports multiple man pages (in either man or mdoc format). .LI Fabrice Ménard contributed locales support. In particular, it is now possible to get French localization of the main macro packages (\-ms, \-mm, \-me, and \-mom, but not \-man and \-mdoc which are localized differently) by appending `-mfr' to the list of macro packages. Example: .in 2m .ft C .nf groff \-ms \-mfr foo > foo.ps .fi .ft P .in Note that latin-9 input encoding is used for French (to support the `oe' ligature). .LI Swedish macro localization (with `\-msv') has been added. .LI German macro localization (with `\-mde' and `\-mden' for traditional and new orthography, respectively) has been added. .LI Czech macro localization (with `\-mcs') has been added. Note that latin-2 input encoding is used for Czech. .LI A new macro `Dx' has been added to the mdoc package which identifies the DragonFly OS. .LI If mdoc is used to print multiple man pages (together with the \-rcR=0 command line option), each man page now starts a new page. .LI \-mtrace has been considerably improved, now showing number and string register assignments, among other things. See the groff_trace man page for details. .LI The PSPIC macro now works with all devices (producing a hollow rectangle on devices which don't support inclusion of PS images) and is loaded in troffrc at start-up. .LI A new auxiliary macro package `62bit' has been added which provides some macros for adding, multiplying, and dividing signed 62bit integers (mainly to handle normal groff number operations without risking overflow errors). .LI For \-ms, Eric S. Raymond contributed support for ancient Bell Labs localisms `.SC', `.UC', `.P1', and `.P2'. The latter three are enabled only after .SC is called. .LI A new string, `SN-STYLE', has been added to the ms macros, controlling the formatting of section numbers in headings defined by `.NH'. .LI The new macro package `ptx' provides a template definition for the `.xx' macro as needed by GNU ptx (for creating permuted indices). .ULE . . .SH NEWS VERSION 1.19.2 .LP .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 keeps 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' produces 14pt headings, `.NH\~2' produces 12pt, and all other levels 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 .LP .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 are 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 split 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 .LP .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/public/developer/opentype/index_glyph.html \ http://partners.adobe.com/public/developer/opentype/index_glyph.html 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 changes 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=