home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #20 / NN_1992_20.iso / spool / comp / text / tex / 11143 < prev    next >
Encoding:
Text File  |  1992-09-11  |  3.1 KB  |  104 lines

  1. Newsgroups: comp.text.tex
  2. Path: sparky!uunet!caen!uwm.edu!ux1.cso.uiuc.edu!hudson
  3. From: hudson@ux1.cso.uiuc.edu (John Hudson)
  4. Subject: Re: \dict full, what now? (was: growing old . . .)
  5. Message-ID: <BuFMx6.8w0@ux1.cso.uiuc.edu>
  6. Organization: University of Illinois at Urbana-Champaign
  7. References: <BuBqFL.1MF@ux1.cso.uiuc.edu>
  8. Date: Fri, 11 Sep 1992 21:12:27 GMT
  9. Lines: 93
  10.  
  11. In article <BuBqFL.1MF@ux1.cso.uiuc.edu> hudson@ux1.cso.uiuc.edu (John Hudson) writes:
  12. >Can anyone offer suggestions for what to do when the dict is full
  13. >printing postscript output?  The file I'm trying to print is actually
  14. >pretty small, but I requires dictionaries from TeX, (Rokicki's) dvips
  15. >(several), and a Mac (LaserPrep) dictionary.  This fills the \dict space
  16. >on a LaserWriterIINT.
  17. >
  18. >(The mac generated postscript file which is included in the TeX document 
  19. >via psfig/epsf prints fine alone.)
  20. >
  21. >The relavent specs
  22. >TeX 3.x
  23. >LaTeX 2.09
  24. >dvips 5.47
  25. >
  26. >Other than this major problem, I'm very happy with dvips and TeX/LaTeX on
  27. >my Unix box.
  28. >
  29. >Thanks in advance.
  30.  
  31.  
  32. Many, many thanks to Tom Ivar Helbekkmo for a _Great_ solution to this
  33. problem.  Others suggested things like 1)hack the postscript everytime and
  34. 2)use TeX on the mac instead.
  35.  
  36. The best solution (imho) was Tom's 
  37.  
  38. ___
  39. I know...  I ran into this, too, and hacked up a solution that at least
  40. seems to work fine for me.  Maybe this isn't the "right" way to do it,
  41. but hey...  :-)
  42.  
  43. In my dvips config.ps file, I make it include a file of my own, thus:
  44.  
  45.    *
  46.    *   With a LaserWriter, claim 300000 bytes of memory
  47.    *
  48.    m 300000
  49.    *
  50.    *   But fix the darn userdict problem
  51.    *
  52.    h userdict.pro
  53.    *
  54.    *   And compress fonts, please
  55.    *
  56.    Z
  57.    *
  58.    *   Default resolution.
  59.    *
  60.    D 300
  61.    *
  62.    *   Last resort sizes.
  63.    *
  64.    R 100 120 144 300 360 400 432 480
  65.  
  66. And then my userdict.pro just contains the single line:
  67.  
  68.    /userdict 200 dict def userdict begin
  69.  
  70. The size of 200 entries was just a guess that turned out OK -- I seem
  71. to remember checking the default size, and then increasing it a bit
  72. for the temporary replacement dictionary, and then tested it and found
  73. that it worked.  Haven't had any problems with this, even when the
  74. laserwriters run for a long time, doing a mixture of dvips and Macintosh
  75. output...
  76.  
  77. The result is that output files that start out e.g. like this:
  78.  
  79.    %!PS-Adobe-2.0
  80.    %%Creator: dvips 5.47 Copyright 1986-91 Radical Eye Software
  81.    %%Title: guide.dvi
  82.    %%Pages: 82 1
  83.    %%BoundingBox: 0 0 596 843
  84.    %%EndComments
  85.    %%BeginProcSet: userdict.pro
  86.    /userdict 200 dict def userdict begin
  87.    %%EndProcSet
  88.    %%BeginProcSet: texc.pro
  89.    /TeXDict 200 dict def TeXDict begin /N /def load def /B{bind def}N /S /exch
  90.    load def /X{S N}B /TR /translate load N /isls false N /vsize 10 N /@rigin{
  91.    isls{[0 1 -1 0 0 0]concat}if 72 Resolution div 72 VResolution div neg scale
  92.    Resolution VResolution vsize neg mul TR matrix currentmatrix dup dup 4 get
  93.  
  94. [...and so on and so forth...]
  95.  
  96. Hope this helps...
  97.  
  98. -tih
  99. --
  100. Tom Ivar Helbekkmo, NHH, Bergen, Norway.  Telephone: +47-5-959205
  101. Postmaster for domain nhh.no.   Internet mail: tih@barsoom.nhh.no
  102.  
  103.  
  104.