|
|
DataMuseum.dkPresents historical artifacts from the history of: DKUUG/EUUG Conference tapes |
This is an automatic "excavation" of a thematic subset of
See our Wiki for more about DKUUG/EUUG Conference tapes Excavated with: AutoArchaeologist - Free & Open Source Software. |
top - metrics - downloadIndex: T t
Length: 3562 (0xdea)
Types: TextFile
Names: »tr2tex.hlp«
└─⟦52210d11f⟧ Bits:30007239 EUUGD2: TeX 3 1992-12
└─⟦63303ae94⟧ »unix3.14/TeX3.14.tar.Z«
└─⟦c58930e5c⟧
└─⟦this⟧ »TeX3.14/TeXcontrib/kamal/troff_to_tex/tr2tex.hlp«
TR2TEX(9) UNKNOWN SECTION OF THE MANUAL TR2TEX(9)
NAME
tr2tex - convert a document from troff to LaTeX
SYNOPSIS
tr2tex [ -m ] filename
DESCRIPTION
Tr2tex converts a document typeset in troff to a LaTeX for-
mat. It is intended to do the first pass of the conversion.
The user should then finish up the rest of the conversion
and customize the converted manuscript to his/her liking.
It can also serve as a tutor for those who want to convert
from troff to LaTeX.
Most of the converted document will be in LaTeX but some of
it may be in plain TeX. It will also use some macros in
troffms.sty or troffman.sty which are included in the pack-
age and must be available to the document when processed
with LaTeX.
If there is more than one input file, they will all be con-
verted into one LaTeX document.
Tr2tex understands most of the -ms and -man macros and eqn
preprocessor symbols. It also understands several plain
troff commands. Few tbl preprocessor commands are understood
to help convert very simple tables.
When converting manuals, use the -m flag.
If a troff command cannot be converted, the line that con-
tain that command will be commented out.
NOTE: if you have eqn symbols, you must have the in-line
mathematics delimiter defined by delim in the file you are
converting. If it is defined in another setup file, that
setup file has to be concatenated with the file to be con-
verted, otherwise tr2tex will regard the in-line math as
ordinary text.
BUGS
Many of these bugs are harmless. Most of them cause local
errors that can be fixed in the converted manuscript.
- Some macros and macro arguments are not recognized.
- Commands that are not separated from their argument by a
space are not properly parsed (e.g .sp3i).
- When some operators (notably over, sub and sup) are
renamed (via define), then they are encountered in the text,
tr2tex will treat them as ordinary macros and will not apply
Sun Release 3.0B Last change: 1 January 1987 1
TR2TEX(9) UNKNOWN SECTION OF THE MANUAL TR2TEX(9)
their rules.
- rpile, lpile and cpile are treated the same as cpile.
- rcol, lcol are treated the same as ccol.
- Math-mode size, gsize, fat, and gfont are ignored.
- lineup and mark are ignored. The rules are so different.
- Some troff commands are translated to commands that
require delimiters that have to be explicitly put. Since
they are sometimes not put in troff, they can create prob-
lems. Example: .nf not closed by .fi.
- When local motions are converted to \raise or \lower, an
\hbox is needed, which has to be put manually after the
conversion.
- 'a sub i sub j' is converted to 'a_i_j' which TeX parses
as 'a_i{}_j}' with a complaint that it is vague. 'a sub {i
sub j}' is parsed correctly and converted to 'a_{i_j}'.
- Line spacing is not changed within a paragraph in TeX
(which is a bad practice anyway). TeX uses the last line
spacing in effect in that paragraph.
TODO
Access registers via .nr command.
SEE ALSO
texmatch(9), trmatch(9).
AUTHOR
Kamal Al-Yahya, Stanford University
Sun Release 3.0B Last change: 1 January 1987 2