Services & Resources / Wolfram Forums
-----
 /
MathGroup Archive
1992
*January
*February
*March
*April
*May
*June
*July
*August
*September
*October
*November
*December
*Archive Index
*Ask about this page
*Print this page
*Give us feedback
*Sign up for the Wolfram Insider

MathGroup Archive 1992

[Date Index] [Thread Index] [Author Index]

Search the Archive

TeX-psfig problem

  • To: mathgroup at yoda.physics.unc.edu
  • Subject: TeX-psfig problem
  • From: Tony Silva <tsilva at sparky.aaec.com>
  • Date: Wed, 2 Dec 92 10:48:13 EST

You may be having problems with a huge amount of font data being left
in your Postscript file. The Psfig distribution comes with a script
for UNIX awk which removes it:

#tsilva at sparky> cat /loc/lib/psfig/stripfonts.awk
BEGIN {p = 1}
$1 == "%%BeginFont:" { p = 0 }
{ if (p==1) print $0 }
$1 == "%%EndFont" { print "bn"; p = 1 }
$1 == "%%EndFont:" { print "bn"; p = 1 }

Preprocess your Postscript with the awk script and try reprinting your
TeX document. I seem to recall awk having a line length restriction,
so you may have to use UNIX fold as well:

fold -2500 < oldfig.ps | awk -f /loc/lib/psfig/stripfonts.awk > newfig.ps

-------------------------------------------------------------------------------

Tony Silva				tel:      (617)890-4200
Atlantic Aerospace Electronics Corp.	FAX:      (617)890-0224
470 Totten Pond Road			Internet: tsilva at aaec.com
Waltham, MA 02154





  • Prev by Date: window size
  • Next by Date: Re: nohup Mathematica
  • Previous by thread: window size
  • Next by thread: Point size using ListPlot