Re: Missing characters

2002-02-20 Thread Benji Fisher

On Wednesday, February 20, 2002, at 08:21 AM, Erik Frisk wrote:

 Hi all,

 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.

 One major problem is of course that it is rather hard to reproduce the
 problems since it is acroread/interpreter and printer dependent.

 I know others have had similar problems and I hope any of you have
 something useful for me since I really don't know what to do. I am not
 even sure this is a teTeX-related issue.

 Regards,
   
   Erik

  I have had better luck using pdftex than using tex and dvips.  
AFAIK the only drawback is that if you want to include eps graphics, you 
have to convert them to pdf or png first.

HTH --Benji Fisher




Re: Missing characters

2002-02-20 Thread Mats Bengtsson

   I have had better luck using pdftex than using tex and dvips.  
 AFAIK the only drawback is that if you want to include eps graphics, you 
 have to convert them to pdf or png first.

And, you can't use psfrag or pstricks or ...

  /Mats





Re: Missing characters

2002-02-20 Thread Christopher S. Swingley

 On Wednesday, February 20, 2002, at 08:21 AM, Erik Frisk wrote:
 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.

My apologies if this is something obvious, but the man / info page
for dvips on my system doesn't have a -G option, and -P is used for
the printer you are selecting.  Does a newer version of dvips have
some sort of default pdf / www ``printer''?

Some version info (Debian unstable system):

$ dvips --version
dvips(k) 5.86e
kpathsea version 3.3.7

$ dpkg --list tetex-bin
||/ Name   VersionDescription
+++-==-==-===
ii  tetex-bin  1.0.7+20011202 teTeX binary files

Thanks.  I'm always looking for yet another way to produce PDF from
TeX / LaTeX, since the results of such a conversion are so varied.

Chris
-- 
Christopher S. Swingley phone: 907-474-2689
Computer / Network Manager  email: [EMAIL PROTECTED]
IARC -- Frontier ProgramGPG and PGP keys at my web page:
University of Alaska Fairbanks  www.frontier.iarc.uaf.edu/~cswingle



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] 



Re: Missing characters

2002-02-20 Thread Thomas Esser

  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)

dvips -G0 -Ppdf is the same as dvips -G0 -Ppdf or even dvips -Ppdf.
If you want to load config.pdf without character shifting, specify that
-G0 *after* -Ppdf:
  dvips -Ppdf -G0

For dvips, later settings overwrite earlier ones on the command line.

Thomas