diff options
Diffstat (limited to 'obsolete/systems/os2/emtex-contrib/emtexTDS')
9 files changed, 3100 insertions, 0 deletions
diff --git a/obsolete/systems/os2/emtex-contrib/emtexTDS/NEWS b/obsolete/systems/os2/emtex-contrib/emtexTDS/NEWS new file mode 100644 index 0000000000..faec01366c --- /dev/null +++ b/obsolete/systems/os2/emtex-contrib/emtexTDS/NEWS @@ -0,0 +1,269 @@ +============================================================ + emTeX/TDS -- list of changes +============================================================ + + +v0.56 <2001-09-30> +================== + + Latest versions of LaTeX, PSNFSS 8.2 and other packages, + including KOMA-Script; minor fixes to Babel. + + Replaced wrong dehyphn.tex with correct version. + + Added documentation of (n)german.sty. + + Type 1 fonts: Fixed line and circle fonts wrt/ AR5 + compatibility; added missing variants of the wncyr fonts; + added "St-Mary-Road" math symbols and related macro + package; added "BrushScriptX" typeface. + + With emTeX/TDS, the name of the dvips option to load the + CM fonts in Type1 format used to be "-P cmfonts". This + is now changed to "-P cms", in order to comply with other + TeX systems and with the description in the "LaTeX Web + Companion". + + Xipa and Ibycus fonts not supplied, but listed in the + dvips map file. + + Obsolete dvihps.exe is no longer supplied. + + Minor bug fix re. makelatex.cmd (include path). + + tfe.cfg (configuration file for TeX Front End) + updated wrt/ GSView 4.0 + +Note that this includes all fixes of FP #007, too. + + + +v0.55 <2001-04-04> +================== + +Hyphenation +----------. +* French patterns updated to v2.9. +* Dutch patterns replaced by new `1996' version. +* Danish, Spanish and Portuguese patterns replaced by the + versions, which are `officially' recommended by the + particular TeX user groups. +* Russian pattens added; however, they are not installed + by default + +LaTeX +----- +* KOMA-Script 2.6d +* Babel 3.7 +* PSNFSS v8.1a with minor bugfixes + +Fonts +----- +* added missing CM and AMS-Cyrillic fonts in Type1 format; + updated cmfonts.map accordingly; +* fixed Type1 fonts cmbsy5, cmbsy7, cmmib5, cmmib7 + (== FP 005) +* the LY1 encoding is now supported, too +* added "Marvosym" symbols font + + +tfe.cfg +------- +* tfe,cfg updated wrt/ GSView 3.6 + + + +v0.54 <2000-10-04> +================== + +LaTeX +----- +* latest LaTeX (June 2000) +* latest AMS-LaTeX (July 2000) +* latest releases of KOMA-Script, cmbright.sty, ccfonts.sty +* fixed .fd files for the AMS fonts; no more need to load + the amssymb package with the buggy option [psamsfonts] +* fixed hyphen.cfg, making the [norsk] option of Babel work + +plain TeX +--------- +* plain TeX 3.1415926 + +dvips +----- +* fixed config.ps for MF modes other than "ljfour" + (== FP #004 ) + + + +v0.53 as of 2000-03-22 +====================== + +Installation instructions and tdsinst.cmd updated with +respect to latest Ghostscript/GSView. + + + +v0.53 <2000-02-07> +================== + +LaTeX +----- +* latest LaTeX (Dec. 1999) +* AMS-LaTeX 2.x +* PSNFSS 8.1 +* latest KOMA-script and dinbrief bundles +* 8-bit portuguese hyphenatation patterns +* calrsfs.sty removed -- please, use mathrsfs instead +* LaTeX Font definitions for TS1/ccr fixed + +Fonts +----- +* new Type1 fonts: Adobe Utopia, Bitstream Charter +latest AE fonts v1.2 + +* font names of the Adobe Euro fonts changed, for compliance +with the KB scheme + +Drivers, Tools +-------------- +* dvihplj replaced with 32 bit version. +* vptovf updated to v1.5. +* afm2tfm program added. + + + +v0.52 <1999-08-09> +================== + +LaTeX +----- +* latest LaTeX (June 1999) +* new packages: wasysym, mathrsfs +* Babel updated to 3.6x + +Fonts +----- +new fonts: Waldi's symbols (wasy) in both Metafont and +PostScript format. + +New Type1 versions of the CM and AMS fonts, which can be +used with VTeX/2, too. As to using the fonts with dvips, +nothing has changed, since the map file has been adapted +appropriately! + +dvips +----- +* psfonts.map now includes the entries for all installed +Type1 fonts. + +* dvi(h)ps32.exe renamed to dvi(h)ps.exe; old files are, +however, NOT deleted upon installation, so that existent +shell scripts will work without changes. + +makeindex +--------- +makeindex.exe replaced with version from the original emtex +distribution; in contrast to the previous one, this program +will accept multiple input directories in the environmemt +variable INDEXSTYLE. + + + +v0.51 <1999-04-20> +================== + +TeX, LaTeX +---------- +Babel package v3.6t (including support for new German +orthography), mathpple package v1.1. + + +Fonts +----- +PostScript (Type1) versions of all CM, AMS and MFLogo fonts +will be installed by default. + + +dvips +----- +Removed entries for obsolete logo fonts from map file +psfonts.cmz. Added map file logo.map + related entry in +config.ps. + + + +v0.5 <1999-03-23> +================= + +TeX, LaTeX +---------- +The name of the US-English hyphenation pattern file has been +changed, thus complying with DEK's file naming scheme: + UShyphen.tex -> hyphen.tex + +The names of the traditional and new German hyphenation +pattern files have been changed: + ghyph31.tex -> dehypht.tex + gnhyph01.tex -> dehyphn.tex +Besides, the new patterns have been updated to Rev.28, thus +fixing a few bugs. The old pattern files ghyph31.tex and +gnhyph01.tex should be deleted. + +LaTeX comes with more languages supported -- see the +"Technical Manual". + +The directories of the Babel system have been moved from +texmf\***\latex\babel\ to texmf\***\generic\babel\. + +New LaTeX classes and packages: the KOMA script classes and +the packages eurosym, eurosans, mathpple and calrsfs + +All packages and hyphenation patterns have been updated to +the latest version. (Babel, however, is still v3.6h, +due to a bug in the new 3.6k.) + +Language configuration for plain TeX is now set up in a file +named "plain.cfg" (previously: hyphen.tex) in the directory +texmf\tex\plain\local. In case a file "hyphen.tex" still +exists there, it is to be deleted. The script +makeplaintex.cmd should, however, ignore it. + +Fonts +----- +New MF fonts: AMS Cyrillic, Eurosym, rsfs + +Additional Type1 fonts: CM, AMS, Euler, RSFS, Adobe Euro +(font metrics only). + +dvips +----- +The search paths of dvips are now fully TDS compliant. +All configuration files are located below texmf\dvips: + + The default configuration file config.ps and all standard + .map, .pro and .enc files are located in the subdirectory + "base". + + "config.ps" is not to be changed by the user any more! + Write your dvips configuration data to a file named + "dvips.ini" instead; this file should reside in the + subdirectory "local". + + The directory texmf\emtex\data\dvips is no longer used; + its contents may be deleted. + +Additional PostScript (Type1) fonts should reside in +subdirectories of texmf\fonts\type1 and will there be +found by dvips. + +In this context the new environment variables TEXCONFIG and +TYPE1FONTS had to be introduced. + +dvips has been updated to v5.83; the well known bugs and +limitations affecting partial font downloading should have +gone now. + + +-- finis + diff --git a/obsolete/systems/os2/emtex-contrib/emtexTDS/README.fixes b/obsolete/systems/os2/emtex-contrib/emtexTDS/README.fixes new file mode 100644 index 0000000000..8f03be1006 --- /dev/null +++ b/obsolete/systems/os2/emtex-contrib/emtexTDS/README.fixes @@ -0,0 +1,37 @@ +============================================================ + emTeX/TDS -- fix #008 (2002-02-27) +============================================================ + +FixPak 8 for emTeX/TDS 0.56 is provided in the subdirectory +fix008. Download all files from the subdirectory to a +temporary folder; when downloading via FTP, use "binary" +mode! Further installation instructions are provided in the +file "readme.1st". + +Installing this package will + +1) replace the obsolete/defective Metafont sources of the + invisible SliTeX fonts; + +2) update the .mf sources of the Concmath fonts, which are + lacking the copyright information; + +3) update modes.mf + +4) enhance the documentation of dvips; + +5) replace defective BaKoMa Type1 fonts + with newer fonts from the Tt2001 collection; + +6) update the French hyphenation patterns to v2.11; + +7) update the Italian hyphenation patterns to v4.8d; + +8) add the missing KOMA-Script bug report form (file + komabug.tex) + +9) remove a few junk files. + + +== finis + diff --git a/obsolete/systems/os2/emtex-contrib/emtexTDS/fix008/fix008.cmd b/obsolete/systems/os2/emtex-contrib/emtexTDS/fix008/fix008.cmd new file mode 100644 index 0000000000..ee99b80b25 --- /dev/null +++ b/obsolete/systems/os2/emtex-contrib/emtexTDS/fix008/fix008.cmd @@ -0,0 +1,72 @@ +/* REXX */
+
+/* emTeX/TDS fix # 008 installation script */
+FIXNO = "008"
+FIXVER = 0.56
+
+
+/* loading the library */
+ret = RxFuncAdd("SysLoadFuncs", "REXXUTIL", "SysLoadFuncs")
+call SysLoadFuncs
+
+/* Fixpak file name */
+fixpak = "fix" || FIXNO || ".zip"
+
+/* TeX drive */
+texdrive = substr(value("EMTEXDIR", , "OS2ENVIRONMENT"),1,1)
+if texdrive = "" then do
+ say "The environment variable EMTEXDIR is undefined,"
+ say "so I don't know what to fix."
+ say "Are you sure that you have installed emTeX/TDS ?"
+ exit
+end
+
+/* checking the version*/
+version = SysIni(texdrive||":\texmf\emtex\data\EMTEXTDS.INI", "EMTEXTDS", "VERSION")
+if version <> FIXVER then do
+ say "This fix can only be applied to emTeX/TDS, version " || FIXVER || "."
+ exit
+end
+
+/* checking existence of fixpak file */
+if stream(fixpak, "C", "QUERY EXISTS") = "" then do
+ say "I cannot find the file " || fixpak || " in the current directory!"
+ exit
+end
+
+say "Fixing emTeX/TDS on drive" texdrive || ":"
+
+/* directories */
+call setlocal
+tempdir = directory()
+call directory(texdrive||":\texmf")
+
+/* unzip fixpak */
+ret=value("UNZIP", "-qqo", "OS2ENVIRONMENT")
+"unzip " || tempdir || "\" || fixpak
+
+
+/* =============================================================== */
+
+/* delete junk files */
+call SysFileDelete("fonts\source\public\cm\cmex9.mf")
+call SysFileDelete("tex\latex\base\latexbug.msg")
+call SysFileDelete("tex\latex\base\latex.log.new")
+call SysFileDelete("doc\fonts\cm\bakoma-cm.fonts")
+"erase fonts\type1\bakoma\cm\* /N"
+"rmdir fonts\type1\bakoma\cm"
+"rmdir fonts\type1\bakoma"
+
+/* =============================================================== */
+
+call endlocal
+
+say
+call makelatex
+call makeplaintex
+call makemf
+
+say
+say "Finis!"
+
+/* finis */
diff --git a/obsolete/systems/os2/emtex-contrib/emtexTDS/fix008/readme.1st b/obsolete/systems/os2/emtex-contrib/emtexTDS/fix008/readme.1st new file mode 100644 index 0000000000..a5e3d0c7dd --- /dev/null +++ b/obsolete/systems/os2/emtex-contrib/emtexTDS/fix008/readme.1st @@ -0,0 +1,51 @@ +============================================================
+ emTeX/TDS -- fix #008 (2002-02-20)
+============================================================
+
+
+Apply to version 0.56 only !
+--------
+
+Installing this package will
+
+1) replace the obsolete/defective Metafont sources of the
+ invisible SliTeX fonts;
+
+2) update the .mf sources of the Concmath fonts, which are
+ lacking the copyright information;
+
+3) update modes.mf to version 3.5
+
+4) enhance the documentation of dvips;
+
+5) replace defective BaKoMa Type1 fonts
+ with newer fonts from the Tt2001 collection;
+
+6) update the French hyphenation patterns to v2.11;
+
+7) update the Italian hyphenation patterns to v4.8d;
+
+8) add the missing KOMA-Script bug report form (file
+ komabug.tex)
+
+9) remove a few junk files.
+
+
+Special thanks to Thomas Esser for pointing me to 1) and 2).
+
+
+Installation instructions
+-------------------------
+
+Having downloaded the files
+
+ fix008.zip
+ fix008.cmd
+
+to a temporary directory, execute the REXX script fix008.cmd
+there; doing so will also generate new format files.
+
+Please, take a look at the enhanced section 7 (dvips) of the
+manual: texmf\doc\emtextds\manual.eng and .\manual.ger.
+
+== finis
diff --git a/obsolete/systems/os2/emtex-contrib/emtexTDS/readme.eng b/obsolete/systems/os2/emtex-contrib/emtexTDS/readme.eng new file mode 100644 index 0000000000..4743c27709 --- /dev/null +++ b/obsolete/systems/os2/emtex-contrib/emtexTDS/readme.eng @@ -0,0 +1,627 @@ +************************************************************ +* * +* emTeX/TDS * +* * +* Installation Instructions * +* and General Information * +* * +************************************************************ + Version 0.56 + 2001-09-30 + Walter Schmidt +Copyright (C) 1999--2001 Walter Schmidt + + +************************************************************ +* * +* Support for emTeX/TDS will be discontinued on 2002-06-30.* +* * +* If you are new to TeX on OS/2, install VTeX/2 instead: * +* see CTAN:systems/vtex . * +* * +************************************************************ + + +Contents: +========= + +1) Overview +2) Prerequisites +3) Installing Ghostscript +4) Installing emTeX/TDS +5) Environment variables and LIBPATH +6) Documentation +7) Setting up the printer +8) Running an example document through LaTeX + +Appendix: + +A) Uninstalling emTeX/TDS +C) Support +D) Legal stuff + + +1) Overview +=========== +emTeX/TDS is an emTeX-based TeX system for OS/2 Warp with a +TDS-compliant directory structure. emTeX/TDS comes with an +installation program for setting up the following components: + + LaTeX2e with additional packages: "graphics", "tools", + "german", "babel" and others. + + Postscript font support for LaTeX, aka. "psnfss" (for + the 35 standard fonts); support for the Adobe Euro + fonts. + + Additional Metafont and PostScript fonts, including the + Type1 (PostScript) versions of the CM, AMS and Euler + fonts. + + plain TeX + + TeX hyphenation patterns for American English and many + European languages, pre-installed in LaTeX and plain TeX. + + dvips 5.83 + + dvipm + + emTeX dvi printer driver for Laserjet/Deskjet + + Metafont incl. MFJob and various tools (gftodvi etc.) + + Makeindex 2.12 + + Bibtex 0.99c with the original styles + +The "EPM TeX Front End" is recommended as a GUI. This is a +powerful integrated TeX environment based on the OS/2 +"Enhanced Editor" (EPM). It is distributed from CTAM, see +the directory systems/os2/epmtfe. + + + +2) Prerequisites +================ +TeX is to be installed on a HPFS drive, because emTeX/TDS +will be using long filenames. + +The Ghostscript program is required for viewing PostScript +documents -- see the next section. + +The TeX system requires about 30MB for the files to be +installed. The fonts, which will be generated on demand +when viewing or printing documents, will be stored on the +same drive; extra 30MB should be provided at least for these +fonts and for future additions. The latest version of +Ghostscript incl. GSView needs 12MB. + +Installation will require about 14MB of temporary disk space +which may be released afterwards. + +Installing Ghostscript as well as emTeX will require the +program "unzip.exe". In case it is not available on your +PC, you may obtain it from the same directory where +emTeX/TDS is located; you will have to copy it to a +directory where other programs are kept, too; e.g., to the +directory \OS2 on the boot drive. + +Ghostscript and emTeX are based on the the emx runtime +environment, version 0.9d; it can be installed automatically +in conjunction with Ghostscript. However, older versions of +emx should be updated manually, before installing emTeX or +Ghostscript! + +In addition to the emTeX/TDS distribution you will also need +various files of the original emTeX distribution; the +particular files are be listed below. They can be obtained +from the CTAN directory systems/msdos/emtex. + + + +3) Installing Ghostscript +========================= +Obtain the following files: + +<ftp://ftp.cs.wisc.edu/pub/ghost/ghostgum/gsv36os2.zip> +<ftp://ftp.cs.wisc.edu/ghost/aladdin/gs650/gs650os2.zip> + +The files gsv36os2.zip and gs650.zip are also distributed +from CTAN. The file and directory names reflect the version +numbers and may have changed in the meantime. + +In case the emx runtime environment needs also to be +installed, the file + +<ftp://ftp-os2.nmsu.edu/pub/os2/dev/emx/v0.9d/emxrt.zip> + +is required, too. + +Unzip gsv36os2.zip to a temporary directory, place the files +gs650os2.zip (and emxrt.zip, if required) in the same +directory, and run os2setup.exe then. (Pay attention to the +instructions of the program, if you are also installing emx +during this step!) The temporary directory can be deleted +afterwards. + + + +4) Installing emTeX/TDS +======================= +Please, read this section carefully and completely, even if +you intend to update an existing emTeX/TDS only. In this +case, notice the file NEWS, too: Important changes +introduced with the latest version are listed there. + +1. Copy the following files into one directory (which can be + removed once the installation is completed): + + From this emTeX/TDS distribution: + + tdsinst.cmd (the installation program) + config.zip + texmf.zip + + From the original emTeX distribution, + i.e., CTAN:systems/msdos/emtex: + + bibtex4b.zip + dvid16h1.zip + dvid16h2.zip + makeindx.zip + mf4b.zip + mfjob12d.zip + mfware.zip + tex4b.zip + texware.zip + + The latter files are NOT required, if you only want to + update from version 0.53 or above! + +2. Go to the above directory; then start the installation + program "tdsinst". (tdsinst CANNOT be executed from a + different directory!) You will be asked for the drive, + where TeX is to be installed ("TeX drive"); it will be + installed in the directory "\texmf" of that drive. + + If a version of emTeX/TDS < 0.55 is found on your HD, the + installation program needs to overwrite various + configuration files; however, you will be asked to agree: + + tex/latex/local/hyphen.cfg + tex/latex/local/graphics.cfg + tex/latex/local/color.cfg + tex/latex/local/ltxdoc.cfg + tex/latex/local/ltxguide.cfg + tex/plain/local/plain.cfg + emtex/data/vp.cnf + emtex/data/dvijet.cnf + + In case you have customized any of the above files, then + you should unpack the new version under a different name + first (enter "r" when asked for) and compare the changes + with yours, before you run TeX or the dvi drivers. + + The installation program will ask you whether you want a + program object for the dvi viewer "dvipm" to be created + on the desktop. When installing emTeX/TDS for the first + time, you cannot run this program unless you will have + performed the below steps 3 and 5. You may want to + change the settings of this program object so as to + associate all files of type "*.dvi" with it by default. + + emTeX/TDS requires various environment variables to be + set; the LIBPATH as well as PATH and HELP are to be + changed. The installation program can apply the + necessary changes to the OS/2 configuration file + config.sys, but will ask you before doing so. You may + quit the program there and perform the changes manually; + the necessary information can be found in the section + below. This must be done before you can proceed with the + following steps! + + In case the installation program terminates abnormally + with a message including the word "Error", please, + cut-and-paste as much as possible from the command window + to a file and send it to me via email. See the below + section "Support" for the address. + +3. Shut down OS/2, then reboot. + +4. Now execute the program "makelatex" to generate the LaTeX + format file; This can be done from any directory. + +5. Execute the program "makemf" to generate the Metafont + base file; this can be done in an arbitrary directory, + too. + +6. Execute the program "makeplaintex" in an arbitrary + directory in order to to create the plain TeX format + file. In case you want to use LaTeX only or do not + understand what "plain TeX" is, you may skip this step. + + *** The above steps 4, 5 (and 6) need also to be *** + *** executed, when an existing emTeX/TDS is updated. *** + +7. The directory texmf\doc\emtextds contains the "Technical + Manual" (filename manual.eng) WHICH YOU SHOULD READ NOW! + This directory also holds the below mentioned file + eurofont.eng. + + *** Adobe Euro Fonts *** + +8. The file eurofont.eng tells you how to obtain and install + the Adobe Euro fonts ("Euro" symbols in Type1/PostScript + format). Their use is supported through a LaTeX package, + but the fonts are not included here due to legal reasons. + + *** EPM TeX Front End *** + +9. The "EPM TeX Front End" can be obtained from the CTAN + directory systems\os2\epmtfe; see the file README.epmtfe + for initial information then. The emTeX/TDS distribution + contains a suitable configuration file tfe.cfg for the + EPM TeX Front End. + + *** VTeX/2 *** + +10. When installing emTeX/TDS v0.56 over VTeX/2 7.3x, LaTeX + will be updated. You MUST create a new format file for + VTeX afterwards! + + + +5) Environment variables and LIBPATH +==================================== +You need NOT read this section if the installation program +has already applied the necessary changes to the OS/2 +configuration file config.sys! + +The following settings are required for running emTeX/TDS: + +TMP + must point to a directory where temporary files can be + created. + +EMTEXDIR=C:\TEXMF\EMTEX + The base directory for emTeX and dvips stuff. + +TEXMACROS=C:\TEXMF\TEX + Points to the base directory for TeX macros in a TDS + tree. This variable is evaluated by the shell scripts + tex.cmd and latex.cmd. + +TEXTFM=C:\TEXMF\FONTS\TFM!!;. + According to the TDS standard, the directory + texmf\fonts\tfm and all its subdirectory must be searched + for font metrics. Additionally, font metrics can be + taken from the current directory (.). + +BFONTS=C:\TEXMF\FONTS\PK +VFONTS=C:\TEXMF\FONTS\VF!! + According to the TDS standard, bitmap fonts and virtual + fonts are stored below these directories. These + environment variables are evaluated by dvipm, dvihplj, + and dvips (see the appropriate configuration files). + Additionally the current directory will be searched for + .pk files. + +TYPE1FONTS=C:\TEXMF\FONTS\TYPE1 + PostScript fonts for dvips are to be found below this + directory. + +TEXCONFIG=.;C:\TEXMF\DVIPS!! + The search path for dvips' configuration files, i.e. + config.ps, *.cfg and *.map + +EMTEXSWCHAR=- + Options to the dvi drivers must be introduced by a + minus sign, not by a slash. Thus the slash can be used + more freely as a directory separator, as with Un*x. + +MFOPT=-mp50000 + Default Metafont option; useful for certain large + applications. + +MFJOBOPT=-3 -i + Makes MFJob run mf386 (-3) and ignore Metafont errors + (-i). + +MFINPUT=C:\TEXMF\FONTS\SOURCE!!;C:\TEXMF\METAFONT! + The default Metafont input directories. Must point to + the TDS directories where Metafont font sources and other + .mf files are stored. + +INDEXSTYLE=C:\TEXMF\MAKEINDEX + Here we keep .ist files for the Makeindex program. + +BSTINPUT=C:\TEXMF\BIBTEX\BST +BIBINPUT=C:\TEXMF\BIBTEX\BIB + The directories where BibTeX's .bst and .bib files are + stored. + +PATH C:\TEXMF\EMTEX\BIN must be part of the PATH. All + executable programs of emTeX/TDS are located here. + +LIBPATH + C:\TEXMF\EMTEX\DLL must be part of the LIBPATH. + +HELP + C:\TEXMF\EMTEX\HELP must be part of the HELP path. + +TMP may be set individually. All other environment +variables should have the values shown here, except, of +course for the drive letter (here C: as an example). + +Caution: The particular programs may recognize further +environment variables! + + + +6) Documentation +================ +Documentation of the emTeX/TDS system is located in the +directory texmf\doc\emtextds. + +!!! READING THE "TECHNICAL MANUAL" (FILE manual.eng) !!! +!!! IS HIGHLY RECOMMENDED !!! + +The documentation for LaTeX, dvips, BibTeX and Makeindex is +located in the other directories below texmf\doc. + +Files with the extension ".dvi" can be opened using the dvi +previewing program once you have completed the installation. + +Documentation for the programs from the emTeX distribution +(TeX, Metafont, dvipm, dvihplj et al.) can be found in the +directories texmf\emtex\doc (ASCII) and texmf\emtex\book +(OS/2 .inf). Caution: These documents may refer to +components of the original emTeX distribution which are not +provided and/or not usable here. + +See also the file help.eng of the original emTeX collection, +which resides in the CTAN directory systems/msdos/emtex/. + + + +7) Setting up the printer +========================== +Due to the modular nature of TeX several programs have to be +configured separately for the printer to be used. + + +7.1) The dvi previewing program "dvipm" +--------------------------------------- +dvipm should make use of the same bitmap fonts as the +printer; thus one can print from the graphical user +interface of dvipm on any printing device supported by OS/2. + +Initially, dvipm is configured so as to use fonts for a HP +Laserjet 4, Laserjet 5L or Deskjet with a resolution of +600dpi. You need not change anything as long as you are +using one of these or a compatible one. + +Configuring dvipm works through editing the file vp.cnf in +the directory texmf\emtex\data\dvips . Search for the +following lines: + +% Options for dvipm.exe, using "ljfour" mode: +% ++resolution=600 ++metafont-mode=ljfour + +Enter the resolution of your printing device and the +suitable Metafont mode here. Typical "modes" are: + +mode printer +...................................................... +deskjet Deskjet (300dpi) +cx Laserjet (300dpi), except for the following: +jetiiisi Laserjet IIIsi, Laserjet 4L (300dpi) +ljfour Laserjet 4, Laserjet 5L (600dpi) +ljfive Laserjet 5P (600dpi) +ljfivemp Laserjet 5MP (600dpi) +jfzzz LaserJet 4000N, ProRes mode (1200dpi) +ljfzzzfr LaserJet 4000 FastRes (600dpi) + +As long as you do not make use of PostScript fonts or +PostScript graphics in your TeX documents, no further +programs need to be configured. + + +7.2) dvips +---------- +dvips should be configured appropriately for your printing +device in order to make use of PostScript elements in TeX. +Initially it is set up for a Laserjet 4, Laserjet 5L or +Deskjet with 600dpi. You need not change anything as long +as you are using one of these or a compatible one. + +Any printer-specific information is to be entered in the +file dvips.ini in the directory texmf\dvips\local . You will +have to create the directory and the file if they do not yet +exist. At least the Metafont mode and the resolution must +be specified; e.g., for a 300dpi Deskjet the following two +lines must be in dvips.ini: + +D 300 +M deskjet + +D indicates the resolution, M is for the Metafont mode. See +above (dvipm) for typical modes. + +dvips is described in the file texmf\doc\dvips\dvips.dvi . + +See the "Technical Manual" for information about using dvips +with emTeX/TDS (default settings, configuration files, +search paths etc.). + + +7.3) The dvi printer driver "dvihplj" +------------------------------------- +emTeX/TDS also supports direct printing of dvi files +(without PostScript images or fonts) on a Laserjet, Deskjet +or compatible device. This is faster and needs less memory +than printing via dvipm. Configuring dvihplj may, however, +be somewhat difficult. + +A general description of dvihplj can be found in the file +texmf\emtex\book\german\dvidrv.inf (OS/2 inf format). + +See the "Technical Manual" for information about using +dvihplj with emTeX/TDS (default settings, configuration +file, search paths etc.). + + +7.4) EPM TeX Front End +---------------------- +In case you are using the EPM TeX Front End as your TeX +environment, you may want to configure a command for the +menu item "Print" suitable for your printing device. + +The configuration file tfe.cfg which is distributed with +emTeX/TDS has two example entries for using dvihplj and for +printing on a PostScript printer. Initially these entries +are commented out. + +In case you prefer to print via the graphical user interface +of dvipm or GSview only, you may just leave the PRINT_CMD +empty; the related menu item will not be displayed then. +(This holds for texfe version 2.4 and above only.) + + + +8) Running an example file through LaTeX +======================================== +Having installed emTeX/TDS, you should run an example file +through LaTeX. Do this via the command line so as to check +the functions of the "basic" TeX system (as opposed to an +IDE): + +1. Open an OS/2 window (i.e. a command line) in an + arbitrary directory outside the texmf tree + +2. Copy the file C:\texmf\tex\latex\base\small2e.tex to this + directory. (Replace "C:" with the drive where TeX has + actually been installed.) + +3. Run this file through LaTeX by executing the command + + latex small2e + +4. Start the previewer by executing the command + + vp small2e + + If the fonts used in the document small2e do not yet + exist, dvipm will ask you whether they should be created + by running MFJob; click on "Yes". When MFJob has + finished, dvipm will ask whether to reload the document + (now using the fonts which have been created); click on + "Yes" again. + + + +************************************************************ +* * +* Appendix * +* * +************************************************************ + + +A) Uninstalling emTeX/TDS +========================= +The distribution contains a REXX script tdskill.cmd, which +can remove emTeX/TDS from your HD. It is to be run from any +directory outside the \texmf tree to be deleted. The script +removes all entries for emTeX/TDS from the configuration +file config.sys, too, after asking for confirmation, of +course. This script can also be used to remove a corrupt or +incomplete TeX system. + +In case there remain any files or dirctories in the texmf +tree after executing tdskill.cmd, they can be deleted after +re-booting the system. + + + +B) Support +========== +Bug fixes and additional information concerning emTeX/TDS +are available from <ftp://ftp.dante.de/tex-archive/> or from +any other CTAN host in the directory + + systems/os2/emtex-contrib/emtexTDS . + +The latest version of emTeX/TDS will also be made available +there. + +Questions, bug reports and suggestions should be addressed +to the author: + + Walter Schmidt + <was@VR-Web.de> + +Please, understand that I cannot answer any questions +concerning particular programs like tex386, dvips or LaTeX +packages; they should be addressed to the authors of these +programs. + +There is an electronic mailing list, EMTEX-USER, for emTeX. +To get information on how to subscribe and unsubscribe, send +a message containing + + HELP + INFO EMTEX-USER + +in the body to <majordomo@physik.tu-berlin.de>. + + + +C) Legal stuff +=============== +You are allowed to distribute the following set of files as +long as it is complete and all files are unchanged: + +readme.eng +readme.ger +NEWS +tdsinst.cmd +tdskill.cmd +texmf.zip +config.zip +tfe.cfg +unzip.exe + +You are NOT allowed to take money for these files or changed +versions, except for a nominal charge for copying etc. + +No guarantee is made as to the proper functioning of this +software. No liability will be admitted for damage +resulting from using this software. + +NOTE: emTeX/TDS is packaged using Info-ZIP's compression +utility. The installation program makes use of Info-ZIP's +UnZip program, the version 5.40 of which is provided in +conjunction with emTeX/TDS. Info-ZIP's software (Zip, UnZip +and related utilities) is free and can be obtained as source +code or executables from various internet sites, including +<ftp://ftp.dante.de/tex-archive/tools/zip/info-zip/>. + +NOTE: The original sources of the "dvips" program and the +patches to be applied for the PC version can be obtained +from any CTAN site, e.g. <ftp://ftp.dante.de/tex-archive/>; +they are located in the directories: + + dviware/dvips/dvips583.tar.gz +and + systems/os2/dviware/dvips/dvips583.zip + + + +-- finis + +P.S. I would like to apologize for my bad English. +English is not my native language. + diff --git a/obsolete/systems/os2/emtex-contrib/emtexTDS/readme.ger b/obsolete/systems/os2/emtex-contrib/emtexTDS/readme.ger new file mode 100644 index 0000000000..ea2edc660f --- /dev/null +++ b/obsolete/systems/os2/emtex-contrib/emtexTDS/readme.ger @@ -0,0 +1,675 @@ +************************************************************ +* * +* emTeX/TDS * +* * +* Installationsanleitung * +* und allgemeine Informationen * +* * +************************************************************ + Version 0.56 + 2001-09-30 + Walter Schmidt + +Copyright (C) 1999--2001 Walter Schmidt + + +************************************************************ +* * +* Der Suppport fr emTeX/TDS endet am 3. Juni 2002. * +* * +* emTeX/TDS sollte nicht mehr _neu_ installiert werden; * +* es wird empfohlen, stattdessen VTeX/2 zu installieren, * +* siehe CTAN:systems/vtex . * +* * +************************************************************ + + +Inhalt: +======= + +1) Uebersicht +2) Voraussetzungen +3) Ghostscript installieren +4) emTeX/TDS installieren +5) Umgebungsvariablen und LIBPATH +6) Dokumentation +7) Den Drucker konfigurieren +8) Ein Beispieldokument mit LaTeX bearbeiten + +Anhang: + +A) emTeX/TDS entfernen +C) Support +D) Rechtliches + + + +1) Uebersicht +============= +emTeX/TDS ist ein auf emTeX basierendes TeX-System fuer OS/2 +Warp mit einer TDS-konformen Dateistruktur. + +Ein Installationsprogramm richtet die folgenden Komponenten +ein: + + LaTeX2e, mit zusaetzlichen Paketen: graphics, tools, + german, babel u.a. + + Unterstuetzung fuer Postscript-Schriften in LaTeX, das + sog. psnfss-Paket fuer die 35 Standardschriften, sowie + Unterstuetzung fuer die Adobe-Euro-Fonts. + + Zusaetzliche Metafont- und PostScript-Schriften, einschl. + der PostScript-Versionen der CM-, AMS- und Euler-Fonts. + + plain TeX + + Silbentrennmuster fuer amerikanisches Englisch und viele + europaeische Sprachen -- vorinstalliert in LaTeX und + plain TeX. + + dvips 5.83 + + Previewer dvipm + + emTeX-dvi-Druckertreiber fuer Laserjet/Deskjet + + Metafont mit MFJob u. div. Tools (gftopk u.a.) + + Makeindex 2.12 + + Bibtex 0.99c mit den originalen Styles + +Als Oberflaeche wird das "EPM TeX Front End" empfohlen. +Das ist eine integrierte TeX-Umgebung, die auf dem +"Erweiterten Editor" (EPM) von OS/2 aufbaut. + + + +2) Voraussetzungen +================== +Auf dem Laufwerk, wo TeX installiert werden soll, muss das +HPFS-Dateisystem eingerichtet sein, denn emTeX/TDS nimmt +keine besondere Ruecksicht auf kurze Dateinamen. + +Als Previewer fuer PostScript-Dateien muss Ghostscript mit +dem grafischen Frontend GSView vorhanden sein -- siehe +n„chster Abschnitt. + +Das TeX-System benoetigt ca 30MB fuer die Dateien, die +installiert werden. Fuer die spaeter je nach Bedarf zu +erzeugenden Schriften sowie fuer spaetere Ergaenzungen muss +auf dem gleichen Laufwerk auch noch Platz sein; es sollten +mindestens weitere 30MB reserviert werden. Die aktuelle +Version von Ghostscript inkl. GSView benoetigt ca. 12MB. + +Zum Installieren werden temporaer etwa 14MB an +Plattenplatz belegt, der danach wieder freigegeben wird. + +Sowohl zur Installation von Ghostscript als auch zum +Installieren von emtex wird das Programm "unzip.exe" +benoetigt. Fuer den Fall, dass dieses Programm auf Ihrem +Rechner nicht installiert ist, wird es zusammen mit +emTeX/TDS verteilt; Kopieren Sie es in ein Verzeichnis fuer +ausfuehrbare Programme, z.B. \OS2 auf dem Bootlaufwerk. + +Sowohl emTeX/TDS als auch Ghostscript bauen auf die die +emx-Laufzeitumgebung, Version 0.9d, auf, Falls diese noch +nicht vorhanden ist, kann sie zusammen mit GSView +automatisch installiert werden. Falls nur eine aeltere +Version von emx vorhanden ist, muessen Sie ein manuelles +Update durchfuehren, bevor Sie emTeX oder Ghostscript +installieren. + +Neben den Dateien der emTeX/TDS-Verteilung werden auch +einige Dateien der "originalen" emTeX-Verteilung benoetigt. +Diese finden Sie im CTAN-Verzeichnis systems/msdos/emtex/. + + + +3) Ghostscript installieren +=========================== +Fuer die Installation benoetigen Sie die folgenden Dateien: + +<ftp://ftp.cs.wisc.edu/ghost/ghostgum/gsv36os2.zip> +<ftp://ftp.cs.wisc.edu/ghost/aladdin/gs650/gs650os2.zip> + +Die Dateien gsv36os2.zip und gs650.zip werden auch im CTAN +verteilt. Die Namen der Dateien und Verzeichnisse spiegeln +die Versionsnummer wieder und koennen sich in der +Zwischenzeit geaendert haben. + +Falls die emx-Laufzeitumgebung noch nicht vorhanden ist, +wird auch die Datei + +<ftp://ftp-os2.nmsu.edu/pub/os2/dev/emx/v0.9d/emxrt.zip> + +benoetigt. + +1. Entpacken Sie die Datei gsv36os2.zip in ein temporaeres + Verzeichnis. + +2. Versetzen Sie auch gs650os2.zip in dieses Verzeichnis + +3. Versetzen Sie auch emxrt.zip in dieses Verzeichnis, falls + die emx-Laufzeitumgebung noch installiert werden muss. + +4. Fuehren Sie das Installationsprogramm "os2setup.exe" im + o.g. temporaeren Verzeichnis aus. Bitte befolgen Sie + gegebenenfalls die Hinweise des Installationsprogramms + bzgl. der Einrichtung von emx! Das temporaere + Verzeichnis kann danach entfernt werden. + +5. Wenn GSview das erste Mal gestartet wird, dann mssen + noch einige Einstellungen interaktiv konfiguriert werden. + Danach ist GSView zu schlieáen; erst beim naechsten + Programmstart ist es funktionsfaehig. + +Sowohl bei der Installation als auch bei der Konfiguration +sollten Sie normalerweise alle Voreinstellungen bestaetigen; +lediglich das WPS-Objekt fuer GSView braucht nicht ein +zweites Mal angelegt zu werden. + + +4) emTeX/TDS installieren +========================= +Lesen sie diesen Abschnitt bitte auch dann vollstaendig +durch, wenn Sie lediglich ein existierendes emTeX/TDS +aktualisieren wollen; beachten Sie in diesem Fall UNBEDINGT +die Datei NEWS, die auf Aenderungen hinweist. + +1. Kopieren Sie die folgenden Dateien in ein gemeinsames + Verzeichnis (das Verzeichnis und sein Inhalt koennen nach + der Installation wieder geloescht werden): + + aus der vorliegenden emTeX/TDS-Verteilung: + + tdsinst.cmd (das Installationsprogramm) + config.zip + texmf.zip + + aus der originalen emTeX-Verteilung + (CTAN:systems/dos/emtex): + + bibtex4b.zip + dvid16h1.zip + dvid16h2.zip + makeindx.zip + mf4b.zip + mfjob12d.zip + mfware.zip + tex4b.zip + texware.zip + + Letzere Dateien werden NICHT ben”tigt, wenn nur ein + vorhandenes emTeX/TDS ab Version 0.53 aktualisiert werden + soll. + +2. Wechseln Sie in das o.g. Verzeichnis. Starten Sie hier + das Installationsprogramm "tdsinst". (tdsinst kann NICHT + von einem anderen Verzeichnis aus ausgefuehrt werden!) + Sie werden gefragt, in welchem Laufwerk TeX installiert + werden soll; TeX wird im angegebenen Laufwerk immer in + einem Verzeichnis \texmf und dessen Unterverzeichnissen + installiert. + + Falls bereits eine Version von emTeX/TDS < 0.55 + installiert ist, werden bestimmte Konfigurationsdateien + ueberschrieben, jedoch nur nach einer Anfrage: + + tex/latex/local/hyphen.cfg + tex/latex/local/graphics.cfg + tex/latex/local/color.cfg + tex/latex/local/ltxdoc.cfg + tex/latex/local/ltxguide.cfg + tex/plain/local/plain.cfg + emtex/data/vp.cnf + emtex/data/dvijet.cnf + + Wenn Sie Dateien aus dieser Liste individuell veraendert + haben, dann sollten Sie die neue Version zunaechst unter + einem anderen Namen anlegen lassen (auf entspr. Anfrage + "r" eingeben) und die Aenderungen abgleichen, bevor Sie + (La)TeX oder die DVI-Treiber benutzen. + + Das Installationsprogramm kann -- nach einer Anfrage -- + ein Programmobjekt fuer den dvi-Previewer "dvipm" auf dem + Desktop erzeugen. Wenn Sie emTeX/TDS zum ersten Mal + installieren, koennen Sie dieses Programm erst benutzen, + nachdem die folgenden Schritte 3 und 5 ausgefuehrt + wurden. Um dieses Programmobjekt als Default-Viewer fuer + alle Dateien des Typs "*.dvi" festzulegen, sind seine + Einstellungen noch entsprechend zu ergaenzen. + + Zum Betrieb von emTeX/TDS sind mehrere Umgebungsvariablen + zu setzen; der LIBPATH und die Pfade PATH und HELP + muessen ergaenzt werden. Das Installationsprogramm kann + die entsprechenden Aenderungen an der Systemkonfiguration + selbsttaetig durchfuehren; es fragt aber vorher, ob Sie + damit einverstanden sind. Sie koennen das Programm an + dieser Stelle auch beenden und die Aenderungen danach von + Hand vornehmen; im naechsten Abschnitt finden Sie die + noetigen Informationen. Die naechsten Schritte der + Installation koennen erst ausgefuehrt werden, nachdem + die Systemkonfiguration angepasst wurde! + + Falls das Installationsprogramm sich vorzeitig mit einer + Fehlermeldung beendet, die das Wort "Error" enthaelt, + dann kopieren Sie bitte die am Bildschirm angezeigten + Meldungen des Programms per Cut-and-paste in eine Datei + und senden mir diese Datei per Email. Weiter unten im + Anhang B (Support) finden ist die Adresse angegeben. + +3. Nach dem Ende des Installationsprogramms und dem Update + der Systemkonfiguration muessen Sie einen Systemabschluss + durchfuehren und OS/2 neu booten. + +4. Fuehren Sie in einem beliebigen Verzeichnis das Programm + "makelatex" aus, um das LaTeX-Format zu erzeugen. + +5. Fuehren Sie das Programm "makemf" aus, um die Basisdatei + fuer Metafont zu erzeugen. + +6. Fuehren Sie in einem beliebigen Verzeichnis das Programm + "makeplaintex" aus, um die Formatdatei fuer plain TeX zu + erzeugen. Falls Sie nicht verstehen, was "plain TeX" + ist, oder wenn Sie nur LaTeX benutzen wollen, koennen Sie + diesen Schritt auslassen. + + ** Fuehren Sie die Schritte 4, 5 (u.6) auch aus, wenn ** + ** Sie nur ein existierendes emTeX/TDS aktualisieren! ** + +7. Im Verzeichnis texmf\doc\emtextds finden Sie die + "Technische Beschreibung" (Datei manual.ger), DIE SIE NUN + UNBEDINGT LESEN SOLLTEN! In diesem Verzeichnis befindet + sie auch die im Folgenden erwaehnte Dateien eurofont.ger. + + *** Adobe Euro Fonts *** + +8. Die Datei eurofont.ger beschreibt, wo Adobes Euro-Fonts + ("Euro"-Symbole in PostScript-Format) erhaeltlich sind + und wie sie installiert werden koennen. Ihre Verwendung + wird durch ein LaTeX-Paket unterstuetzt, aber die + Schriften selbst werden aus rechtlichen Gruenden nicht im + CTAN verteilt. + + *** EPM TeX Front End *** + +9. Das "EPM TeX Front End" finden Sie im CTAN, Verzeichnis + systems/os2/epmtfe. Bitte, lesen Sie zunaechst die dort + enthaltene Datei README.epmtfe. Die emTeX/TDS-Verteilung + enthaelt eine passende Konfigurationsdatei tfe.cfg fr + das TeX Front End. + + *** VTeX/2 *** + +10. Wird emTeX/TDS 0.56 "ueber" VTeX/2 installiert, dann + wird LaTeX aktualisiert. Danach muss eine neue + Formatdatei fuer VTeX erzeugt werden! + + + +5) Umgebungsvariablen und LIBPATH +================================= +Sie brauchen diesen Abschnitt NICHT zu lesen, wenn das +Installationsprogramm die fuer TeX notwendigen Aenderungen +an der OS/2-Konfigurationsdatei config.sys selbstaendig +vorgenommen hat! + +Die folgenden Einstellungen werden fuer emTeX/TDS benoetigt: + +TMP + muss auf ein Verzeichnis zeigen, wo temporaere Dateien + angelegt werden koennen. + +EMTEXDIR=C:\TEXMF\EMTEX + Das Verzeichnis fuer emTeX und dvips. + +TEXMACROS=C:\TEXMF\TEX + Unter diesem Verzeichnis befinden sich alle TeX-Makros im + TDS-Baum. Diese Variable wird von den CMD-Skripten + latex.cmd und tex.cmd ausgewertet. + +TEXTFM=C:\TEXMF\FONTS\TFM!!;. + Entsprechend dem TDS-Standard muessen das Verzeichnis + \texmf\fonts\tfm und alle Unterverzeichnisse nach + Font-Metriken durchsucht werden. Zusaetzlich werden + Font-Metriken danach noch im aktuellen Verzeichnis (.) + gesucht. + +BFONTS=C:\TEXMF\FONTS\PK +VFONTS=C:\TEXMF\FONTS\VF!! + Entsprechend dem TDS-Standard werden Bitmap-Fonts und + virtuelle Fonts hier gesucht. Diese Umgebungsvariablen + werden von dvipm, dvihplj und dvips ausgewertet -- siehe + die entsprechenden Konfigurationsdateien. Zusaetzlich + wird danach noch das aktuelle Verzeichnis (.) nach + pk-Fonts durchsucht. + +TYPE1FONTS=C:\TEXMF\FONTS\TYPE1 + PostScript-Fonts fuer dvips befinden sich unterhalb + dieses Verzeichnisses. + +TEXCONFIG=.;C:\TEXMF\DVIPS!! + Der Suchpfad fuer die dvips-Konfigurationsdateien, also + config.ps, *.cfg und *.map . + +EMTEXSWCHAR=- + Die Optionen fuer die DVI-Treiber muessen mit einem + Minuszeichen anstatt eines Slash (/) eingeleitet werden. + So kann der Slash als, wie unter Un*x, als Trennzeichen + fuer Verzeichnisse benutzt werden. + +MFOPT=-mp50000 + Option fuer Metafont; noetig fuer bestimmte Anwendungen. + +MFJOBOPT=-3 -i + Veranlasst, dass MFJob die 32-Bit-Version von Metafont + aufruft (-3) und Fehler ignoriert (-i). + +MFINPUT=C:\TEXMF\FONTS\SOURCE!!;C:\TEXMF\METAFONT! + Hier werden lt. TDS-Spezifikation die Metafont-Quellen + gesucht. + +INDEXSTYLE=C:\TEXMF\MAKEINDEX + Verzeichnis fuer Makeindex-Styles. + +BSTINPUT=C:\TEXMF\BIBTEX\BST +BIBINPUT=C:\TEXMF\BIBTEX\BIB + Verzeichniss fuer BibTeX-Styles und -Datenbanken. + +PATH + C:\TEXMF\EMTEX\BIN muss Teil des Suchpfades fuer + ausfuehrbare Progremme (PATH) sein. Hier befinden sich + alle ausfuerhrbaren Programme von emTeX/TDS. + +LIBPATH + C:\TEXMF\EMTEX\DLL muss im LIBPATH stehen. + +HELP + C:\TEXMF\EMTEX\HELP muss im HELP-Pfad stehen. + +TMP kann individuell eingestellt werden. Alle anderen +Variablen muessen die hier angegebenen Einstellungen haben, +abgesehen natuerlich vom Laufwerksbuchstaben (hier als +Beispiel C:). Vorsicht: Die einzelnen Programme kennen +noch weitere Umgebungsvariablen! + + + +6) Dokumentation +================ +Die Dokumentation zu emTeX/TDS befindet sich im Verzeichnis +texmf\doc\emtextds. + +!!! LESEN SIE UNBEDINGT DIE "TECHNISCHE BESCHREIBUNG", !!! +!!! DATEI manual.ger !!! + +Online-Dokumentation zu LaTeX, dvips, BibTeX und Makeindex +befindet sich in den anderen Verzeichnissen unterhalb +texmf\doc. + +Dateien mit der Erweiterung ".dvi" koennen mit dem +dvi-Previewer geoeffnet werden, nachdem emTeX/TDS +installiert ist. + +Die Dokumentation zu den Programmen der emTeX-Verteilung +(TeX, Metafont, dvipm, dvihplj u.a.) befindet sich in den +Verzeichnissen texmf\emtex\doc (ASCII) und \texmf\emtex\book +(OS/2 .inf). Vorsicht: Diese Beschreibungen beziehen +teilweise auch auf Komponenten des originalen emTeX, die in +emTeX/TDS nicht verfuegbar oder nicht verwendbar sind! + +Beachten Sie auch die Datei help.ger aus der originalen +emTeX-Verteilung; im CTAN unter systems/msdos/emtex/. + + + +7) Druckerkonfiguration +======================= +Wegen der modularen Struktur von TeX muessen mehrere +Programme unabhaengig voneinander fuer den zu verwendenden +Drucker konfiguriert werden. + +7.1) Der dvi-Previewer dvipm +---------------------------- +dvipm soll normalerweise die gleichen Bitmap-Fonts wie der +Drucker benutzen. Das erspart die mehrfache Berechnung +unterschiedlicher Bitmap-Fonts, und es ermoeglicht, dass +dvi-Dateien aus dem Previewer heraus auf jedem von OS/2 +unterstuetzten Drucker ausgegeben werden koennen. + +dvipm ist zunaechst so eingestellt, dass Fonts fuer einen +HP-Laserjet 4, Laserjet 5L oder Deskjet mit einer Aufloesung +von 600dpi benutzt werden. Wird ein solcher oder ein +kompatibler Drucker benutzt, braucht nichts geaendert zu +werden. + +Um dvipm zu konfigurieren, muss die Datei vp.cnf im +Verzeichnis texmf\emtex\data editiert werden. Suchen Sie +nach den folgenden Zeilen: + +% Options for dvipm.exe, using "ljfour" mode: +% ++resolution=600 ++metafont-mode=ljfour + +Geben Sie hier die Aufloesung Ihres Druckers und den +passenden Metafont-Mode an. Typische Modes sind: + +mode Drucker +................................................. +deskjet Deskjet (300dpi) +cx Laserjet (300dpi) ausser den folgenden: +jetiiisi Laserjet IIIsi, Laserjet 4L (300dpi) +ljfour Laserjet 4, Laserjet 5L (600dpi) +ljfive Laserjet 5P (600dpi) +ljfivemp Laserjet 5MP (600dpi) +jfzzz LaserJet 4000N, ProRes mode (1200dpi) +ljfzzzfr LaserJet 4000 FastRes (600dpi) + +Solange Sie keine PostScript-Fonts oder -Bilder verwenden, +brauchen Sie keine anderen Programme zu konfigurieren. + + +7.2) dvips +---------- +Um PostScript-Schriften oder -Bilder in Ihren TeX-Dokumenten +zu verwenden, sollten Sie dvips passend fuer Ihren Drucker +konfigurieren. dvips ist zunaechst fuer einen Laserjet 4, +Laserjet 5L oder Deskjet mit 600dpi eingstellt. Wird ein +solcher oder ein kompatibler Drucker benutzt, braucht nichts +gaendert zu werden. + +Die fuer den Drucker spezifischen Angaben sind in die Dstei +dvips.ini einzutragen, die sich im Verzeichnis +texmf\dvips\local befindet. Wenn diese Datei und das +Verzeichnis noch nicht existieren, muessen sie neu angelegt +werden. Mindestens muessen Aufloesung und Metafont-Mode +spezifiziert werden; fuer einen Deskjet mit 300dpi muessen +die beiden folgenden Zeilen in dvips.ini stehen: + +D 300 +M deskjet + +D kennzeichnet die Aufloesung, M den Metafont-Mode; typische +Angaben siehe oben (dvipm). + +Weitere Informationen zur Konfiguration von dvips finden Sie +in seiner Beschreibung, Datei texmf\doc\dvips\dvips.dvi . + +Die fuer emTeX/TDS spezifischen Informationen ueber +Konfigurationsdateien, Voreinstellungen, Suchpfade usw. +finden Sie in der "Technischen Beschreibung". + + +7.3) Der dvi-Druckertreiber dvihplj +----------------------------------- +emTeX/TDS unterstuetzt auch das direkte Ausdrucken von +dvi-Dateien (ohne PostScript-Fonts oder -Bildern) auf einem +Laserjet, Deskjet oder kompatiblen Drucker. Dies ist +schneller und benoetigt weniger Speicher als das Drucken aus +dem Previewer dvipm heraus. Die Konfiguration des +Druckertreibers dvihplj ist allerdings nicht ganz trivial. + +Eine allgemeine Beschreibung von dvihplj finden Sie in der +Datei texmf\emtex\book\german\dvidrv.inf (OS/2 inf-Format). + +Die fuer emTeX/TDS spezifischen Informationen ueber +Konfigurationsdatei, Voreinstellungen, Suchpfade usw. von +dvihplj finden Sie in der "Technischen Beschreibung". + + +7.4) EPM-TeX-Frontend +--------------------- +Falls Sie das EPM-TeX-Frontend als TeX-Umgebung benutzen, +moechten Sie evtl. seiner Konfigurationsdatei tfe.cfg einen +Befehl fuer den Menepunkt "Drucken" passend zu Ihren Drucker +einstellen. + +Die mit emTeX/TDS verteilte Konfigurationsdatei enthaelt +beispielhafte Eintraege fuer dvihplj und fuer direkte +Ausgabe auf einen PostScript-Drucker, die zunaechst noch +auskommentiert sind. + +Falls Sie nur unter Verwendung der grafischen Oberflaeche +von dvipm oder GSview drucken wollen, dann lassen Sie den +Eintrag PRINT_CMD einfach leer; der Menuepunkt wird dann +nicht angezeigt. (Das gilt nur fuer texfe ab Version 2.4.) + + + +8) Ein Beispieldokument mit LaTeX bearbeiten +============================================ +Wenn Sie LaTeX erfolgreich installiert haben, sollten Sie +ein Beispieldokument mit LaTeX bearbeiten. Das sollte +zunaechst von der Kommandozeile aus erfolgen, um die +Funktionsfaehigkeit des "nackten" TeX-Systems zu pruefen, +also ohne eine evtl. installierte Benutzeroberflaeche: + +1. Oeffnen Sie eine Kommandozeile in einem beliebigen + Verzeichnis ausserhalb des texmf-Dateibaums. + +2. Kopieren Sie die Datei + C:\texmf\tex\latex\base\small2e.tex in dieses + Verzeichnis. (Ersetzen Sie C: durch das Laufwerk, wo + das TeX-System tatsaechlich installiert wurde.) + +3. Formatieren Sie die Datei mit LaTeX, indem Sie das + folgende Kommando angeben: + + latex small2e + +4. Starten Sie den Previewer: + + vp small2e + + Wenn die im Dokument small2e benutzten Schriften noch + nicht existieren, wird dvipm anbieten, sie mittels MFJob + berechnen zu lassen; klicken Sie auf "Ja". Wenn MFJob + fertig ist, fragt dvipm, ob die Datei erneut angezeigt + werden soll (d.h., mit den nun berechneten Schriften); + klicken Sie wieder auf "Ja". + + + + + +************************************************************ +* * +* Anhang * +* * +************************************************************ + + +A) emTeX/TDS entfernen +====================== +Die Verteilung enthaelt ein REXX-Skript tdskill.cmd, mit dem +ein installiertes emTeX-System komplett entfernt werden +kann. Es muss in einem Verzeichnis ausserhalb des zu +loeschenden texmf-Dateibaums ausgefuehrt werden. Es loescht +die Dateien des TeX-Systems und entfernt alle +diesbezueglichen Eintraege aus der Systemkonfigurationsdatei +config.sys. Das Skript kann auch ein unvollstaendiges oder +beschaedigtes TeX-System entfernen. + +Wenn nach der Ausfuehrung von "tdskill" einzelne Dateien +oder Verzeichnisse unter \texmf zurueckbleiben, so kann man +diese nach dem naechsten Systemstart loeschen. + + + +B) Support +========== +Die neueste Version von emTeX/TDS, Fehlerberichtigungen und +zusaetzliche Informationen finden Sie auf dem Server +<ftp://ftp.dante.de> oder jedem anderen CTAN-Host im +Verzeichnis: + + /tex-archive/systems/os2/emtex-contrib/emtexTDS + +Mit Fragen, Fehlermeldungen oder Verbesserungsvorschlaegen +zu emTeX/TDS wenden Sie sich bitte an: + + Walter Schmidt + <was@VR-Web.de> + +Bitte richten Sie Fragen bzgl. einzelner Programme oder +Makropakete an die Autoren der betreffenden Software. + +Es gibt eine Mailing-Liste fuer emTeX: EMTEX-USER. Um +Informationen ueber das Anmelden und Abmelden zu erhalten, +schicken Sie eine Mitteilung mit dem Inhalt + + HELP + INFO EMTEX-USER + +an majordomo@physik.tu-berlin.de. + + + +C) Rechtliches +============== +Die Dateien von emTeX/TDS: + +readme.eng +readme.ger +NEWS +tdsinst.cmd +tdskill.cmd +texmf.zip +config.zip +tfe.cfg +unzip.exe + +Diese Sammlung von Dateien darf nur unveraendert und +vollstaendig weitergegeben werden. Weder fuer ihre +Verteilung noch fuer die Benutzung darf eine Bezahlung +verlangt werden, abgesehen von einer Schutzgebuehr fuer den +Datentraeger, den Kopiervorgang usw. + +Es wird keine Garantie fuer das Funktionieren der in dieser +Sammlung enthaltenen Software uebernommen. Es wird keine +Haftung uebernommen fuer Schaeden, die aus der Anwendung +dieser Programme resultieren. + +NOTE: emTeX/TDS is packaged using Info-ZIP's compression +utility. The installation program makes use of Info-ZIP's +UnZip program, the version 5.40 of which is provided in +conjunction with emTeX/TDS. Info-ZIP's software (Zip, UnZip +and related utilities) is free and can be obtained as source +code or executables from various internet sites, including +<ftp://ftp.dante.de/tex-archive/tools/zip/info-zip/>. + +NOTE: The orginal sources of the "dvips" program and the +patches to be applied for the PC version can be obtained +from any CTAN site, e.g. <ftp://ftp.dante.de/tex-archive/>; +they are located in the directories: + + dviware/dvips/dvips583.tar.gz +and + systems/os2/dviware/dvips/dvips583.zip + + +-- finis + diff --git a/obsolete/systems/os2/emtex-contrib/emtexTDS/tdsinst.cmd b/obsolete/systems/os2/emtex-contrib/emtexTDS/tdsinst.cmd new file mode 100644 index 0000000000..29f49f928e --- /dev/null +++ b/obsolete/systems/os2/emtex-contrib/emtexTDS/tdsinst.cmd @@ -0,0 +1,932 @@ +/* REXX */
+/*
+ tdsinst.cmd
+
+ Copyright (C) 1998--2001 Walter Schmidt, Erlangen
+
+ emtex/TDS installation program
+
+ to be run
+ from a local directory, which must contain all required files
+
+*/
+
+
+
+/*
+ Initialization:
+*/
+INTRO = "Installation script for emTeX/TDS v0.56 as of 2001-09-30"
+VERSION = 0.56
+REQEMXREV = 60
+REQEMXVER = "0.9d"
+
+bootdrv = querybootdrv()
+wrkdir = strip(directory(), "T", "\")
+
+ret = RxFuncAdd("SysLoadFuncs", "REXXUTIL", "SysLoadFuncs")
+call SysLoadFuncs
+
+SIGNAL on error
+
+/* Load text strings for SysFileDel and SysRmDir return codes. */
+CALL LoadDELRCText /* provides text strings for SysFileDel return codes */
+CALL LoadRDRCText /* provides text strings for SysRmDir return codes */
+
+say
+say INTRO
+say
+say "On which drive do you want emTeX/TDS to be installed or updated?"
+say "(hit <return> only to select the boot drive)"
+answer = linein()
+texdrive = translate(substr(answer,1,1)) || ":"
+if texdrive = ":" then texdrive = bootdrv
+
+ver = SysIni(texdrive"\texmf\emtex\data\EMTEXTDS.INI", "EMTEXTDS", "VERSION")
+if ver = "ERROR:" then
+ ver = 0
+else do
+ say
+ say "emTeX/TDS version " || ver || " detected."
+ say
+end
+
+/* full install or update only?
+
+ ver = 0 : first install, no cleanup required
+ ver = 0.1 : force full install, despite higher version #
+ ver < 0.53 : full install
+ ver >= 0.53 : update only
+*/
+
+/* skip this step if full install is required, anyway */
+if ver < 0.53 then signal checkfiles
+
+say "By default, your emTeX/TDS system will be updated only."
+say "However, you may also force a full reinstall."
+say
+say "Do you request a full reinstall? (y/n)"
+answer = translate(substr(linein(),1,1))
+if answer = "Y" then ver = 0.1
+
+
+/* Determine the required files */
+checkfiles:
+
+if ver >= 0.55 then
+ reqfile.0 = 1
+else
+if ver >= 0.53 then
+ reqfile.0 = 2
+else
+ reqfile.0 = 11
+
+/* search for the files in the current directory */
+reqfile.1 = "texmf.zip"
+reqfile.2 = "config.zip"
+reqfile.3 = "bibtex4b.zip"
+reqfile.4 = "dvid16h1.zip"
+reqfile.5 = "mf4b.zip"
+reqfile.6 = "mfjob12d.zip"
+reqfile.7 = "mfware.zip"
+reqfile.8 = "tex4b.zip"
+reqfile.9 = "texware.zip"
+reqfile.10= "makeindx.zip"
+reqfile.11 = "dvid16h2.zip"
+if CheckRequiredFiles("V") then do
+ do i = 1 to reqfile.0
+ reqfile.i = wrkdir|| "\" || reqfile.i
+ end
+end
+else signal fileerr
+
+/* Last exit */
+say
+say "emTeX/TDS on drive " || texdrive || " will be installed/updated."
+say "Continue? (y/n)"
+answer = translate(substr(linein(),1,1))
+if answer <> "Y" then signal cancel
+
+
+
+/*
+ Step 0
+ ------
+ go to the target drive and create the texmf root directory
+*/
+
+call setlocal
+call directory(texdrive||"\")
+call sysmkdir("texmf")
+call directory("\texmf")
+
+
+/*
+ Step 1
+ ------
+ Check for unzip.exe
+*/
+if SysSearchPath("PATH", "unzip.exe") = "" then signal unziperr
+
+
+/*
+ Step 2
+ ------
+ Removing obsolete files created by previous versions
+*/
+
+/* skip this step, if this is the first install */
+if ver = 0 then signal euro
+
+say "Removing possibly obsolete files ..."
+
+call SysFileDelete("emtex\bmfbases\makemf.cmd")
+call SysFileDelete("doc\generic\german\gerdoc98.dvi")
+call SysFileDelete("emtex\doc\bibtex.doc")
+call SysFileDelete("emtex\doc\makeindx.doc")
+call SysFileDelete("emtex\doc\makeindx.cpy")
+call SysFileDelete("doc\emtexTDS\install.ger")
+call SysFileDelete("doc\emtexTDS\install.eng")
+call SysFileDelete("doc\latex\eurosans\readme")
+call SysFileDelete("doc\latex\graphics\grfguide.ps")
+
+call SysFileDelete("tex\latex\local\local.ins")
+
+call SysFileDelete("tex\latex\amsmath\amstext.sty.org")
+
+call SysFileDelete("doc\generic\german\gerdoc.tex")
+call SysFileDelete("fonts\source\public\logo\manfnt.mf")
+call SysFileDelete("fonts\tfm\public\logo\manfnt.tfm")
+call SysFileDelete("source\generic\babel\lcydefs.tex")
+call SysFileDelete("dvips\micropress\cmfonts.map")
+/* files have been moved to other directory */
+
+call SysFileDelete("emtex\bin\bibtex.exe")
+call SysFileDelete("emtex\bin\makeindex.exe")
+call SysFileDelete("emtex\bin\dvihplj.exe")
+/* will be replaced later */
+
+
+call ddt("tex\latex\base")
+
+/*
+call ddt("tex\latex\tools")
+call ddt("tex\latex\graphics")
+call ddt("tex\latex\cyrillic")
+*/
+
+call ddt("source\latex\babel")
+call ddt("tex\latex\babel")
+call ddt("doc\latex\babel")
+
+call ddt("dvips\base")
+
+call ddt("fonts\type1\ams")
+call ddt("fonts\type1\public\cm")
+call ddt("fonts\type1\public\logo")
+call ddt("fonts\type1\public\misc")
+call ddt("fonts\type1\public\rsfs")
+call ddt("fonts\type1\public\wasy")
+
+call ddt("fonts\source\public\logo")
+
+call ddt("tex\latex\psnfss\pag")
+call ddt("tex\latex\psnfss\pbk")
+call ddt("tex\latex\psnfss\pcr")
+call ddt("tex\latex\psnfss\phv")
+call ddt("tex\latex\psnfss\pnc")
+call ddt("tex\latex\psnfss\ppl")
+call ddt("tex\latex\psnfss\psy")
+call ddt("tex\latex\psnfss\ptm")
+call ddt("tex\latex\psnfss\pzc")
+call ddt("tex\latex\psnfss\pzd")
+
+call ddt("source\latex\psnfss")
+call ddt("doc\latex\psnfss")
+call ddt("source\latex\mathpple")
+call ddt("tex\latex\mathpple")
+call ddt("doc\latex\mathpple")
+call ddt("fonts\tfm\public\logo")
+call ddt("dvips\bluesky")
+call ddt("tex\latex\amslatex")
+call ddt("doc\latex\amslatex")
+
+call SysFileDelete("doc\emtextds\gsinstal.eng")
+call SysFileDelete("doc\emtextds\gsinstal.ger")
+call SysFileDelete("metafont\base\plain.mf.sav")
+
+/*
+call ddt("tex\latex\koma.script")
+call ddt("doc\latex\koma-script")
+call ddt("source\latex\koma-script")
+*/
+
+call SysFileDelete("tex\latex\amsmath\amsdtx.cls")
+
+/* obsolete files, which are possibly not overwritten later */
+
+say " done."
+
+
+/* Step 2a
+ -------
+ Rename Adobe Euro Fonts, if present
+*/
+euro:
+
+/* skip this step, if v=0 or v>=0.53 found */
+
+if (ver = 0) | (ver >= 0.53) then signal emtex
+
+old.1 = "\texmf\fonts\type1\adobe\eurofont\_1______.pfb"
+old.2 = "\texmf\fonts\type1\adobe\eurofont\_1B_____.pfb"
+old.3 = "\texmf\fonts\type1\adobe\eurofont\_1I_____.pfb"
+old.4 = "\texmf\fonts\type1\adobe\eurofont\_1BI____.pfb"
+old.5 = "\texmf\fonts\type1\adobe\eurofont\_2______.pfb"
+old.6 = "\texmf\fonts\type1\adobe\eurofont\_2B_____.pfb"
+old.7 = "\texmf\fonts\type1\adobe\eurofont\_2I_____.pfb"
+old.8 = "\texmf\fonts\type1\adobe\eurofont\_2BI____.pfb"
+old.9 = "\texmf\fonts\type1\adobe\eurofont\_3______.pfb"
+old.10 = "\texmf\fonts\type1\adobe\eurofont\_3B_____.pfb"
+old.11 = "\texmf\fonts\type1\adobe\eurofont\_3I_____.pfb"
+old.12 = "\texmf\fonts\type1\adobe\eurofont\_3BI____.pfb"
+
+new.1 = "zpeurs.pfb"
+new.2 = "zpeubs.pfb"
+new.3 = "zpeuris.pfb"
+new.4 = "zpeubis.pfb"
+new.5 = "zpeurt.pfb"
+new.6 = "zpeubt.pfb"
+new.7 = "zpeurit.pfb"
+new.8 = "zpeubit.pfb"
+new.9 = "zpeur.pfb"
+new.10 = "zpeub.pfb"
+new.11 = "zpeuri.pfb"
+new.12 = "zpeubi.pfb"
+
+do i = 1 to 12
+ if stream(old.i, "C", "QUERY EXISTS") <> "" & ,
+ stream("\texmf\fonts\type1\adobe\eurofont\"||new.i, "C", "QUERY EXISTS") = "" then do
+ "ren " old.i new.i
+ end
+end
+
+
+/*
+ Step 3
+ ------
+ Install the required parts of the original emTeX distribution.
+*/
+emtex:
+
+/* skip this step, if ver>=0.53 found */
+if ver >= 0.53 then signal tds
+
+/* Overwrite existing files */
+ret=value("UNZIP", "-qqo", "OS2ENVIRONMENT")
+
+say "Installing emTeX ..."
+
+call SysMkDir("\texmf\doc")
+call SysMkDir("\texmf\doc\bibtex")
+
+/* reqfile.3 => bibtex4b. */
+"unzip -j "||reqfile.3 || " emtex/doc/bibtex.doc -d \texmf\doc\bibtex"
+"unzip -j "||reqfile.3 || " emtex/texinput/bibtex/* -d \texmf\doc\bibtex"
+"unzip "||reqfile.3 || " emtex/bin/bibtex32.exe"
+"ren emtex\bin\bibtex32.exe bibtex.exe"
+
+/* reqfile.4 => dvid16h1 */
+"unzip "||reqfile.4|| " emtex/doc/adjust.dvi"
+"unzip "||reqfile.4|| " emtex/book/german/dvidrv.inf"
+"unzip "||reqfile.4|| " emtex/book/english/dvidrv.inf"
+"unzip "||reqfile.4|| " emtex/data/dvidrv.err"
+/* "unzip "||reqfile.4|| " emtex/bin/dvihplj.exe" */
+"unzip "||reqfile.4|| " emtex/bin/dvipm.exe"
+"unzip "||reqfile.4|| " emtex/bin/dvipm.ico"
+"unzip "||reqfile.4|| " emtex/dll/dvipmres.dll"
+"unzip "||reqfile.4|| " emtex/dll/emdll1x.dll"
+"unzip "||reqfile.4|| " emtex/dll/emdll1x2.dll"
+"unzip "||reqfile.4|| " emtex/dll/emdll2x.dll"
+"unzip "||reqfile.4|| " emtex/help/dvipmeng.hlp"
+"unzip "||reqfile.4|| " emtex/help/dvipmger.hlp"
+"unzip "||reqfile.4|| " emtex/data/2a5_a4.cnf"
+
+/* reqfile.5 => mf4b */
+"unzip "||reqfile.5||" emtex/book/german/metafont.inf"
+"unzip "||reqfile.5||" emtex/book/english/metafont.inf"
+"unzip "||reqfile.5||" emtex/bin/mf386.exe"
+"unzip "||reqfile.5||" emtex/bin/mfpm386.ovl"
+"unzip "||reqfile.5||" emtex/bin/gftopk.exe"
+"unzip "||reqfile.5||" emtex/bmfbases/mf.poo"
+"unzip "||reqfile.5||" emtex/help/mfpmeng.hlp"
+"unzip "||reqfile.5||" emtex/help/mfpmger.hlp"
+
+/* reqfile.6 => mfjob12d */
+"unzip "||reqfile.6||" emtex/book/german/mfjob.inf"
+"unzip "||reqfile.6||" emtex/book/english/mfjob.inf"
+"unzip "||reqfile.6||" emtex/bin/mfjob.exe"
+"unzip "||reqfile.6||" emtex/bin/mfjob.ovl"
+
+/* reqfile.7 => mfware */
+"unzip "||reqfile.7||" emtex/bin/gftodvi.exe"
+"unzip "||reqfile.7||" emtex/bin/mft.exe"
+"unzip "||reqfile.7||" emtex/doc/german/mfware.doc"
+"unzip "||reqfile.7||" emtex/doc/english/mfware.doc"
+
+/* reqfile.8 => tex4b */
+"unzip "||reqfile.8||" emtex/bin/htex386.exe"
+"unzip "||reqfile.8||" emtex/htexfmts/tex.poo"
+"unzip "||reqfile.8||" emtex/book/german/tex.inf"
+"unzip "||reqfile.8||" emtex/book/english/tex.inf"
+
+/* reqfile.9 => texware */
+"unzip "||reqfile.9||" emtex/doc/german/texware.doc"
+"unzip "||reqfile.9||" emtex/doc/english/texware.doc"
+"unzip "||reqfile.9||" emtex/bin/pltotf.exe"
+"unzip "||reqfile.9||" emtex/bin/tftopl.exe"
+"unzip "||reqfile.9||" emtex/bin/vftovp.exe"
+/* "unzip "||reqfile.9||" emtex/bin/vptovf.exe" */
+
+/* reqfile.10 => makeindx */
+"unzip "||reqfile.10||" emtex/bin/mkidx32.exe"
+"ren emtex\bin\mkidx32.exe makeindex.exe"
+
+/* reqfile.11 => dvid16h2 */
+"unzip "||reqfile.11||" emtex/bin/dvihplj3.exe"
+"ren emtex\bin\dvihplj3.exe dvihplj.exe"
+
+call SysMkDir("\texmf\bibtex")
+call SysMkDir("\texmf\bibtex\bib")
+call SysMkDir("\texmf\bibtex\bst")
+
+"unzip -j "||reqfile.3||" emtex\bibtex\bib\* -d \texmf\bibtex\bib"
+"unzip -j "||reqfile.3||" emtex\bibtex\bst\* -d \texmf\bibtex\bst"
+
+say " done."
+
+
+/*
+ Step 4
+ ------
+ Installing
+ - the non-emTeX parts of the TDS tree and
+ customized cmd scripts for emtex,
+ - the configuration files,
+*/
+tds:
+
+say "Installing the texmf tree ..."
+/* Overwrite existing files */
+ret=value("UNZIP", "-qqo", "OS2ENVIRONMENT")
+/* reqfile.1 => texmf */
+"unzip "||reqfile.1
+
+if reqfile.0 >= 2 then do
+ /* here we have to ask before owerwriting configuration files: */
+ ret=value("UNZIP", "-qq", "OS2ENVIRONMENT")
+ /* reqfile.2 => config */
+ "unzip "||reqfile.2
+end
+
+say " done."
+
+/* The configuration file docstrip.cfg is special, */
+/* because its contents must reflect the drive letter */
+/* where TeX is installed. */
+/* This file is generated unless it's already present.*/
+filename = texdrive || "\texmf\tex\latex\local\docstrip.cfg"
+if stream(filename, "C", "QUERY EXISTS") = "" then do
+ say "Creating the file docstrip.cfg ..."
+ call lineout filename, "%% file docstrip.cfg, generated by tdsinst.cmd"
+ call lineout filename, "%% do not edit this file!"
+ call lineout filename, "\BaseDirectory{"||texdrive||"/texmf}"
+ call lineout filename, "\UseTDS"
+ call stream filename, "C", "CLOSE"
+ say " done."
+end
+
+
+/*
+ Step 5
+ ------
+ Creating a program object for dvipm
+*/
+/* skip this step, unless full install is required */
+if ver > 0.1 then signal writever
+
+say
+say "Do you want an object for dvipm to be created on the desktop? (y/n)"
+answer = translate(substr(linein(),1,1))
+if answer = "Y" then do
+ say "Creating an object for the dvi viewer ..."
+ res = make_po('dvipm', 'PM', texdrive||'\texmf\emtex\bin\dvipm.exe', '@vp.cnf %*', '')
+ if res = 1 then say " done."
+ else say " failed."
+end
+
+
+/*
+ Step 5a
+ --------
+ Writing the version number
+*/
+writever:
+call SysIni "\texmf\emtex\data\EMTEXTDS.INI", "EMTEXTDS", "VERSION", VERSION
+say
+say "Version number" VERSION "written."
+say
+say "All files of the emTeX/TDS system have been successfully installed."
+"pause"
+
+
+/*
+ Step 6
+ ------
+ Checking emx
+*/
+say
+say "I am going to check the EMX library now."
+say
+emxpaths = 0
+currentrev = emxrevision()
+say "emx rev. =" currentrev
+if (currentrev = 0) then do
+ call beep 440,250
+ say
+ say "I cannot find the emx runtime environment."
+ say "Install the latest version of emx before using TeX!"
+ "pause"
+end
+if (currentrev > 0) & (currentrev < REQEMXREV)then do
+ call beep 440,250
+ say
+ say "The emx runtime environment found is not up to date."
+ say "Install the latest version of emx before using TeX!"
+ "pause"
+end
+else say "Ok."
+
+
+/*
+ Step 7
+ ------
+ Updating config.sys
+*/
+
+/* skip this step if ver > 0.5 found */
+if ver > 0.5 then signal done
+
+configfile = bootdrv||"\config.sys"
+if stream(configfile,"C","QUERY EXISTS") = "" then signal nobootdrv
+
+call readconfig configfile
+
+if checkvar("TMP") = "" then do
+ tmpname = bootdrv||"\tmp"
+ call SysMkDir tmpname
+ call addvar "TMP", tmpname
+ say
+ say "Temporary files will be created in the directory" tmpname "."
+ say
+end /* do */
+
+call addvar "EMTEXDIR", texdrive||"\TEXMF\EMTEX"
+call addvar "TEXMACROS", texdrive||"\TEXMF\TEX"
+call addvar "TEXTFM", texdrive||"\TEXMF\FONTS\TFM!!;."
+call addvar "BFONTS", texdrive||"\TEXMF\FONTS\PK"
+call addvar "TYPE1FONTS", texdrive||"\TEXMF\FONTS\TYPE1"
+call addvar "TEXCONFIG", texdrive||"\TEXMF\DVIPS!!"
+call addvar "VFONTS", texdrive||"\TEXMF\FONTS\VF!!"
+call addvar "EMTEXSWCHAR", "-"
+call addvar "MFOPT", "-mp50000"
+call addvar "MFJOBOPT", "-3 -i"
+call addvar "MFINPUT", texdrive||"\TEXMF\FONTS\SOURCE!!;"||texdrive"\TEXMF\METAFONT!"
+call addvar "INDEXSTYLE", texdrive||"\TEXMF\MAKEINDEX"
+call addvar "BSTINPUT", texdrive||"\TEXMF\BIBTEX\BST"
+call addvar "BIBINPUT", texdrive||"\TEXMF\BIBTEX\BIB"
+if pathedit("PATH", texdrive||"\texmf\emtex\bin;") = 0 then signal updfailed
+if pathedit( "HELP", texdrive||"\texmf\emtex\help;") = 0 then signal updfailed
+if libpathedit(texdrive||"\texmf\emtex\dll;") = 0 then signal updfailed
+
+say
+say "The installation program is going to update the file config.sys now."
+say "If you prefer to do this manually, then enter `n' below,"
+say "otherwise enter `y' to continue."
+say "Continue? (y/n)"
+answer = translate(substr(linein(),1,1))
+if answer <> "Y" then signal done
+
+tempfile=SysTempFileName(bootdrv||"\config??.sys")
+if tempfile="" then signal updfailed
+
+signal on error name updfailed
+savedfile = filespec("N", tempfile)
+"ren" configfile savedfile
+say
+say "The file" configfile "has been renamed to" savedfile "."
+res = writeconfig(configfile)
+if res=0 then do
+ call beep 440,250
+ say "Writing a new file" configfile "failed".
+ say "Rename" savedfile "to config.sys and apply the changes manually."
+ end
+else do
+ say
+ say "A new file" configfile "has been written."
+ say "Shutdown and reboot OS/2 now to make the changes come into effect."
+end
+
+
+/*
+ exiting
+*/
+done:
+say
+say "Finis!"
+exit
+
+
+/*
+ Error handling:
+*/
+nobootdrv:
+say
+say "The installation program could not locate the file config.sys"
+say "and was unable to determine whether it needs to be updated."
+say "Please, see the installation instructions for the changes required"
+say "and how to apply them manually."
+exit
+
+updfailed:
+say
+say "Updating config.sys failed."
+say "The file config.sys has *** not *** been changed."
+say "Please, read the installation instructions"
+say "and apply any changes manually."
+exit
+
+error:
+call beep 440,250
+say
+say 'Error: "'condition('D')'"' 'failed.'
+exit
+
+fileerr:
+call beep 440,250
+say
+say "One or more of the files required to"
+say "install or update emTeX/TDS were not found."
+exit
+
+unziperr:
+call beep 440,250
+say
+say 'The required program "unzip.exe" could not be found.'
+exit
+
+cancel:
+say "You have terminated the installation program."
+exit
+
+
+/*
+ Procedures used above:
+*/
+
+
+/*
+make_folder: procedure
+ location = '<EMTEXTDS_FOLDER>'
+ if \SysCreateObject('WPFolder', 'emTeX/TDS', '<WP_DESKTOP>', ,
+ 'OBJECTID='||location, 'update') then do
+ say 'Cannot create emTeX/TDS folder.'
+ exit 1
+ end
+ return
+*/
+
+make_po: procedure
+ parse arg title, progtype, exename, parameters, workdir
+
+ options = 'PROGTYPE='||progtype||';' ||,
+ 'EXENAME='||exename||';'
+
+ if parameters <> '' then
+ options = options || 'PARAMETERS='||parameters||';'
+
+ if workdir <> '' then
+ options = options || 'STARTUPDIR='||workdir||';'
+
+ if \SysCreateObject('WPProgram', title, '<WP_DESKTOP>', options, 'Update') then do
+ say 'Cannot create program object.'
+ return 0
+ end
+ else
+ return 1
+
+
+/*
+ query boot drive
+ usage: querybootdrv()
+ returns: letter of boot drive incl. colon
+*/
+querybootdrv: PROCEDURE
+bootdr = value('COMSPEC', , 'OS2ENVIRONMENT')
+bootdr = filespec('D', bootdr)
+if bootdr = "" then do
+ say "Please, tell me the drive letter of the boot drive:"
+ answer = linein()
+ bootdr = substr(strip(answer),1,1)||":"
+end
+return bootdr
+
+
+/*
+ Do all required files exist?
+ usage: CheckRequiredFiles() or CheckRequiredFiles("V")
+ returns: 1 if all files found, 0 otherwise
+*/
+CheckRequiredFiles: PROCEDURE expose reqfile.
+parse arg verbose
+/* empty line, to make further messages more visible: */
+if verbose = "V" then say
+res = 1
+do i = 1 to reqfile.0
+ if stream(reqfile.i, "C", "QUERY EXISTS") = "" then do
+ res = 0
+ if verbose = "V" then say "missing file:" reqfile.i
+ end
+end
+return res
+
+
+/*
+ read config file
+ usage: call readconfig filename
+ returns: (nothing)
+*/
+readconfig: PROCEDURE expose config. cmax
+parse arg infile
+cmax=0
+do while lines(infile) > 0
+ cmax=cmax+1
+ config.cmax=linein(infile)
+end /* do */
+call stream infile, "C", "CLOSE"
+return
+
+
+/*
+ write config file
+ usage: call writeconfig filename
+ returns: 1 if successful
+ 0 if writing the file failed
+*/
+writeconfig: PROCEDURE expose config. cmax
+parse arg outfile
+call SysFileDelete outfile
+do i = 1 TO cmax
+ if config.i <> "deleted" then do
+ res = lineout(outfile, config.i)
+ end
+end /* do */
+call stream outfile, "C", "CLOSE"
+if res <> 0 then return 0
+else return 1
+
+
+/*
+ search for a given environment variable
+ usage: checkvar(name)
+ returns: setting
+ "" if undefined or defined as empty
+*/
+checkvar: PROCEDURE expose config. cmax
+parse upper arg name
+i=0
+name=strip(name)
+trigger=" "||name||"="
+do forever
+ i=i+1
+ if i>cmax then leave
+ parse upper value config.i with junk (trigger) setting
+ if (setting <> "") & (junk="SET") then leave
+end /* do */
+if i>cmax then return ""
+else return setting
+
+
+/*
+ add environment variable, overwrites current setting
+ usage: call addvar name, value
+ returns: (nothing)
+*/
+addvar: PROCEDURE expose config. cmax
+parse arg name, value
+name = strip(translate(name))
+trigger=" "||name||"="
+i=0
+do forever
+ i=i+1
+ if i>cmax then leave
+ parse upper value config.i with junk (trigger) setting
+ if (setting <> "") & (junk = "SET") then leave
+end /* do */
+config.i = "SET " || name || "=" || value
+if i>cmax then cmax=i
+return
+
+
+
+/*
+ delete environment variable
+ usage: delvar(name)
+ returns: 1 if successful
+ 0 if variable not found
+*/
+delvar: PROCEDURE expose config. cmax
+parse arg name
+name=strip(translate(name))
+trigger=" "||name||"="
+i=0
+do forever
+ i=i+1
+ if i>cmax then leave
+ parse upper value config.i with junk (trigger) setting
+ if (setting <> "") & (junk="SET") then leave
+end /* do */
+if i>cmax then return 0
+else do
+ config.i = "deleted"
+ return 1
+end /* do */
+
+
+/*
+ edit a path
+ usage: pathedit(path, entry, op)
+ op = "D" means "delete this entry"
+ op = "A" (default) means "add entry"
+ returns 1 if successful
+ 0 if path or entry to be deleted not found
+ 2 if entry to be added was already present
+*/
+pathedit: PROCEDURE expose config. cmax
+parse upper arg path, directory, op
+i=0
+path=strip(path)
+trigger = " "||path||"="
+do forever
+ i=i+1
+ if i>cmax then leave
+ parse upper value config.i with junk (trigger) setting
+ if (setting <> "") & (junk="SET") then leave
+end /* do */
+if i>cmax then return 0
+setting=strip(setting,"T")
+if substr(directory,length(directory),1) <> ";" then directory = directory || ";"
+if substr(setting,length(setting),1) <> ";" then setting = setting || ";"
+if op="D" then do
+ posi = pos(directory,setting)
+ if posi<>0 then config.i= "SET " || path || "=" || delstr(setting, posi, length(directory))
+ else return 0
+end /* do */
+else do
+ if pos(directory,setting)<>0 then return 2
+ else do
+ setting=setting || directory
+ config.i = "SET " || path || "=" || setting
+ end /* do */
+end /* do */
+return 1
+
+
+/*
+ edit LIBPATH
+ usage: libpathedit(entry, op)
+ op = "D" means "delete this entry, if existing"
+ op = "A" (default) means "add entry"
+ returns: 1 if successful
+ 0 if LIBPATH or entry to be deleted not found
+ 2 if entry to be added was already present
+*/
+libpathedit: PROCEDURE expose config. cmax
+parse upper arg directory, op
+i=0
+do forever
+ i=i+1
+ if i>cmax then leave
+ parse upper value config.i with junk "LIBPATH" setting
+ if (setting <> "") & (junk = "") then leave
+end /* do */
+if i>cmax then return 0
+setting=strip(setting,"T")
+if substr(directory,length(directory),1) <> ";" then directory = directory || ";"
+if substr(setting,length(setting),1) <> ";" then setting = setting || ";"
+if op="D" then do
+ posi = pos(directory,setting)
+ if posi<>0 then config.i= "LIBPATH" || delstr(setting, posi, length(directory))
+ else return 0
+end /* do */
+else do
+ if pos(directory,setting)<>0 then return 2
+ else do
+ setting=setting || directory
+ config.i = "LIBPATH" || setting
+ end /* do */
+end /* do */
+return 1
+
+
+emxrevision: procedure
+ call RxFuncAdd emx_revision, "emx", emx_revision
+ signal on syntax name noemx
+ tmp = emx_revision()
+ signal off syntax
+ call RxFuncDrop emx_revision
+ return tmp
+noemx: return 0
+
+
+/*
+ Procedures for deleting a directory tree
+*/
+
+
+DDT:
+ parse arg user_dir
+ /* Check to make sure the directory exists */
+ rc=SysFileTree(user_dir,dir_list, 'D')
+ IF dir_list.0 = 0 THEN
+ DO
+ SAY user_dir 'not found.'
+ RETURN
+ END
+
+ DROP dir_list.
+
+ /* Mark all the read-only files to be non read-only */
+ rc=SysFileTree(user_dir || '\*.*', dir_list, 'FSO', '****','----')
+
+ DROP dir_list.
+
+ /* Go through the list of files and delete each one */
+ rc=SysFileTree(user_dir || '\*.*', dir_list, 'FSO')
+ DO x = 1 TO dir_list.0
+ rc = SysFileDelete(dir_list.x)
+ if rc <> 0 then SAY dir_list.x '........' DELRCText.RC
+ END
+
+ DROP dir_list.
+
+ /* Go through all the subdirectories and remove them. */
+ /* We go backwards through the list in order to delete the */
+ /* lowest level sudirectories first and work our way back up */
+ /* the tree. */
+ rc=SysFileTree(user_dir || '\*.*', dir_list, 'DSO')
+ DO x = dir_list.0 TO 1 BY -1
+ rc=SysRmDir(dir_list.x)
+ if RC <> 0 then SAY dir_list.x '........' RDRCText.RC
+ END
+
+ DROP dir_list.
+
+ /* Delete the topmost directory */
+ rc=SysRmDir(user_dir)
+ SAY user_dir '........' RDRCText.RC
+
+RETURN
+
+LoadDELRCText:
+ /* provides text strings for SysFileDel return codes */
+ /* The return codes and strings are in the online Rexx manual */
+
+ DELRCText.0 = 'File deleted successfully. '
+ DELRCText.2 = 'Error. File not found. '
+ DELRCText.3 = 'Error. Path not found. '
+ DELRCText.5 = 'Error. Access denied. '
+ DELRCText.26 = 'Error. Not DOS disk. '
+ DELRCText.32 = 'Error. Sharing violation. '
+ DELRCText.36 = 'Error. Sharing buffer exceeded. '
+ DELRCText.87 = 'Error. Invalid parameter. '
+ DELRCText.206 = 'Error. Filename exceeds range error. '
+RETURN
+
+LoadRDRCText:
+ /* provides text strings for SysRmDir return codes */
+ /* The return codes and strings are in the online Rexx manual */
+
+ RDRCText.0 = 'Directory removal was successful. '
+ RDRCText.2 = 'Error. File not found. '
+ RDRCText.3 = 'Error. Path not found. '
+ RDRCText.5 = 'Error. Access denied. '
+ RDRCText.16 = 'Error. Current Directory. '
+ RDRCText.26 = 'Error. Not DOS disk. '
+ RDRCText.87 = 'Error. Invalid parameter. '
+ RDRCText.108 = 'Error. Drive locked. '
+ RDRCText.206 = 'Error. Filename exceeds range error. '
+RETURN
+
+/* finis */
+
diff --git a/obsolete/systems/os2/emtex-contrib/emtexTDS/tdskill.cmd b/obsolete/systems/os2/emtex-contrib/emtexTDS/tdskill.cmd new file mode 100644 index 0000000000..30026d50dc --- /dev/null +++ b/obsolete/systems/os2/emtex-contrib/emtexTDS/tdskill.cmd @@ -0,0 +1,399 @@ +/* REXX */
+
+/*
+ tdskill.cmd, version v0.53
+
+ This program uninstalls emtex/TDS
+
+ Written by Walter Schmidt
+
+ The code for removing a directory tree was written
+ by Mark Polly - Progressive Insurance, 1992
+
+*/
+
+
+
+/*
+ Initialisation:
+ ---------------
+ Loading libraries, checking the current directory etc.
+*/
+VERSION = 0.5
+
+ret = RxFuncAdd("SysLoadFuncs", "REXXUTIL", "SysLoadFuncs")
+call SysLoadFuncs
+
+wrkdrive = substr(directory(),1)
+say
+say "Uninstallation Tool for emTeX/TDS, v0.53 <2000-02-07>"
+say
+
+say "From which drive do you want emTeX/TDS to be removed?"
+answer = linein()
+if answer = "" then EXIT
+texdrive = translate(substr(answer,1,1))
+
+say
+say "emTeX/TDS will be removed from drive " || texdrive || ":"
+say "Continue? (y/n)"
+answer = translate(substr(linein(),1,1))
+if answer <> "Y" then exit
+
+if wrkdrive = texdrive then call directory("\")
+user_dir=texdrive||":\texmf"
+
+/*
+ Step 1
+ ------
+ Removing the texmf tree
+*/
+
+/* Load text strings for SysFileDel and SysRmDir return codes. */
+CALL LoadDELRCText /* provides text strings for SysFileDel return codes */
+CALL LoadRDRCText /* provides text strings for SysRmDir return codes */
+
+/* Check to make sure the directory exists */
+rc=SysFileTree(user_dir,dir_list, 'D')
+IF dir_list.0 = 0 THEN
+ DO
+ SAY user_dir 'not found.'
+ /* proceed with updating config.sys */
+ SIGNAL cfgupdate
+ END
+
+DROP dir_list.
+
+/* Mark all the read-only files to be non read-only */
+rc=SysFileTree(user_dir || '\*.*', dir_list, 'FSO', '****','----')
+
+DROP dir_list.
+
+/* Go through the list of files and delete each one */
+rc=SysFileTree(user_dir || '\*.*', dir_list, 'FSO')
+DO x = 1 TO dir_list.0
+ rc = SysFileDelete(dir_list.x)
+ if rc <> 0 then SAY dir_list.x '........' DELRCText.RC
+END
+
+DROP dir_list.
+
+/* Go through all the subdirectories and remove them. */
+/* We go backwards through the list in order to delete the */
+/* lowest level sudirectories first and work our way back up */
+/* the tree. */
+rc=SysFileTree(user_dir || '\*.*', dir_list, 'DSO')
+DO x = dir_list.0 TO 1 BY -1
+ rc=SysRmDir(dir_list.x)
+ if RC <> 0 then SAY dir_list.x '........' RDRCText.RC
+END
+
+DROP dir_list.
+
+/* Delete the texmf directory */
+rc=SysRmDir(user_dir)
+SAY user_dir '........' RDRCText.RC
+
+
+/*
+ Step 2
+ ------
+ cleaning up config.sys
+*/
+cfgupdate:
+say
+say "Do you want config.sys to be cleaned up? (y/n)"
+answer = translate(substr(linein(),1,1))
+if answer <> "Y" then EXIT
+
+bootdrv= querybootdrv()
+configfile = bootdrv||"\config.sys"
+if stream(configfile,"C","QUERY EXISTS") = "" then do
+ say "The file config.sys could not be located."
+ say "Please, perform any changes manually."
+ EXIT
+end
+
+say
+say "Cleaning up config.sys ..."
+
+call readconfig configfile
+
+call delvar "EMTEXDIR"
+call delvar "TEXMACROS"
+call delvar "TEXTFM"
+call delvar "BFONTS"
+call delvar "VFONTS"
+call delvar "TYPE1FONTS"
+call delvar "TEXCONFIG"
+call delvar "EMTEXSWCHAR"
+call delvar "MFOPT"
+call delvar "MFJOBOPT"
+call delvar "MFINPUT"
+call delvar "INDEXSTYLE"
+call delvar "BSTINPUT"
+call delvar "BIBINPUT", texdrive||":\TEXMF\BIBTEX\BIB"
+
+call pathedit "PATH", texdrive||":\texmf\emtex\bin;", "D"
+call pathedit "HELP", texdrive||":\texmf\emtex\help;", "D"
+call libpathedit texdrive||":\texmf\emtex\dll;", "D"
+
+tempfile=SysTempFileName(bootdrv||"\config??.sys")
+if tempfile="" then signal updfailed
+
+signal on error name updfailed
+savedfile = filespec("N", tempfile)
+"@ren" configfile savedfile
+say
+say "Your current" configfile "has been renamed to" savedfile "."
+res = writeconfig(configfile)
+if res=0 then do
+ call beep 440,500
+ say "Writing a new file" configfile "failed".
+ say "Rename" savedfile "to config.sys and perform the changes manually."
+ end
+else do
+ say
+ say "A new file" configfile "has been written."
+ say "Shutdown and reboot OS/2 now to make the changes come into effect."
+end
+EXIT
+
+updfailed:
+say
+say "Updating config.sys failed."
+say "Your config.sys has *** not *** been changed."
+say "Please, perform any changes manually."
+EXIT
+
+
+/*
+ Local subroutines
+*/
+LoadDELRCText:
+ /* provides text strings for SysFileDel return codes */
+ /* The return codes and strings are in the online Rexx manual */
+
+ DELRCText.0 = 'File deleted successfully. '
+ DELRCText.2 = 'Error. File not found. '
+ DELRCText.3 = 'Error. Path not found. '
+ DELRCText.5 = 'Error. Access denied. '
+ DELRCText.26 = 'Error. Not DOS disk. '
+ DELRCText.32 = 'Error. Sharing violation. '
+ DELRCText.36 = 'Error. Sharing buffer exceeded. '
+ DELRCText.87 = 'Error. Invalid parameter. '
+ DELRCText.206 = 'Error. Filename exceeds range error. '
+RETURN
+
+LoadRDRCText:
+ /* provides text strings for SysRmDir return codes */
+ /* The return codes and strings are in the online Rexx manual */
+
+ RDRCText.0 = 'Directory removal was successful. '
+ RDRCText.2 = 'Error. File not found. '
+ RDRCText.3 = 'Error. Path not found. '
+ RDRCText.5 = 'Error. Access denied. '
+ RDRCText.16 = 'Error. Current Directory. '
+ RDRCText.26 = 'Error. Not DOS disk. '
+ RDRCText.87 = 'Error. Invalid parameter. '
+ RDRCText.108 = 'Error. Drive locked. '
+ RDRCText.206 = 'Error. Filename exceeds range error. '
+RETURN
+
+
+
+/*
+ query boot drive
+ usage: querybootdrv()
+ returns: letter of boot drive incl. colon
+*/
+querybootdrv: PROCEDURE
+bootdr = value('COMSPEC', , 'OS2ENVIRONMENT')
+bootdr = filespec('D', bootdr)
+if bootdr = "" then do
+ say "Please, tell me the drive letter of the boot drive:"
+ answer = linein()
+ bootdr = substr(strip(answer),1,1)||":"
+end
+return bootdr
+
+
+/*
+ read config file
+ usage: call readconfig filename
+ returns: (nothing)
+*/
+readconfig: PROCEDURE expose config. cmax
+parse arg infile
+cmax=0
+do while lines(infile) > 0
+ cmax=cmax+1
+ config.cmax=linein(infile)
+end /* do */
+call stream infile, "C", "CLOSE"
+return
+
+
+/*
+ write config file
+ usage: call writeconfig filename
+ returns: 1 if successful
+ 0 if writing the file failed
+*/
+writeconfig: PROCEDURE expose config. cmax
+parse arg outfile
+call SysFileDelete outfile
+do i = 1 TO cmax
+ if config.i <> "deleted" then do
+ res = lineout(outfile, config.i)
+ end
+end /* do */
+call stream outfile, "C", "CLOSE"
+if res <> 0 then return 0
+else return 1
+
+
+/*
+ search for a given environment variable
+ usage: checkvar(name)
+ returns: setting
+ "" if undefined or defined as empty
+*/
+checkvar: PROCEDURE expose config. cmax
+parse upper arg name
+i=0
+name=strip(name)
+trigger=" "||name||"="
+do forever
+ i=i+1
+ if i>cmax then leave
+ parse upper value config.i with junk (trigger) setting
+ if (setting <> "") & (junk="SET") then leave
+end /* do */
+if i>cmax then return ""
+else return setting
+
+
+/*
+ add environment variable, overwrites current setting
+ usage: call addvar name, value
+ returns: (nothing)
+*/
+addvar: PROCEDURE expose config. cmax
+parse arg name, value
+name = strip(translate(name))
+trigger=" "||name||"="
+i=0
+do forever
+ i=i+1
+ if i>cmax then leave
+ parse upper value config.i with junk (trigger) setting
+ if (setting <> "") & (junk = "SET") then leave
+end /* do */
+config.i = "SET " || name || "=" || value
+if i>cmax then cmax=i
+return
+
+
+
+/*
+ delete environment variable
+ usage: delvar(name)
+ returns: 1 if successful
+ 0 if variable not found
+*/
+delvar: PROCEDURE expose config. cmax
+parse arg name
+name=strip(translate(name))
+trigger=" "||name||"="
+i=0
+do forever
+ i=i+1
+ if i>cmax then leave
+ parse upper value config.i with junk (trigger) setting
+ if (setting <> "") & (junk="SET") then leave
+end /* do */
+if i>cmax then return 0
+else do
+ config.i = "deleted"
+ return 1
+end /* do */
+
+
+/*
+ edit a path
+ usage: pathedit(path, entry, op)
+ op = "D" means "delete this entry"
+ op = "A" (default) means "add entry"
+ returns 1 if successful
+ 0 if path or entry to be deleted not found
+ 2 if entry to be added was already present
+*/
+pathedit: PROCEDURE expose config. cmax
+parse upper arg path, directory, op
+i=0
+path=strip(path)
+trigger = " "||path||"="
+do forever
+ i=i+1
+ if i>cmax then leave
+ parse upper value config.i with junk (trigger) setting
+ if (setting <> "") & (junk="SET") then leave
+end /* do */
+if i>cmax then return 0
+setting=strip(setting,"T")
+if substr(directory,length(directory),1) <> ";" then directory = directory || ";"
+if substr(setting,length(setting),1) <> ";" then setting = setting || ";"
+if op="D" then do
+ posi = pos(directory,setting)
+ if posi<>0 then config.i= "SET " || path || "=" || delstr(setting, posi, length(directory))
+ else return 0
+end /* do */
+else do
+ if pos(directory,setting)<>0 then return 2
+ else do
+ setting=setting || directory
+ config.i = "SET " || path || "=" || setting
+ end /* do */
+end /* do */
+return 1
+
+
+/*
+ edit LIBPATH
+ usage: libpathedit(entry, op)
+ op = "D" means "delete this entry, if existing"
+ op = "A" (default) means "add entry"
+ returns: 1 if successful
+ 0 if LIBPATH or entry to be deleted not found
+ 2 if entry to be added was already present
+*/
+libpathedit: PROCEDURE expose config. cmax
+parse upper arg directory, op
+i=0
+do forever
+ i=i+1
+ if i>cmax then leave
+ parse upper value config.i with junk "LIBPATH" setting
+ if (setting <> "") & (junk = "") then leave
+end /* do */
+if i>cmax then return 0
+setting=strip(setting,"T")
+if substr(directory,length(directory),1) <> ";" then directory = directory || ";"
+if substr(setting,length(setting),1) <> ";" then setting = setting || ";"
+if op="D" then do
+ posi = pos(directory,setting)
+ if posi<>0 then config.i= "LIBPATH" || delstr(setting, posi, length(directory))
+ else return 0
+end /* do */
+else do
+ if pos(directory,setting)<>0 then return 2
+ else do
+ setting=setting || directory
+ config.i = "LIBPATH" || setting
+ end /* do */
+end /* do */
+return 1
+
+/* finis */
+
diff --git a/obsolete/systems/os2/emtex-contrib/emtexTDS/tfe.cfg b/obsolete/systems/os2/emtex-contrib/emtexTDS/tfe.cfg new file mode 100644 index 0000000000..90ae2d1978 --- /dev/null +++ b/obsolete/systems/os2/emtex-contrib/emtexTDS/tfe.cfg @@ -0,0 +1,38 @@ +# This is the initial information for the 'EPM TeX Front End'
+# about the programs to be run from within the EPM, like the
+# printer driver, the previewing program and, of course, TeX.
+#
+# This file is part of emTeX/TDS 0.56
+#
+#
+# No "PRINT" menu; we print via dvipm and GSview only:
+PRINT_CMD =
+# Alternatively you may delete the above line
+# and uncomment one of these:
+# PRINT_CMD = start /n /f dvihplj @dvijet.cnf %**N [dvihplj]
+# PRINT_CMD = start /n /f dvips [dvips] -o prn %**N
+#
+#
+# the command to start dvipm
+VIEW_CMD = start /n /f dvipm.exe @vp.cnf %**N
+#
+# the command to start GSView
+VIEWPS_CMD = start /n /f c:\gs\gsview2\gvpm.exe %**N.ps
+VIEWPDF_CMD = start /n /f c:\gs\gsview2\gvpm.exe %**N.pdf
+# THE ABOVE LINES MAY NEED EDITING TO REFLECT *** YOUR *** GSVIEW PATH !
+#
+# the first user-definable program, here BiBTeX
+USER1_CMD = start /n /f bibtex %**N
+USER1_EXT = .aux
+USER1_MENU_TEXT = ~BibTeX
+USER1__MSG = Run BibTeX on current document
+#
+# the OS/2 commands to run the specified formats
+# (the default is <format>.cmd)
+PLAIN = TEX.CMD
+LATEX = LATEX.CMD
+#
+# the command to run dvips
+DVIPS_EXEC = dvips
+#
+# finis
|