home *** CD-ROM | disk | FTP | other *** search
- /*********************************************
- * *
- * AmigaTeX-Driver, Version 1.0 (26.03.1994) *
- * *
- *********************************************/
- /******************************************************************
- * Important Notes: *
- * Don't forget to start "preview" in the Background (Track File) *
- * and "tex" in a separate shell with -R (I guess you have enough *
- * memory ;-). *
- ******************************************************************/
-
- /*************
- * Arguments *
- *************/
- ARG filename dirname
-
- filename = TRANSLATE(filename, XRANGE('a','z'), XRANGE('A','Z'))
- dirname = TRANSLATE(dirname, XRANGE('a','z'), XRANGE('A','Z'))
- texfile = filename || ".tex"
- dvifile = filename || ".dvi"
-
- ADDRESS COMMAND "Delete >NIL:" texfile
- ADDRESS COMMAND Rename filename texfile
-
- IF ~show('Ports','AMIGATEX') THEN DO
- SAY "Please start AmigaTeX in the background!"
- EXIT
- END
-
- printer = "TeX:c/dvip6"
-
- ADDRESS 'AMIGATEX' CD dirname
- ADDRESS 'AMIGATEX' TEXIFY texfile
- /* ADDRESS COMMAND printer dvifile */
-
- EXIT
-