xdvi and ghostscript

2002-12-15 Thread Dimitri Antoniou
 Hi,

 I upgraded ghostscript from version 7.05 to version 8.0
 and xdvi stopped cooperating with ghostscript
 when the dvi file has an included postscript figure.

 In particular, in my SGI machine the xdvi keeps trying to show
 the figure and goes on forever,
 and in my AIX machine xdvi just dies.

 However, gs itself is able to display the postscript figure,
 it is the xdvi+gs combination that fails.
 My xdvi is version 22.40g

 Has anybody seen this problem?

 Dimitri



Re: new dvips

2002-11-27 Thread Dimitri Antoniou
 Hi,

 Something strange happened.
 A question I had asked last month was re-posted yesterday,
 even though it was not sent by me.
 Just for the record, Thomas had answered my question:

--

  When we say that the character shifting issue has been corrected,
  do we mean that  
   dvips -Ppdf ...   without either -G or -G0, 
  now works for computer modern, adobe postscript, and combinations of
  them?   
  Is that right?   

It means that -G1 (as set e.g. via -Ppdf) does no longer produce
incorrect output.  The remapping of characters works for computer modern,
but it does not work for a lot of other fonts. The new dvips decides on
a per-font basis whether to remap it or not and it only remaps if that
won't mess up the result.

Thomas



new dvips

2002-10-31 Thread Dimitri Antoniou
 Hi,

 I downloaded and compiled version 5.92 of dvips.
 When we say that the character shifting issue has been corrected,
 do we mean that
  dvips -Ppdf ...   without either -G or -G0, 
 now works for computer modern, adobe postscript, and combinations of them?
 Is that right? 

 Dimitri



Re: Missing characters

2002-02-20 Thread Dimitri Antoniou

  Erik,

 I know this has been discussed previously but I have not seen any
 definitive answers (not sure there are any but...). We have had some
 problems with pdf:s generated with 'dvips -Ppdf -G0' and distill/ps2pdf.
 Some characters, mostly '-' or ')', have been missing in the printout
 although they where present on-screen. One user claims that not using
 -Ppdf and instead using -Pwww solved the problem for him.

 It depends on the font you are using:

 1) If you use Computer Modern font, then use dvips -G -Ppdf 
(otherwise you lose things like half of integrals or large parentheses)

 2) If you use an Adobe Postscript font, then use dvips -G0 -Ppdf
(otherwise you lose things like fi ff ligatures)

 3) If you use an Adobe Postscript font for the text, but
Computer Modern (or Euler) for the math, then
you need to create virtual fonts (look at the end of the message)

 If I remember correctly, the problem is with Acrobat Reader 4.0 - it was 
 fixed for 4.05

 Virtual fonts:
 The following was suggested by T. van Zandt a couple of years ago.
 The purpose is to use Adobe Postscript font for the text, and
 Computer Modern/Euler for the math, and then do:   dvips -Ppdf -G
 without losing the ligatures of the Postscript font.
 The example he used was for Helvetica.

afm2tfm phvr8a.afm  -u -t dvips.enc -v phvr8a.vpl  tfm/rphvr8a   tvz8a.map
afm2tfm phvro8a.afm -u -t dvips.enc -v phvro8a.vpl tfm/rphvro8a  tvz8a.map
afm2tfm phvb8a.afm  -u -t dvips.enc -v phvb8a.vpl  tfm/rphvb8a   tvz8a.map
afm2tfm phvbo8a.afm -u -t dvips.enc -v phvbo8a.vpl tfm/rphvbo8a  tvz8a.map
vptovf phvr8a.vpl  vf/phvr8a.vf  tfm/phvr8a.tfm
vptovf phvro8a.vpl vf/phvro8a.vf tfm/phvro8a.tfm
vptovf phvb8a.vpl  vf/phvb8a.vf  tfm/phvb8a.tfm
vptovf phvbo8a.vpl vf/phvbo8a.vf tfm/phvbo8a.tfm

The files 
tvz8.map and the .vf and .tfm files 
have to be in the right places,
tvz8a.map then 
needs to be included in the dvips config files (p+ tvz8.amp),
and then you need to create .sty file that sets up the font for TeX. 
For example, this one is for the Helvetica fonts, scaled to match the 
x-height of the cmr fonts:

\def\helv@scale{.87}
\DeclareFontFamily{OT1}{phv}{}%
\DeclareFontShape{OT1}{phv}{m}{n}{-s*[\helv@scale]phvr8a}{}%
\DeclareFontShape{OT1}{phv}{m}{it}{-s*[\helv@scale]phvro8a}{}%
%\DeclareFontShape{OT1}{phv}{m}{sc}{-s*[\helv@scale]phvrc}{}%
\DeclareFontShape{OT1}{phv}{b}{n}{-s*[\helv@scale]phvb8a}{}%
\DeclareFontShape{OT1}{phv}{b}{it}{-s*[\helv@scale]phvbo8a}{}%
\DeclareFontShape{OT1}{phv}{m}{sl}{-ssub * phv/m/it}{}%
%\DeclareFontShape{OT1}{phv}{b}{sc}{-sub * phv/m/sc}{}%
\DeclareFontShape{OT1}{phv}{b}{sl}{-ssub * phv/b/it}{}%
\DeclareFontShape{OT1}{phv}{bx}{n}{-ssub * phv/b/n}{}%
\DeclareFontShape{OT1}{phv}{bx}{it}{-ssub * phv/b/it}{}%
\DeclareFontShape{OT1}{phv}{bx}{sc}{-sub * phv/m/sc}{}%
\DeclareFontShape{OT1}{phv}{bx}{sl}{-ssub * phv/b/it}{}%

\DeclareFontFamily{OMS}{phv}{}
\DeclareFontShape{OMS}{phv}{m}{n}
   {- ssub * cmsy/m/n}{}
\DeclareFontShape{OMS}{phv}{m}{it}
   {- ssub * cmsy/m/n}{}
\DeclareFontShape{OMS}{phv}{m}{sl}
   {- ssub * cmsy/m/n}{}
\DeclareFontShape{OMS}{phv}{m}{sc}
   {- ssub * cmsy/m/n}{}
\DeclareFontShape{OMS}{phv}{b}{n}
   {- ssub * cmsy/b/n}{}
\DeclareFontShape{OMS}{phv}{b}{it}
   {- ssub * cmsy/b/n}{}
\DeclareFontShape{OMS}{phv}{b}{sl}
   {- ssub * cmsy/b/n}{}
\DeclareFontShape{OMS}{phv}{b}{sc}
   {- ssub * cmsy/b/n}{}

-- 
 Dimitri Antoniou
 Department of Biophysics
 Albert Einstein College of Medicine  
 ___
 office : (718) 430 3332 
 fax: (718) 430 8819 
 email  : [EMAIL PROTECTED]