home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #30 / NN_1992_30.iso / spool / comp / text / tex / 14357 < prev    next >
Encoding:
Internet Message Format  |  1992-12-21  |  2.8 KB

  1. Path: sparky!uunet!dtix!darwin.sura.net!sgiblab!munnari.oz.au!ariel.ucs.unimelb.EDU.AU!ucsvc.ucs.unimelb.edu.au!lugb!luxor.latrobe.edu.au!ecsgrt
  2. From: ecsgrt@luxor.latrobe.edu.au (Geoffrey Tobin)
  3. Newsgroups: comp.text.tex
  4. Subject: Re: DVI - WhAT Is IT
  5. Keywords: dvi, dpl, special, psbox, pk graphics.
  6. Message-ID: <1992Dec21.004527.24381@lugb.latrobe.edu.au>
  7. Date: 21 Dec 92 00:45:27 GMT
  8. References: <1992Dec17.170012.18600@uk03.bull.co.uk>
  9. Sender: news@lugb.latrobe.edu.au (USENET News System)
  10. Organization: La Trobe University
  11. Lines: 56
  12.  
  13. 00:45 GMT Mon 21 Dec 1992 - ecsgrt@luxor.latrobe.edu.au
  14.  
  15. 1.  Want ascii?
  16.  
  17. (a)  DVI files are binary, but you could uuencode them.  :-|  Well,
  18. uuencode is available for ms-dos as well as for unix.
  19.  
  20. (b)  Alternatively, you can look at their code using Knuth's "dvitype".
  21.  
  22. (c)  I find dvitype inconvenient to use as a filter, so I wrote two
  23. filters, "dv2dp" and "dp2dv" to convert DVI to and from DPL.
  24.  
  25. DPL is a _much_ more verbose (so not economic for transport or
  26. storage), human-readable representation of the DVI code, based on the
  27. command names used in Appendix A of the "DVI Driver Standard,
  28. Level 0", draft 0.05 document, by a TUG committee chaired by Joachim
  29. Schrod, and to be found at many TeX archives, e.g. at:
  30.  
  31.     ftp.uni-stuttgart.de : soft/tex/drivers/driv-standard/level-0/*
  32.  
  33. Joachim wrote in the README for 26 Sep 91:
  34. "Comments, suggestions, etc., to schrod@iti.informatik.th-darmstadt.de"
  35.  
  36. 2.  Specials.
  37.  
  38. Clarence Wilkerson referred to the fact that \special commands are
  39. not portable to different printer drivers and previewers.  TeX input
  40. is better than a DVI file, because it uses high-level macros, which
  41. are more easily modified for a different driver than a pure \special
  42. command is.
  43.  
  44. For example, Jean Orloff's "psbox" (available at Niord.SHSU.edu - and
  45. which other sites?), as I understand it, lets you use the same
  46. high-level syntax, and select from a range of drivers.  This makes the
  47. same TeX file easily ported, even with specials.
  48.  
  49. To use a DVI file that contains \special commands, you have to know
  50. which printer it is intended for, or try to guess from the \special
  51. syntax, then try to translate.
  52.  
  53. A second problem in working with the DVI format is that it contains
  54. numeric pointers, which will need to be corrected.  So editing a DVI
  55. file needs either a specialised editor, or (what is probably quicker
  56. to devise and more portable) a higher-level representation than either
  57. DVI or DPL with a 2-way converter.  Do such things exist?
  58.  
  59. So I recommend TeX with something like psbox, if you must use
  60. specials.
  61.  
  62. Sometimes you can avoid \special even for graphics.  For example,
  63. "bm2font" converts a variety of bitmap graphics to PK form; "mfpic"
  64. and "diagramf" use metafont to draw PK graphics; and "ghostscript"
  65. converts PostScript compatible code to bitmaps (then you can use
  66. "bm2font").
  67.  
  68. Geoffrey Tobin
  69.