This is file manual.t2l that explains the package tex2ltx.
Copyright (C) 1998 Pedro Fortuny
Departamento de Algebra, Universidad de Valladolid. Spain.

pfortuny@vax631.cpd.uva.es

%%installation instructions

simply download the file t2l.zip and expand it in a directory included
in your PATH environment. I think a good idea is to put it in the same
place as your LaTeX command. Unzip it. Depending on the way you do this
(with directory structure or not), you will have created the following
files:

        tex2ltx.exe
        replace.t2l
        readme.t2l
        manual.t2l (this file)
        src/t2l.c
        src/refs.c
        src/readword.c
        src/change.c
        src/compare.c
        src/difficul.c

        (if you did not tell unzip to preserve directories, the last
        6 files will be in the same directory as the others)

All the .c files are the source. They are included to allow anyone make
any changes -as long as he/she follows the GNU public software licence
conditions (see copying)-. In fact, anyone is encouraged to improve the
program (please tell me in order to let me do so). If you do not want
the source files, you can delete them.

The .exe file is the executable for DOS.

To build the program in any other computer (non-DOS), simply do like this
(this line is for gcc but I think it  is similar for other compilers):

        gcc -c t2l.c readword.c compare.c difficul.c refs.c change.c

        and then

        gcc -o tex2ltx t2l.o readword.o compare.o difficul.o refs.o change.o

You can then delete the .c and .o files and place the executable where you
want. Then you have to add the path where "tex2ltx.exe" and "replace.t2l" are to
your PATH environmental variable. In DOS, supposing you have saved them in

c:\usr\I\bin

then you will have to add the following line to your AUTOEXEC.BAT:

SET PATH=%PATH%;c:\usr\I\bin

(I am sorry, buy I do not know how to do this in Unix, Linux or ...)

As always, you will have to restart your computer before these changes are
effective (maybe it is enough running the AUTOEXEC.BAT, buy I do not know.
I am deeply sorry for this :-(   )

%%%%%%%%%%%%%%%%%%%%%
The usage of tex2ltx is very easy: 

        write tex2ltx followed by the name (with extension) of the file
        to translate.

        IMPORTANT:
                a) if you simply do as above, tex2ltx will DESTROY any file
                with the same name but extension .ltx so BE CAREFUL.

        You can type also:

        tex2ltx original.file destination.file
        to indicate the name of the destination file

HANDLING BIBLIOGRAPHY

        tex2ltx has the option of translating the bibliography appearing in
        your Plain document into a BiB-TeX file, in which case, it will not
        appear in the LaTeX file. To do so, use the flag '-b': examples

        tex2ltx file.ext -b

        will:
                create (destroying previous versions) a file named file.ltx
                which is the LaTeX file.
                create (ibid) a file named file.bib, which is the BiB-TeX
                file

        tex2ltx file.ext elif.txe -b

        will:
                create (ibid) a file named elif.txe which is the LaTeX file
                create (ibid) a file named file.bib (attention) which is
                the bibliography in BiB-TeX style. There will be no references
                in the LaTeX file.

        and, finally,

        tex2ltx file1.ex1 file2.ex2 -b file3.ex3

        will do what you gess.


see the file readme.t2l to know how tex2ltx handles references.


FINAL REMARKS

2.-The program is designed for AMS-TeX and AMS-LaTeX. If you do not use
AMS-LaTeX, you are encouraged to do so -it is very interesting. Anyway,
you can modify the replace.t2l in order to get the translation you
prefer. But do this with care (if you have any doubt, follow the instructions
at the beginnig of the file and do the add-ons by try-error). ONE OF THE
MOST IMPORTANT THINGS IS NOT TO ADD SPURIOUS NEWLINE's: the file MUST
ALWAYS BEGIN LIKE THIS:

%
%  (comments)
%
Plain command
LaTeX command
(empty line)
...

IF NEWLINES ARE ADDED, THE RESULT MAY BE CHAOTIC.

3.-As you will have guessed (if not, forget about this remark), the program
will easily be converted into a LaTeX-Plain translator, only doing minor
changes in the replace.t2l and in the source file -except for those things
related to bibliography. If you do these changes, I would appreciate your
telling me them and ... sending them to me if you like.

4.- The program always puts the following line in the header:
\documentclass{article}

not amsart. But this is not too much problematic. It adds some include's
to load AMS-LaTeX extensions (some, not all).


End of the file manual. Now comes the legal stuff.

Copying
*******

Tex2LaTeX is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.


No warranty
***********

TeX2LaTeX is distributed in the hope that it will be useful, but WITHOUT
ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
for more details.

You should have received a copy of the GNU General Public License
along with MiKTeX; if not, write to the Free Software Foundation,
Inc., 675 Mass Ave, Cambridge, MA 02139, USA.

