[comp.text.tex] HP Laserjet users

robin@castle.ed.ac.uk (R C Smith) (03/19/91)

FOR LASERJET OWNERS!!!!! (don't worry about the reference to PostScript!!!)

I have created a way of including pictures in your documents using the
following simple commands.

\documentstyle[laser]{....}

\begin{figure}
\begin{center}
\leavevmode
\epsfbox{picture.name}
\caption{ Your caption here }
\end{center}
\end{figure}

Should also work with TeX (I think!) :--- untested.

WARNING:- Only tested under Unix (SUN). To use this system I require a lot
of diskspace for various bits of software. These are:

1. Portable bitmap software suite (Public domain, very good), it would
be possible to use your own filter if you wanted, I'll explain briefly
later.

2. My own modified version of dvijep that allows the use of \special{}

METHOD:-

I modified pbmtolj so that it added to the first line of the file the 
PostScript command of

%%BoundingBox: 0 0 x y

where x and y is the width and height of the picture in pointsize
(1in=72.27pt). If you know the size of the pcl image then you could
modify the first line to include the %%BoundingBox: line and this should
also work.

Then I modified the Encapsulated PostScript routine for
including pictures in documents using \special, this TeX routine creates
a space in the document and then outputs two \specials

\special{move(h-x r v-y r)}     % Horizontal -ve displacement x Relative
                                % Vertical -ve displacement y Relative
\special{include(picture.name)}

BUGS:-NOT FULLY TESTED YET!!!!

 and

I had to put a full-stop at the bottom right hand corner of the picture
so that I could move the picture location relative to a known point.

If you are interested or can help me fix this bug I would appreciate it.
Robin Smith
robin@uk.ac.ed.castle