9srv Manual Collection/plan9/tex(1) | 9srv Manual Collection/plan9/tex(1) |
---|
latex file[.tex]
slitex [ first-line ]
dvips [ option ... ] dvifile
dviselect [ -s ] [ -i infile ] [ -o outfile ] list of pages [ infile [ outfile ] ]
bibtex auxname
mf [ first-line ]
mktexlsr
An argument given on the command line behaves as the first input line. That line should begin with a (possibly truncated) file name or a \controlsequence. Thus tex paper processes the file paper.tex. The base name of paper becomes the jobname, and is used in forming output file names. If no file is named, the jobname is texput. The default .tex extension can be overridden by specifying an extension explicitly.
The output is written on jobname.dvi, which can be printed using lp(1). A log of error messages goes into jobname.log.
As well as the standard TeX fonts, many PostScript fonts can be used (see the contents of /sys/lib/tex/fonts/psvf). The file testfont.tex (in the standard macro directory) will print a table of any font.
The following environment variables adjust the behavior of tex. Search paths are lists of directories separated by colons. The wildcard // may expand to any path, so /sys/lib/texmf// means the entire tree rooted at /sys/lib/texmf, and /usr//lib includes any directories named lib that sit anywhere under /usr. Finally, braces may be used to specify alternatives, so that /a/{b:c}/d means /a/b/d or /a/c/d.
If a directory contains a file called ls-R, that file is used as an index of the hierarchy rooted there. These files may be created with mktexlsr (see below) If a sought file is not found in an ls-R listing, it is searched for by walking the directory or directory hierarchy as specified. If the path begins with !!, the search is constrained to only look in the ls-R and not walk the hierarchy. Thus !!/sys/lib/texmf// means the entire tree rooted at /sys/lib/texmf, but only consulting /sys/lib/texmf/ls-R to search for files.
Slitex is a version of tex that is preloaded with a set of macros useful for creating viewgraphs.
Latex is a version of tex with a standard set of macros loaded. Latex produces file.dvi and a cross-referencing file, file.aux. It might be necessary to run latex twice, to get all of the cross-referencing done properly.
Bibtex is a bibliography processing program, often used in conjunction with latex. Bibtex reads the top-level auxiliary (.aux) file output by latex and creates a bibliography (.bbl) file to be included in the LaTeX source file. The auxname on the command line should be given without an extension. Each \cite in the source file is looked up in bibliography files to gather together those used in the document. Then a bibliography style file is executed to write a \thebibliography environment.
The source file should have defined the bibliography (.bib) files to search with the \bibliography command, and the bibliography style (.bst) file to execute with the \bibliographystyle command. Bibtex searches the TEXINPUTS path for .bst files, and the BIBINPUTS path (default .:!!/sys/lib/texmf/bibtex//) for .bst files. The LaTeX manual describes how to make bibliography files.
Dvips converts .dvi files to PostScript, writing the result on standard output. It is normally invoked by lp(1), but if invoked separately, the following options are useful:
The following environment variables affect dvips:
Dviselect selects pages from a .dvi file, creating a new .dvi file. A range is a string of the form first:last where both first and last are optional numeric strings, with negative numbers indicated by a leading underscore character (_). If both first and last are omitted, the colon may also be omitted, or may be replaced with an asterisk (*). A TeX page selector is a list of pages separated by periods. A list of pages is described by a set of page TeX page selectors, separated by commas and/or white space. Dviselect actually looks at the ten count variables that TeX writes; the first of these (\count0) is the page number, with \count1 through \count9 having varied uses depending on which macro packages are in use. (Typically \count1 is a chapter or section number.) A page is included in dviselect's output if all its \count values are within any one of the ranges listed on the command line. For example, the command dviselect *.1,35: might select everything in chapter 1, as well as pages 35 and up.
Instead of \count values, dviselect can also select by absolute page number, indicated by a leading equal sign (=). Ranges of absolute pages are also allowed: dviselect =3:7 will extract the third through seventh pages.
Dvips understands some extended graphics commands that can be output using tpic specials in the TeX source. Many of them work by building up a path of x,y pairs, and then doing something with the path. The tpic coordinate system has its origin at the current dvi position when a drawing special is emitted; all length arguments are in units of milli-inches, and the y-axis goes positive downward.
All of the specials leave TeX at the same position on the page that it started in.
Mf runs metafont, a program that produces fonts for TeX. It is used by dvips when bitmaps for a given font at a given size do not exist.
Mktexlsr is used to generate ls-R files for quick path searching. It simulates the Unix command ``ls -LAR .''.
9srv Manual Collection/plan9/tex(1) | Rev: Thu May 11 16:44:25 BST 2000 |