home *** CD-ROM | disk | FTP | other *** search
/ The World of Computer Software / World_Of_Computer_Software-02-385-Vol-1of3.iso / d / dvips549.zip / DVIPS / INSTALLA < prev    next >
Text File  |  1992-10-14  |  10KB  |  225 lines

  1. Installation
  2.  
  3. If dvips has not already been installed on your system, the installation
  4. following steps are all that is needed.
  5.  
  6. First update the Makefile---in particular, the paths.  Everything
  7. concerning dvips can be adjusted in the Makefile.  Make sure
  8. you set key parameters such as the default resolution, and make sure
  9. that the path given for packed pixel files is correct.
  10.  
  11. Next, check the file name definitions in MakeTeXPK.  If you don't
  12. have METAFONT installed, you cannot use MakeTeXPK to automatically
  13. generate the fonts; you can, however, modify it to generate pk
  14. fonts from gf fonts if you don't have a full set of pk fonts
  15. but do have a set of gf fonts.  If you don't have that, you should
  16. probably not install MakeTeXPK at all; this will disable automatic
  17. font generation.
  18.  
  19. Now, check the configuration parameters in config.ps.  You should
  20. also update the default resolution here.  This file is the
  21. system-wide configuration file that will be automatically installed.
  22. If you are unsure how much memory your PostScript printer has, print the
  23. following file:
  24.  
  25. %! Hey, we're PostScript
  26. /Times-Roman findfont 30 scalefont setfont 144 432 moveto
  27. vmstatus exch sub 40 string cvs show pop showpage
  28.  
  29. Note that the number returned by this file is the total memory free;
  30. it is often a good idea to tell dvips that the printer has somewhat
  31. less memory.  This is because many programs download permanent macros
  32. that can reduce the memory in the printer.  In general, a memory size
  33. of about 300000 is plenty, since dvips can automatically split
  34. a document if required.  It is unfortunate that PostScript printers with
  35. much less virtual memory still exist.
  36.  
  37. Some systems or printers can dynamically increase the memory available
  38. to a PostScript interpreter; for these systems, a value of one million
  39. works well.
  40.  
  41. Next, run make.  Everything should compile smoothly.  You may need
  42. to adjust the compiler options in the Makefile if something goes
  43. amiss.
  44.  
  45. Once everything is compiled, run make install.  After this is done,
  46. you may want to create a configuration file for each PostScript printer
  47. at your site.
  48.  
  49. If the font caching is considered a security hole, make the `cache'
  50. directory be something like /tmp/pks, and cron a job to move the
  51. good pk files into the real directory.  Or simply disable this
  52. feature by not installing MakeTeXPK.
  53.  
  54. Don't forget to install the new vf files and tfm files.  Note
  55. that the tfm files distributed with earlier (pre-5.471) versions
  56. of dvips, and all versions of other PostScript drivers, are different.
  57.  
  58. Diagnosing Problems
  59.  
  60. You've gone through all the trouble of installing dvips, carefully
  61. read all the instructions in this manual, and still can't get something
  62. to work.  This is all too common, and is usually caused by some broken
  63. PostScript application out there.  The following sections provide some
  64. helpful hints if you find yourself in such a situation.
  65.  
  66. In all cases, you should attempt to find the smallest file that causes
  67. the problem.  This will not only make debugging easier, it will also
  68. reduce the number of possible interactions among different parts of the
  69. system.
  70.  
  71. Debug Options
  72.  
  73. The -d flag to dvips is very useful for helping to track down
  74. certain errors.  The parameter to this flag is an integer that tells
  75. what errors are currently being tracked.  To track a certain class of
  76. debug messages, simply provide the appropriate number given below;
  77. if you wish to track multiple classes, sum the numbers of the classes
  78. you wish to track.  The classes are:
  79.  
  80. 1   specials
  81. 2   paths
  82. 4   fonts
  83. 8   pages
  84. 16  headers
  85. 32  font compression
  86. 64  files
  87. 128 memory
  88.  
  89. No Output At All
  90.  
  91. If you are not getting any output at all, even from the simplest
  92. one-character file (for instance, \ \bye),
  93. then something is very wrong.  Practically any file sent to a
  94. PostScript laser printer should generate some output, at the very
  95. least a page detailing what error occurred, if any.  Talk to your
  96. system administrator about downloading a PostScript error handler.
  97. (Adobe distributes a good one called ehandler.ps.)
  98.  
  99. It is possible, especially if you are using non-Adobe PostScript,
  100. that your PostScript interpreter is broken.  Even then it should
  101. generate an error message.  I've tried to work around as many bugs
  102. as possible in common non-Adobe PostScript interpreters, but I'm
  103. sure I've missed a few.
  104.  
  105. If dvips gives any strange error messages, or compilation on your
  106. machine generated a lot of warnings, perhaps the dvips program
  107. itself is broken.  Carefully check the types in structures.h and
  108. the declarations in the Makefile, and try using the debug options
  109. to determine where the error occurred.
  110.  
  111. It is possible your spooler is broken and is misinterpreting the
  112. structured comments.  Try the -N flag to turn off
  113. structured comments and see what happens.
  114.  
  115. Output Too Small or Inverted
  116.  
  117. If some documents come out inverted or too small, your spooler is not
  118. supplying an end of job indicator at the end of each file.  (This happens
  119. a lot on small machines that don't have spoolers.)  You can
  120. force dvips to do this with the -F flag, but note that this
  121. generates files with a binary character (control-D) in them.  You can
  122. also try using the -s flag to enclose the entire job in a save/restore
  123. pair.
  124.  
  125. Error Messages From Printer
  126.  
  127. If your printer returns error messages, the error message gives very
  128. good information on what might be going wrong.  One of the most common
  129. error messages is bop undefined.  This is caused by old versions
  130. of Transcript and other spoolers that do not properly parse the
  131. setup section of the PostScript.  To fix this, turn off structured
  132. comments with the -N option, but make sure you get your spooling
  133. software updated.
  134.  
  135. Another error message is VM exhausted.  (Some printers indicate
  136. this error by locking up; others quietly reset.)  This is caused by telling
  137. dvips that the printer has more memory than it actually does, and
  138. then printing a complicated document.  To fix this, try lowering the
  139. parameter to m in the configuration file; use the debug option
  140. to make sure you adjust the correct file.
  141.  
  142. Other errors may indicate that the graphics you are trying to include
  143. don't nest properly in other PostScript documents, or any of a number of
  144. other possibilities.  Try the output on a QMS PS-810 or other Adobe
  145. PostScript printer; it might be a problem with the printer itself.
  146.  
  147. 400 DPI Is Used Instead Of 300 DPI
  148.  
  149. This common error is caused by not editing the config.ps file to
  150. reflect the correct resolution for your site.  You can use the debug flags
  151. (-d64) to see what files are actually being read.
  152.  
  153. Long Documents Fail To Print
  154.  
  155. This is usually caused by incorrectly specifying the amount of memory
  156. the printer has in config.ps; see the description above.
  157.  
  158. Including Graphics Fails
  159.  
  160. The reasons why graphics inclusions fail are too numerous to mention.
  161. The most common problem is an incorrect bounding box; read the section
  162. on bounding boxes and check your PostScript file.  Complain very loudly
  163. to whoever wrote the software that generated the file if the bounding
  164. box is indeed incorrect.
  165.  
  166. Another possible problem is that the figure you are trying to include
  167. does not nest properly; there are certain rules PostScript applications
  168. should follow when generating files to be included.  The dvips
  169. program includes work-arounds for such errors in Adobe Illustrator and
  170. other programs, but there are certainly applications that haven't
  171. been tested.
  172.  
  173. One possible thing to try is the -K flag, to strip the comments from
  174. an included figure.  This might be necessary if the PostScript spooling
  175. software does not read the structuring comments correctly.  Use of this
  176. flag will break graphics from some applications, though, since some
  177. applications read the PostScript file from the input stream looking for
  178. a particular comment.
  179.  
  180. Any application which generates graphics output containing raw binary
  181. (not hex) will probably fail with dvips.
  182.  
  183. Can't Find Font Files
  184.  
  185. If dvips complains that it cannot find certain font files, it is
  186. possible that the paths haven't been set up correctly for your system.
  187. Use the debug flags to determine precisely what fonts are being looked
  188. for and make sure these match where the fonts are located on your system.
  189.  
  190. Can't Generate Fonts
  191.  
  192. This happens a lot if either MakeTeXPK hasn't been properly edited
  193. and installed, or if the local installation of METAFONT isn't correct.
  194. If MakeTeXPK isn't properly edited or isn't installed, an error
  195. such as MakeTeXPK not found will be printed on the console.  The
  196. fix is to talk to the person who installed dvips and have them fix
  197. this.
  198.  
  199. If METAFONT isn't found when MakeTeXPK is running, make sure it is installed
  200. on your system.  The person who installed TeX should be able to install
  201. METAFONT easily.
  202.  
  203. If METAFONT runs but generates fonts that are too large (and prints out the
  204. name of each character as well as just a character number), then your
  205. METAFONT base file probably hasn't been made properly.  To make a proper
  206. plain.base, assuming the local mode definitions are contained in
  207. local.mf (on the NeXT, next.mf; on the Amiga, amiga.mf),
  208. type the following command (assuming csh under UNIX):
  209.  
  210. localhost> inimf "plain; input local; dump"
  211.  
  212. Now, copy the plain.base file from the current directory to where
  213. the base files are stored on your system.
  214.  
  215. Note that a preloaded cmbase.base should never be used when creating
  216. fonts, and a program such as cmmf should never exist on the system.
  217. The macros defined in cmbase will break fonts that do not use
  218. cmbase; such fonts include the LaTeX fonts.  Loading the cmbase
  219. macros when they are needed is done automatically and takes less than a
  220. second---an insignificant fraction of the total run time of METAFONT for a
  221. font, especially when the possibility of generating incorrect fonts is
  222. taken into account.  If you create the LaTeX font {\tt circle10,
  223. for instance, with the cmbase macros loaded, the characters will
  224. have incorrect widths.
  225.