From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f9e16,e9107ccf015bb7f3,start X-Google-Attributes: gidf9e16,public X-Google-Thread: 10d4db,e9107ccf015bb7f3,start X-Google-Attributes: gid10d4db,public X-Google-ArrivalTime: 1993-10-17 08:15:30 PST Xref: gmd.de comp.text.tex:23728 comp.os.linux.announce:1305 Path: gmd.de!newsserver.jvnc.net!howland.reston.ans.net!wupost!usc!elroy.jpl.nasa.gov!decwrl!concert!samba.oit.unc.edu!bounce-bounce From: neal@ctd.comsat.com (Neal Becker) Newsgroups: comp.text.tex,comp.os.linux.announce Subject: ANNOUNCE eps042 released Followup-To: comp.text.tex,comp.os.linux.misc Date: 17 Oct 1993 15:04:56 GMT Organization: COMSAT Labs Message-ID: <29rmuo$7hi@samba.oit.unc.edu> Reply-To: neal@ctd.comsat.com (Neal Becker) NNTP-Posting-Host: calypso.oit.unc.edu Keywords: epson dot-matrix DVI driver, TeX Originator: mdw@sunSITE An update version of my eps dvi driver has been released. eps042.tgz is available at ftp.ctd.comsat.com and has been uploaded to sunsite.unc.edu:/pub/Linux/Incoming. New in this version - support for MakeTeXPK! Here is the README: What is this? This is a dvi driver originally for epson 9-pin dot matrix. Now it is sufficiently general to work for many kinds of printers, with varying dpi, varying numbers of pins, etc. It was built from the mctex package, which is found in the standard TeX distribution. I converted all the mctex source to c++. This was done mostly to catch some portability problems when I built this for MSDOS. Next, I added the epson driver which is in the eps directory. I also modified the mctex code to allow for separate vertical and horizontal dpi, since my epson is 240 x 216. Thanks to gaa@world.std.com (Gordon A Acocella) for helpful code and suggestions to make eps work for a more general class of printers! Thanks to Michael Klemme, klemme@uni-paderborn.de for help with MakeTeXPK and with printer redirection! INSTALLING: Edit eps/config.h to set compiled-in defaults as desired (see below). Then do make. USING: * You'll need to install a fontdesc file to describe the location of your fonts. Here's mine: font pk epson 3 /usr/local/lib/tex/fonts/epson/%f.%mpk I put this file in '/usr/local/lib/tex/fonts/fontdesc'. You may want to make /usr/local/lib/tex a symlink to wherever TeX lives (/usr/TeX, maybe?) This says that the font cmr10 at 240x216 dpi can be found at '/usr/local/lib/tex/fonts/epson/cmr10.240pk'. Feel free to change it. The format for this file comes from the MCTEX stuff. If you don't want to get MCTEX and read up, just copy my example. %f will stand for the font name, and %m will stand for the dpi. * Edit the defaults in eps/config.h to your liking. Comments there describe the parameters. These are the compiled-in defaults. But you can overide these at runtime, using values read from CONFIG_FILE, and then by command-line switches. * Compiled-in defaults are set by eps/config.h. At runtime a config file is searched for. The name of this file is set in eps/config.h (CONFIG_FILE). * CONFIG_FILE is searched for an entry for your printer. The printer name to look for is set in config.h by PRINTERNAME, but you can overide this at runtime using the environment variable EPSPRINTER. * CONFIG_FILE should consists of a series of entries. Each entry describes the parameters for a printer (or set of equivalent printers). This file is searched for the first entry matching the printername specified by the config.h parameter PRINTERNAME or the environment variable EPSPRINTER. Entries for that printer will override defaults in config.h. Values unspecified will default to the settings in config.h. Here is the syntax for entries in CONFIG_FILE: names { params } where 'names' is a printer name optionally followed by a aliases, seperated by pipe symbols '|', like: name [ | alias1 | alias2 ... ] Here is a good time to say that all strings consist of the usual alphanumeric characters together with the characters '_.-'. If you like, you can include any characters (except newline) in names by quoting them. You may use either single or double quotes. 'params' is a list of parameter entries. Each entry looks like: keyword = value The possible 'params' are: engine = string vpins = int dpih = int dpiv = int graphicsmode = int vskip = int vinterleave = int xoff = int yoff = int width = float height = float fast = int initstring = strings resetstring = strings A 'string' has already been explained, while 'strings' is special. This is a list of string(s), with some special processing. First, all the string(s) have backslash escape sequences expanded, as follows: \e stands for ESC, \xnnn stands for any hex (like C, but any number of digits), and anything else just stands for itself (\w gives the character 'w'). Then all the 'strings' are concatenated. This allows you to write something like: "Panasonic KX-P1080" | EpsonMXFX { engine = epson resetstring = '\e' "@" } to say that the reset string is "ESC-@". (Note: extra quotes in this example are just for fun. You only actually need quotes to include whitespace or special characters.) The meanings of all these parameters are explained in config.h (I hope). * You don't have to have a CONFIG_FILE. You'll get the compiled-in defaults if you don't have one. * eps now supports MakeTeXPK! But you'll need to setup your MakeTeXPK script specially. eps will pass the absolute path to the font as arg 6 (not a subdir). You should make a modification like this to MakeTeXPK: if test "$6" != "" then case "$6" in /*) DESTDIR="$6" ;; *) DESTDIR=$DESTDIR"/$6" esac if test ! -d $DESTDIR then mkdir $DESTDIR fi fi Now your MakeTeXPK will work if argument 6 is either a subdirectory or an absolute pathname. This is a good idea and all other dvifile drivers should support this. * If you have any problems, suggestions, or especially successful installation you can reach me at: neal@ctd.comsat.com * TODO: msdos used to work. It needs the TWO_PASS stuff turned back on (yechh --- 640k --- puke). But I don't use msdos any more. Anyone want to volenteer?