
*** Read also the "Addendum" section of this text !

**************************
DVI Output for the DeskJet
**************************

Like many Linux users, I have a DeskJet 500 connected to my system.
The dvilj2p driver supplied with the LILO distribution will not work
with a cartridge-less DJ500, because there is no RAM for uploading
softfonts.  I decided to post a query to comp.text.tex rather than
comp.os.linux, and a German DJ500 user was kind enough to send me a
version of the old Beebe drivers with a special driver included for
the DeskJet.  This driver includes data compaction to cut down on
transmission time, and can manage nearly 2ppm for detailed pages of
.dvi output.  I received the driver in a full Beebe distribution, but
it should be possible to plug it into the standard distribution on
SCIENCE.UTAH.EDU in the /pub/tex/dvi directory.

There is one _undocumented_ feature which I should mention.  The Beebe
drivers are designed to send output to a compressed file on a Unix
system -- ie., hello.dvi will be converted to hello.hp.Z.  To print
this file, you then must do "zcat hello.hp.Z > /dev/lp1" (or
whatever).  This is the result of typing "dvidjp hello.dvi".  If,
however, you type "dvidjp < hello.dvi", the output will go
(uncompressed) to stdout, so you can redirect it.  The result of all
this is that the command "dvidjp < hello.dvi > /dev/lp1" will send the
output directly to the printer on /dev/lp1 without creating a file on
your hard disk.

FILES:

  README		This file.
  dvidjp		Linux binary for DeskJet .dvi driver.
			Put it in /usr/TeX/bin, or wherever you
			keep your TeX binaries.
  dvidjp.c		The DeskJet driver, which you can add to
			the Beebe distribution (see above).  YOU
			CANNOT RECOMPILE THE DRIVER FROM THIS FILE
			ALONE.
  dvi.1			A manual page for the Beebe dvi drivers.
			It does not mention dvidjp, but the same
			switches apply.
  dvi.texinfo		Texinfo documentation for the Beebe dvi
			drivers.

Note that the Beebe drivers also contain a generic screen driver,
which could be converted for use with the VGALIB for people who
do not have X.


Enjoy!

David Megginson
dmeggins@acadvm1.uottawa.ca
20 January, 1993

********       new text starts here!
Addendum
********

Although the DeskJet driver is *really* good, the original binary
distribution of dvidjp lacked a feature provided by the other TeX
drivers of my SoftLandingSystem Linux/TeX distribution:

Instead of calling the shell script MakeTeXPK if a font is missing, 
MetaFont was invoked directly - a somewhat inflexible solution with
my system (I got problems with the directory names!). 

So I got the good old beebe-2.10 DVI-driver distribution, added
dvidjp.c and made the neccessary changes for the new font search/
font computing scheme.

If you want additional changes, too, here is what you have to do
to follow my 'traces'... 

* Get the "beebe-2.10.tar.Z", e.g. from informatik.tu-erlangen.de

* Apply the patchfile "dvidjp.patch" to the directory beebe-2.10
  e.g. "patch <dvidjp.patch"

* Copy dvidjp.c to the directory beebe-2.10

* make all

I hope it will work fine for you, too. :-)

ADDITIONAL FILES:

    dvidjp.patch	Context diff patch file for the
			beebe-2.10 DVI driver packet.
			YOU CAN RECOMPILE THE DESKJET DRIVER WITH
			THE BEEBE PACKET, THIS PATCH AND dvidjp.c!
			:-))
    MakeTeXPK		Script to invoke MetaFont with the 
			neccessary parameters for font generation.
			Somewhat changed by me to allow background
			processing (not complete, yet).
			AS GOOD AS THE ONE YOU ALREADY HAVE in
			/usr/TeX/bin.

CHANGED FILES:

    dvidjp		New binary executable which uses the
			MakeTeXPK script for computation of
			new fonts.

Enjoy! :-)

Hagen Patzke
i31ahp@rz.unibw-muenchen.de  (till 31.3.1993 only!)
18 February, 1993

************       even newer text starts here!
2nd addendum
************

  Driver for HP DeskJet500. Uses graphics data compression methods
  0 to 3 as described in

	"DeskJet Printer Family Technical Reference Guide".

  This yields output files about half the size of dvidjp's output.
  Speed is roughly equal to dvidjp. Speed- and size-guesses are based
  on a 23 page scientific document I used during debugging.

  To recompile it, see the description above and use patch file
  dvidj500.patch.

ADDITIONAL/CHANGED FILES:

  dvidj500.patch	Context diff patch file for the
			beebe-2.10 DVI driver packet.
			YOU CAN RECOMPILE THE DESKJET DRIVER WITH
			THE BEEBE PACKET, THIS PATCH AND dvidj500.c!
			:-)

  dvidjp
  dvidj500		Stripped binary executables, GCC 2.5.7,
			Lib 4.5.8, ld.so 1.3
   			FONTPATH="\"/usr/TeX/lib/texmf/fonts/tmp/pk/\""
   			This works together with the new TeX package
  			I found on sunsite.unc.edu some weeks ago.

  dvidj500.c		The DeskJet500 driver, which you can add to
			the Beebe distribution (see above).  YOU
			CANNOT RECOMPILE THE DRIVER FROM THIS FILE
			ALONE.

Enjoy! ;-] (and contact me on bugs or questions!)

Joerg Bullmann (bullmann@fzi.de)
February 20, 1994
