                   M-Tx Preprocessor Source Code
 
This is the development version of the M-Tx Preprocessor.  It contains the 
file "mtx.tex" and all the sources for generating the "prepmx" binary. 
 
On a GNU system (e.g. Linux; or Cygwin running under Windows) you need
to change to some empty directory and unzip a file with a name of the
form mtxP????.zip or of the form mtxC????.zip (use GNU unzip with the
-a option, or some other unzipper that can convert text files to your
operating system format).
 
If your zipfile was mtxP????.zip and your system is Linux, go to 1.
If your zipfile was mtxP????.zip and your system is Windows, go to 2.
If your zipfile was mtxC????.zip, and your system is Linux, go to 3.
If your zipfile was mtxC????.zip, and your system is Windows, go to 4.


                1. Pascal source code for Linux  

You need to have the package p2c already installed (on Red Hat systems,
both p2c and p2c-devel).  Then just type
  
  make

to make prepmx.


                2. Pascal source code for Windows  

2.1 You need to have Borland Pascal 7.0 or later already installed.

2.2 Edit the file "globals.pas" and change the lines

          lines_in_paragraph = 100; 
	  max_words = 128;
	  max_notes = 128;

    to

          lines_in_paragraph = 50; 
	  max_words = 64;
	  max_notes = 64;

2.3 Type 

        bpc -b prepmx

    to make prepmx.exe.



                3. C source code for Linux  

Just type
  
  make

to make prepmx.


                3. C source code for Windows  

If you have a full Cygwin system installed, just type

  make

to make prepmx.

If you have an ANSI compliant C compiler (sorry, Visual C++ 6.0 is not
such), compile and link all the .c files.  The command line might read

  gcc *.c -o prepmx.exe

or



 

