[comp.text] Mac-pictures in TeX.

a27@nikhefh.nikhef.nl (Marcel Prins) (10/12/89)

I have recently completed a succesfull installation of TeX and LaTeX on
a Gould NP-1. It passed the trip-test succesfull. Yeah! (Thanks to everybody
who helped me)

But now I've another problem: I downloaded w_dvi2ps because it has the
abbility to use pk-fonts. Everything works all right accept PSFIG.
It isn't possible to print home-made MacIntosh MacDraw picture's on
the Apple Laserwriter using mac.pro.

I've found on our computer 4 files named laser-prep-12.pro, laser-prep-40.pro,
laser-prep-49.pro and laser-prep-65.pro.
Typing:

     cat laser-prep-40.pro MyFile.ps | lpr -Plaser

prints the file succesfull on the Laserwriter. But when I use in a
LaTeX file the command:

     \psfig{figure=MyFile.ps,prolog=laser-prep-40.pro}

the printer refuses everything. Of course I included psfig.tex. So
what did I wrong. Every hint is welcome. 

              Marcel Prins
              a27@nikhefh

jbw@unix.cis.pitt.edu (Jingbai Wang) (10/13/89)

In article <287@nikhefh.nikhef.nl> a27@nikhefh.nikhef.nl (Marcel Prins) writes:
>I have recently completed a succesfull installation of TeX and LaTeX on
>a Gould NP-1. It passed the trip-test succesfull. Yeah! (Thanks to everybody
>who helped me)

Nice work! Which version of TeX is it?
>
>But now I've another problem: I downloaded w_dvi2ps because it has the
>abbility to use pk-fonts. Everything works all right accept PSFIG.

Well, well. Here it goes again? I said many times in this board that 
w_dvi2ps from ~/tex june.cs.washington.edu or the tape is a very old version.
I notified the maintainer there twice to move dvi2ps.tar.Z from ~/tmp
to replace it, but so far I did not see action. Anyone can help?

PSFIG of old w_dvi2ps has many shortcomings, it is only good at handling 
standard PostScript codes. For instance, it will not work on the Tektronx
->PS outputs supported by DEC LPS40. In the new one, it works much better.

>It isn't possible to print home-made MacIntosh MacDraw picture's on
>the Apple Laserwriter using mac.pro.
>
>I've found on our computer 4 files named laser-prep-12.pro, laser-prep-40.pro,
>laser-prep-49.pro and laser-prep-65.pro.

The problem is nowadays the Mac PostScript files are at least version 68
instead of 65 or lower. I did attempt a few times to build a mac68.pro,
but it did not work out too well. Apple Inc. tend to make it more and more
difficult for anybody to do this part of work.

>Typing:
>
>     cat laser-prep-40.pro MyFile.ps | lpr -Plaser
>
>prints the file succesfull on the Laserwriter. But when I use in a
>LaTeX file the command:
>
>     \psfig{figure=MyFile.ps,prolog=laser-prep-40.pro}
>
>the printer refuses everything. Of course I included psfig.tex. So
>what did I wrong. Every hint is welcome. 
>

Well, if you have a proper mac*.pro, this dvi2ps is much smarter than
this, you can simply do,

%dvi2ps -M mac?.pro myfile -=

Beside this posting, I also at least two other postings recently regarding
to w_dvi2ps. In the first one, one person said that w_dvi2ps did not do a
good job in producing subscript or \lower. Well, that does not seem to be
a generalizeable problem, because there are so many users locally and remote
sites, and this is the only bug report of this kind so far. In this case,
most probably the font width was not summed up right due bad TFM file, PK
file of some particular fonts. I found that TFM files for LubalinGraph
family gives quite some wrong dimensions. When there is \lower or \raise
dvi2ps has to use to sum to the widths of all the proceeding characters
in this line to position the cursor horizontally, if that sum is wrong, the
the horizontal position is screwed  up. If you put a \TeX (TeX logo) in
such a line, you can see if it is wrong.

Another question I saw was about the installing w_dvi2ps on a IBM RT
work station. Well, I have no experience with such machines, but I suspect
it is a System V. This dvi2ps is more for BSD, although one maintainer
in GA did install it on all his *UNIX systems with some hackings.


JB Wang

p.s.: for those, who have w_dvi2ps, please upgrade it with dvi2ps.tar.Z
	from ~/tmp june.cs.washington.edu