Copyright © 1997, Digital Equipment Corporation. All rights reserved.
Mtex is a system for producing man pages in both HTML and nroff formats from a single source format. The mtex file format is loosely based on LaTeX, but it contains far fewer commands and is somewhat fragile.
Mtex is a collection of LIM scripts. Before you install mtex, you will first have to download and install the LIM processor. For more information about downloading an installing LIM, see the LIM Home Page.
To download mtex, follow these steps:
mtex.tar.Z
mtex.tar.Z
". If it instead contains the file
"mtex.tar
", then your browser has automatically
uncompressed the file, and you can skip the following step.
uncompress mtex.tar.Z
" on the downloaded file.
tar xvf mtex.tar
" on the resulting tar file to extract
the mtex sources.
rm mtex.tar
" to remove the tar file.
Once you have downloaded and unpacked the mtex sources, follow these steps from your "mtex" directory to build mtex on your system:
make
". This will create a derived directory named by
your machine's architecture. It's name is formed by running
"machine
". It will also build the mtex man pages (in both
HTML and nroff format) in the "man/
" subdirectory.
That's about it!
bin
:
arch/mtex2html
- produces man pages in HTML format
arch/mtex2man
- produces man pages in nroff format
arch/mtex2tex
- produces man pages in LaTeX format
man/man1
:
man/mtex2html.1
- mtex2html(1) man page (nroff format)
man/mtex2man.1
- mtex2man(1) man page (nroff format)
man/mtex2tex.1
- mtex2tex(1) man page (nroff format)
man/man7
:
man/mtex.7
- mtex(7) man page (nroff format)
man/html
:
man/mtex2html.1.html
- mtex2html(1) man page (HTML format)
man/mtex2man.1.html
- mtex2man(1) man page (HTML format)
man/mtex2tex.1.html
- mtex2tex(1) man page (HTML format)
man/mtex.7.html
- mtex(7) man page (HTML format)
heydon@pa.dec.com
describing the problem. Please include the mtex source file that
triggers the bug if possible.
For more detailed information about mtex, see the following man pages.
Like LaTeX, mtex commands are introduced by the \ (backslash) character, and command arguments are delimited by curly braces { }. Some commands have multiple arguments, in which case each argument follows the command surrounded by curly braces. Mtex also uses \begin and \end commands to bracket environments. Unlike LaTeX, curly braces are used only to delimit command arguments, and not to delimit scopes. Also, there are no declarations, only commands; so you write \it{...} instead of {\it ...} to produce italics text.
Here is a summary of the mtex commands:
Here is a summary of the mtex environments:
As a starting point, the
mtex2html.1.mtex
source file provides a good example of a simple man page.
The mtex.7.mtex
source is a
much more complicated man page; it is longer and it contains many
examples of the language's character quotation facilities.
At the Systems Research Center, mtex has been used in the man pages of the following projects, among others.
[ Systems Research Center (SRC) Software Home Page ]
Last modified on Wed Oct 1 11:48:13 PDT 1997 by heydon