Previous | Table of Contents | Next

Page 1250

Suffix File Type
.awk AWK language program
.bak Backup file
.bm Bitmap source
.c C source
.cat Message catalog files
.cc C++ source
.cf Configuration file
.conf Configuration file
.config Configuration file
.cweb Donald Knuth's WEB for C
.dat Data file
.def Modula-2 source for definition modules
.def Other definition files
.diff ASCII File differences
.doc Documentation file
.dvi TeX device independent output
.el EMACS lisp source
.elc Compiled EMACS lisp
.eps Encapsulated PostScript
.f FORTRAN source
.fas Precompiled common lisp
.fi FORTRAN include files
.gif Graphics Interchange Format
.gsf Ghostscript fonts
.gz File compressed using gzip(1)
.h C or C++ header files
.hlp Help file
.htm HTML file imported without renaming from a brain-damaged OS
.html HTML document used with the World Wide Web
.i C source after preprocessing
.idx Reference or datum-index file for hypertext or database system
.icon Bitmap source
.image Bitmap source
.in Configuration template, especially for GNU autoconf
.info Files for the EMACS info browser
.java A Java source file
.jpg JPEG compressed picture format
.l lex(1) or flex(1) files
.lib Common lisp library
.ln Files for use with lint(1)
.lsp Common lisp source
.m4 M4(1) source
.mac Macro files for various programs

Page 1251

Suffix File Type
.man Manual page (usually source rather than formatted)
.me nroff source using the me macro package
.mf Metafont (font generator for TeX) source
.mm Sources for groff(1) in mm format
.mod Modula-2 source for implementation modules
.o Object file
.old Old or backup file
.orig Backup (original) version of a file from patch(1)
.out Output file, often an executable program (a.out)
.p Pascal source
.patch File differences from patch(1)
.pcf X11 font files
.pfa PostScript font definition files, ASCII format
.pfb PostScript font definition files, binary format
.pgp PGP binary data
.pid File to store daemon PID (such as crond.pid)
.png Portable Network Graphics file
.pl Perl script
.pr Bitmap source
.ps PostScript file
.r RATFOR source (obsolete)
.rej Patches that patch(1) couldn't apply
.rules Rules for something
.s Assembler source
.sa Stub libraries for a.out shared libraries
.sc sc(1) spreadsheet commands
.sh sh(1) scripts
.shar Archive created by the shar(1) utility
.so DLL dynamic library
.sqml SQML schema or query program
.sty LaTeX style files
.sym Modula-2 compiled definition modules
.tar Archive created by the tar(1) utility
.tar.Z tar archive compressed with compress(1)
.tar.gz tar archive compressed with gzip(1)
.taz tar archive compressed with compress(1)
.tex TeX or LaTeX source
.texi Equivalent to .texinfo
.texinfo TeXinfo documentation source
.tfm TeX font metrics
.tgz tar archive compressed with gzip(1)
.tmpl Template files

continues

Page 1252

Suffix File Type
.txt Text file
.uue Binary file encoded with uuencode(1)
.web Donald Knuth's WEB
.y yacc(1) or bison(1) (parser generator) files
.z File compressed using pack(1) (or an old gzip(1))
.zoo ZOO archive
~ EMACS or patch backup file
rc Startup (run control) file, such as .newsrc

CONFORMS TO

General UNIX conventions.

BUGS

This list is not exhaustive.

SEE ALSO

file(1), make(1)

Linux, 4 April 1996

tr2tex

tr2tex—Convert a document from troff to LaTeX

SYNOPSIS

tr2tex [ -m ] filename

DESCRIPTION

tr2tex converts a document typeset in troff to a LaTeX format. 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 or 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 package and must be available to the document when processed with LaTeX.

If there is more than one input file, they will all be converted 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 contain that command will be commented out.

Note that if you have eqn symbols, you must have the inline mathematics delimiter defined by delim in the file you are converting. If it is defined in another setup file, that setup file must be concatenated with the file to be converted; otherwise, tr2tex regards the inline math as ordinary text.

Page 1253

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 (such as .sp3i).
  • When some operators (notably over, sub, and sup) are renamed (via define) and then they are encountered in the text, tr2tex treats them as ordinary macros and does not apply their rules.
  • rpile, lpile, and cpile are treated the same as cpile.
  • rcol and 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. Because they are sometimes not put in troff, they can create problems. Example: .nf is not closed by .fi.
  • When local motions are converted to nraise or nlower, an nhbox is needed, which must 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 subj} 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.

TO DO

Access registers via the .nr command.

SEE ALSO

texmatch(9), trmatch(9)

AUTHOR

Kamal Al-Yahya, Stanford University

1 January 1987

Unicode

Unicode—The unified 16-bit super character set.

DESCRIPTION

The international standard ISO 10646 defines the Universal Character Set (UCS). UCS contains all the characters of all other character-set standards. It also guarantees round-trip compatibility; conversion tables can be built such that no information is lost when a string is converted from any other encoding to UCS and back.

UCS contains the characters required to represent almost all known languages. This includes apart from the many languages that use extensions of the Latin script also the following scripts and languages: Greek, Cyrillic, Hebrew, Arabic, Armenian, Gregorian, Japanese, Chinese, Hiragana, Katakana, Korean, Hangul, Devangari, Bengali, Gurmukhi, Gujarati, Oriya, Tamil, Telugu, Kannada, Malayam, Thai, Lao, Bopomofo, and a number of others. Work is going on to include further scripts such as Tibetan, Khmer, Runic, Ethiopian, Hieroglyphics, various Indo-European languages, and many others. For most of these latter scripts, it was not yet clear how they can be encoded best when the standard was published in 1993. In addition to the characters required by these scripts, also a large number of graphical, typographical, mathematical, and scientific symbols such as those provided by TeX, PostScript, MS-DOS, Macintosh, Videotext, OCR, and many word processing systems have been included, as well as special codes that guarantee round-trip compatibility to all other existing character-set standards.

Previous | Table of Contents | Next

1