home *** CD-ROM | disk | FTP | other *** search
/ Nebula 1994 June / NEBULA_SE.ISO / Documents / FAQ / Text-faq < prev    next >
Encoding:
Internet Message Format  |  1993-08-24  |  29.6 KB

  1. Path: senator-bedfellow.mit.edu!bloom-beacon.mit.edu!spool.mu.edu!torn!nott!cunews!revcan!ecicrl!clewis
  2. From: clewis@ferret.ocunix.on.ca (Chris Lewis)
  3. Newsgroups: comp.text,news.answers,comp.answers
  4. Subject: comp.text Frequently Asked Questions
  5. Summary: Discussions on text processing in general, and troff in particular
  6. Keywords: typesetting troff groff ditroff wysiwyg sgml word desktop dwb
  7. Message-ID: <textfaq_746166166@ecicrl>
  8. Date: 24 Aug 93 04:23:01 GMT
  9. Expires: 21 Sep 93 04:22:46 GMT
  10. Reply-To: textfaq@ferret.ocunix.on.ca (Text FAQ commentary reception)
  11. Followup-To: comp.text
  12. Organization: Elegant Communications Inc., Ottawa, Canada
  13. Lines: 650
  14. Approved: news-answers-request@mit.edu
  15. Supersedes: <textfaq_744956623@ecicrl>
  16. Xref: senator-bedfellow.mit.edu comp.text:11866 news.answers:11728 comp.answers:1717
  17.  
  18. Archive-name: text-faq
  19. Last-Modified: Sun Apr 25 15:49:50 EDT 1993
  20.  
  21.         Frequently Asked Questions for comp.text
  22.                Chris Lewis
  23.             Nils-Peter Nelson
  24.  
  25. (This list was originally compiled by Jaap Akkerhuis, Dick Dunn, Nick
  26. Haines, Steve Harley, Harro Kremer, Chris Lewis, John Macdonald, Bob
  27. Morris, Nils-Peter Nelson, Chip Rosenthal.)
  28.  
  29. If you have comments or additions, please contact Chris Lewis,
  30. textfaq@ferret.ocunix.on.ca (note Reply-to).
  31.  
  32. Changes are marked with a "|" in left column.  Many newsreaders
  33. (ie: rn, trn) allow you to search for them with "g^|".
  34.  
  35. Changes this issue: More incremental improvement in pronunciation of
  36.     "TeX" (so I'm an idiot, what else is new ;-)  Plus spring
  37.     cleanup ;-): WYSIWYG comments.  Word and WP are more
  38.     word-processing than DTP.  Another book in TRN15, another
  39.     non-UNIX groff, cawf2.  GRIF (WYSIWYG plus SGML).
  40.     Ghostview/GhostScript for on-screen preview.
  41.  
  42. Questions discussed:
  43.  
  44. General interest:
  45.  
  46.   GN1. What is the difference between word processing, desktop
  47.          publishing, technical publishing, electronic publishing, etc?
  48.   GN2. Which do I need?
  49.   GN3. What is a markup language?
  50.   GN4. What is SGML? ODA?
  51.   GN5. What is WYSIWYG? Do I need it?
  52.   GN6. What is PostScript?
  53.   GN7. What is TeX?
  54.   GN8. What are some popular Desktop Publishing packages?
  55.   GN9. Where can I read more?
  56.  
  57. Specific to troff:
  58.  
  59.   TR1. What is troff? Why are there so many questions about it?
  60.   TR2. How many varieties of troff are there? What are the differences?
  61.   TR3. What are some of the filters for troff output?
  62.   TR4. What other troff printer drivers are there?
  63.   TR5. How do I get my troff to drive my printer?
  64.   TR6. None of the mentioned packages support *my* printer.  Help?
  65.   TR7. How to I embed PostScript in troff?
  66.   TR8. What are fonts?  How do I add fonts?
  67.   TR9. What are width tables?
  68.   TR10. How do I make width tables?
  69.   TR11. What are: pic, eqn, tbl, grap, refer?
  70.   TR12. How do I preview my troff on my screen?
  71.   TR13. I need makedev, but my DWB doesn't come with it.
  72.   TR14. How can I get nroff/troff for DOS?
  73.   TR15. What books can I get about DWB?
  74.  
  75. The discussions below are organized in digest-form, so you may
  76. scan ahead for "^Subject:" to move from one topic to the next
  77. (the ^G command does this in rn), and you may search for "^Subject: GN5"
  78. (for example) to jump to the discussion of a particular question.
  79. (The caret "^" before "Subject" is a convention of regular expressions
  80. that restricts the search to match only at the beginning of a line.)
  81.  
  82. ------------------------------
  83. Subject: GN1. What is the difference between word processing, desktop
  84. publishing, technical publishing, electronic publishing, etc?
  85.  
  86. Electronic Publishing is an all-encompassing term that means
  87. using computers (instead of hot lead) to set type for
  88. documents.  Although publishing includes a sequence of
  89. processes right through distribution, EP tends to emphasize
  90. document composition through production of a single master copy.
  91.  
  92. It is helpful to picture a graph with "complexity" along
  93. the X axis and "length" along the Y axis.  Complexity
  94. varies from straight text to footnotes and indexing to
  95. tables to line drawings to gray-scale illustration to
  96. full color.  Length varies from 1 page to 10,000 or more
  97. (better make the Y axis logarithmic!)
  98.  
  99. Word processing dominates the lower left of the graph
  100. (business letters).  Desktop publishing dominates the lower
  101. right (advertising layout).  Host-based text formatters like
  102. troff, TeX and Scribe dominate the upper-left (phone book).
  103. Proprietary systems have traditionally dominated the upper
  104. right (Sears catalog, encyclopedia); these are being supplanted
  105. by hybrids consisting of pieces from the other segments.
  106.  
  107. The middle of the graph is fair ground for everyone but is
  108. increasingly the domain of Technical Publication systems like
  109. Interleaf and FrameMaker.
  110.  
  111. ------------------------------
  112. Subject: GN2. Which do I need?
  113.  
  114. Word processors and Desktop publishers are more than adequate
  115. for documents of tens of pages.  Because they are mostly
  116. limited to PC's and Macintosh, they may be impediments in
  117. producing long documents, which would have to be done in
  118. digestible chunks (say, a chapter at a time).  High-end systems
  119. are usually UNIX-based, which means computer power and document
  120. capacity are limited only by how much you want to spend.
  121.  
  122. ------------------------------
  123. Subject: GN3. What is a markup language?
  124.  
  125. All formatters need to distinguish the text to be printed
  126. from instructions about how to print; the latter is called
  127. markup.  Procedural markup tells the software what to do
  128. (space down, invoke a macro); generic markup describes the
  129. thing to be printed (heading, cross-reference, etc.)  Troff
  130. and TeX are examples of procedural markups; ODA and SGML
  131. prescribe rules for generic languages; and good macro packages
  132. for troff or TeX make them, more-or-less, generic markup
  133. languages.
  134.  
  135. Many of the word processing packages (such as Word or Wordstar)
  136. can only do procedural markup - the software is told by the
  137. user "how to display it", rather than "what this is" - and leaving
  138. the visual representation to preprogrammed rule sets (ie:
  139. macros) - see GN5.
  140.  
  141. ------------------------------
  142. Subject: GN4. What is SGML? ODA?
  143.  
  144. SGML is the Standard Generalized Markup Language.  SGML is defined
  145. in International Standard ISO 8879:1986.  SGML is a language for
  146. formally describing the structure and contents of documents.  SGML
  147. is also the syntax used by documents so described.
  148.  
  149. SGML is an important move in the direction of separating information
  150. from its presentation, i.e. making different presentations possible
  151. for the same information.  The better macro packages for TeX and
  152. troff attempt to do the same thing.  This is in contrast with WYSIWYG -
  153. see GN5.
  154.  
  155. SGML is more fully discussed in comp.text.sgml.
  156.  
  157. SGML is the name of a directory at the public FTP site ftp.ifi.uio.no
  158. where you can find a (draft) FAQ, a bibliography, and more information.
  159.  
  160. ODA: Office [Open] Document Architecture, takes a similar approach
  161. but stresses blind interchange.  ODA is defined in the multi-part
  162. standard ISO 8613:1988, in the CCITT T.410 series recommendations,
  163. and in ECMA standard 101.
  164.  
  165. ------------------------------
  166. Subject: GN5. What is WYSIWYG? Do I need it?
  167.  
  168. What-you-see-is-what-you-get: essential for advertising layout,
  169. but a useless time-waster for a phone book.  WYSIWYG is the
  170. opposite of SGML, in that in SGML you know what something
  171. is (say, a chapter heading) but you don't know what it looks
  172. like; in WYSIWYG you know what it looks like but you don't
  173. know what it is.  The obvious benefit of WYSIWYG is that the
  174. author is aware at all times of the final appearance of the
  175. document; the liability is that the vendor gets to choose the
  176. internal representation of the document, and may not tell you
  177. what it is.
  178.  
  179. The best trade-off would be a WYSIWYG system with a well-documented,
  180. | usable markup language.  There is a system called "GRIF" which
  181. | supposedly supports SGML and WYSIWYG which is possibly available.
  182.  
  183. We should caution that few of the self-proclaimed WYSIWYG systems
  184. actually show the exact same thing on screen as you get on a printer:
  185. What You See Is Sort Of Like What You Get.  When 300 dpi, 17 inch
  186. terminals are common true WYSIWYG will be practical.
  187.  
  188. | Being aware of the final appearance of a document is not universally
  189. | accepted as a "good thing".  Robertson Davies has suggested that the
  190. | WYSIWYG approach to writing contributes to "blather" (and he should
  191. | know as a past master ;-), while others have argued that the final
  192. | appearance can't always be known.  WYSIWYG processors tend to
  193. | encourage an approach that makes re-use and re-packaging of
  194. | documents for alternate methods of presentation (eg: on-line
  195. | and paper documentation) difficult.  Efficiency studies have shown,
  196. | for at least certain types of documentation, that documents are
  197. | written faster with text processors than WYSIWYGS.
  198.  
  199. ------------------------------
  200. Subject: GN6. What is PostScript?
  201.  
  202. PostScript is a language for output devices.  It does for output
  203. devices what Unix does for processors, viz., it allows a common
  204. software interface despite differences in hardware platform.
  205. PostScript controllers exist for paper printers from 4 pages
  206. per minute up to 92 ppm, from 300 dots per inch to over 6000 dpi
  207. typesetter, and for film recorders, color printers and X Window
  208. terminals.  Without PostScript, every text formatter has to
  209. understand the idiosyncrasies of every vendor's hardware.
  210. See comp.lang.PostScript for more.  PostScript is a registered
  211. trademark of Adobe Corporation.
  212.  
  213. ------------------------------
  214. Subject: GN7. What is TeX?
  215.  
  216. TeX is a batch formatter similar to troff developed by Don Knuth
  217. at Stanford.  It is most popular in universities and is freely
  218. traded because of the lack of licensing restrictions. ArborText
  219. sells a commercial version for big and small (ie PC's) machines.
  220. There are various versions for PC-class machines. LaTeX (Leslie
  221. Lamports version of TeX) is a more friendly version of the same
  222. formatter. It does for TeX what macros does for troff.  See
  223. | comp.text.tex for TeX FAQs.
  224.  
  225. | [To be pedantically correct, there are really only very few versions
  226. | of TeX.  However, the relationship between the formatter and
  227. | the macro sets (e.g.: LaTeX) is considerably more blurry in TeX than
  228. | troff, and the macro package tends to be compiled-into different
  229. | instantiations of TeX.  This is truly part of the culture - TeXies
  230. | refer to "latex documents", troffers more generally refer to
  231. | "troff with mm macros".  It's confusing.]
  232.  
  233. Oh, and to save yourself sounding like an idiot, the "eX" in "TeX"
  234. | is pronounced so that it rhymes with "blecchh", not "sex" (the
  235. | X is a greek chi).
  236.  
  237. ------------------------------
  238. Subject: GN8. What are some popular Desktop Publishing packages?
  239.  
  240. Aldus practically invented Desktop publishing with "PageMaker".
  241. Ventura is the largest selling of the high-end PC packages.
  242.  
  243. WordPerfect and Word are lower in functionality but less
  244. | expensive and exist on both DOS and Macintosh.  These are
  245. | essentially word-processing packages rather than Desktop
  246. | Publishing.
  247.  
  248. See comp.text.desktop for more information. Interleaf
  249. and FrameMaker are workstation-based and are higher in
  250. price and functionality, and require more substantial
  251. machine resources, but give you more in return.  FrameMaker
  252. is now available for Windows 3.1, giving transportability
  253. between the DOS/Windows, Mac and UNIX world.  See comp.text.desktop,
  254. comp.text.frame and comp.text.interleaf.
  255.  
  256. ------------------------------
  257. Subject: GN9. Where can I read more?
  258.  
  259. Publish!, Business Publishing and Seybold Report are all
  260. excellent journals for keeping up to date.  There are
  261. books devoted to most of the major packages, too many
  262. to mention here.
  263.  
  264. Richard Rubinstein's book "Digital Typography", Addison-Wesley
  265. is apparently a readable book that goes into the details of
  266. composition systems, fonts and reproduction.
  267.  
  268. ------------------------------
  269. Subject: TR1. What is troff? Why are there so many questions about it?
  270.  
  271. Troff is one of the oldest text formatters in existence. Because
  272. it was distributed as part of the Unix operating system for
  273. many years, it is by default on several hundred thousand machines,
  274. far more than any other Unix text formatter.  It originated
  275. in AT&T Bell Laboratories in 1971 and its author was Joseph
  276. Ossanna.  Its legitimate father was a program called runoff,
  277. written at MIT in the 1960's.
  278.  
  279. Because there is no comp.text.troff, additional questions related
  280. to troff are shown below.  The remainder of the FAQ list is
  281. devoted to troff; bail out now if you are not interested.
  282.  
  283. ------------------------------
  284. Subject: TR2. How many varieties of troff are there? What are the differences?
  285.  
  286. The original Ossanna troff generates proprietary printer
  287. codes for the Wang C/A/T Phototypesetter; we'll call this
  288. "CAT Troff".  This version comes bundled in many systems,
  289. in particular, SunOS, most other Berkeley-derived systems,
  290. and is contained in the Xenix Text Processing package.
  291. The AT&T, BSD and Xenix variants all differ slightly, but not
  292. in any important ways.  CAT troff is useless without filters to
  293. convert the "CAT codes" to something else, especially since the
  294. C/A/T is as common as a California condor.  These filters are
  295. described later.
  296.  
  297. In 1981, Brian Kernighan of Bell Laboratories rewrote
  298. troff to generate a generic typesetting language.
  299. These troffs are called "ditroff" (for device-independent troff) and
  300. contain some additional features such as arbitrary line drawing, and
  301. more flexible font handling.  "Documenter's Workbench" (DWB) is
  302. a package containing ditroff and several other typesetting filters.
  303. The latest AT&T version is DWB 3.3, which sold as source code;
  304. most commercial binary variants (Elan, SoftQuad, Image Network, etc.)
  305. are based on DWB 2.0.  The Free Software Foundation
  306. distributes a re-engineered version of ditroff called groff.
  307.  
  308. If you have a troff and want to know which it is, type:
  309.     troff < /dev/null > /dev/null
  310. If it responds with "typesetter busy" or "No /dev/cat; use -t or -a",
  311. you have CAT troff, otherwise it's ditroff.  If you get an answer from:
  312.     dwbv
  313. you have the AT&T release 3.0 or later.  The differences are too
  314. numerous and subtle to document here, but the variants are about
  315. 95% compatible.  All are ASCII based, but DWB 3.3, Groff and
  316. | AIX 3.2's troff also accept ISO 8859-1 (aka ISO Latin 1), the
  317. | Western European character set and are 8 bit clean.  Any 8-bit
  318. | clean ditroff can be reconfigured to support alternate 8859-x
  319. | character sets.  AIX 3.2 ditroff also supports Kanji (multi-byte)
  320. | to a certain extent (as per IBM-932).
  321.  
  322. ------------------------------
  323. Subject: TR3. What are some of the filters for troff output?
  324.  
  325. Psroff is a suite of programs that allow you to translate CAT
  326. troff output or ditroff output format into PostScript, HP Laserjet
  327. (with incremental font downloading) or ditroff.  See description
  328. of hp2pbm below for driving printers other than these three.
  329.  
  330. Psroff works with all versions of CAT troff and ditroff, including
  331. groff.  Psroff allows you to change fonts on the fly (unlike any other
  332. CAT troff converter).  Psroff has been used to drive HP Laserjet and clone
  333. printers, PostScript (including Display PostScript and Sun Pageview),
  334. X windows previewers (such as xditview and xtroff), Ghostscript and
  335. many others.
  336.  
  337. Psroff comes with a large suite of utility programs that allow you to
  338. create, manipulate, display HP Laserjet and PostScript fonts, as well as
  339. construct width tables for these fonts from a variety of sources, including
  340. TeK PK format, HP SFP, and PostScript.  Psroff also comes with a number of
  341. other utilities, such as PostScript page reordering, Ascii-2-PostScript
  342. converters etc.  Psroff 3.0 is the only troff HP Laserjet filter fully
  343. supporting scalable fonts or HPGL/2 graphics on HP LJ III printers.
  344.  
  345. Psroff 3.0 is capable of performing some limited emulation of ditroff
  346. features (eg: line drawing) with CAT troff.
  347.  
  348. Psroff 3.0 is available from comp.sources.unix, volume 24.  Or from
  349. ftp.uunet.ca, in /distrib/chris_lewis/psroff (fully patched).  Patch
  350. level 16 is current.  The author is Chris Lewis, clewis@ferret.ocunix.on.ca.
  351.  
  352. Adobe Transcript is a commercial package similar to psroff, in that it
  353. contains filters for converting ditroff or CAT troff.  But only to
  354. PostScript.  It also contains filters for Ascii-2-PostScript, and
  355. is often installed as part of SunOS printcap filters.  Adobe Transcript
  356. contains a user interface script called "psroff" which should not be
  357. confused with the other psroff (but often is).  Information can be
  358. acquired on its availability by contacting Adobe.  Supports psfig
  359. with a little hacking (instructions in psfig release)
  360.  
  361. The groff package from the Free-Software-Foundation includes drivers
  362. for PostScript, DVI, X and constant-width printers, and the complete
  363. suite of troff preprocessors with the exception of grap.  It is available
  364. via anonymous ftp from several sources (it needs the FSF C++ or AT&T
  365. C++ 2.0 compilers to compile, but many binary versions are also available
  366. for FTP).  Supports character kerning (unlike CAT troff or DWB).  Does not
  367. contain an HP Laserjet driver.  A "dvi2lj" or psroff 3.0 can be used as a
  368. HP Laserjet driver for groff.  Groff has made some slight changes
  369. in the ditroff and width table formats, so use with non-groff drivers
  370. may need a little fiddling.  Written by James Clark.  The latest
  371. version is 1.06.  The latest version can always be ftped from
  372. prep.ai.mit.edu:pub/gnu.
  373.  
  374. ------------------------------
  375. Subject: TR4. What other troff printer drivers are there?
  376.  
  377.     - thack: CAT to PostScript.   c.s.u. archives.
  378.       For very casual use only.  Has no width tables, and can't,
  379.       for example, make tbl box corners line up.)  Available from
  380.       c.s.u archives.  Very simple to build/install.
  381.  
  382.     - tpscript: ditroff to PostScript (reasonably good filter)
  383.       c.s.u archives.  Does not support psfig.
  384.  
  385.     - jetroff: ditroff to HP Laserjet (no support for III scalable
  386.       fonts).  Commercial version (jetroff 2) no longer available.
  387.       Jetroff 1.0 (shareware) is available from c.s.m archives.
  388.       Author: Rick Richardson.  Would need some fiddling to work
  389.       with groff.
  390.  
  391.     - troff2lj: CAT troff to HP Laserjet.  Limited font handling
  392.       functionality - package discontinued by author when psroff
  393.       2.0 was released.
  394.  
  395.     - lcat/lroff: obsolete, should be junked, precursor to psroff.
  396.  
  397.     - hp2pbm: not a troff-2-something filter per-se.  However,
  398.       given a HP Laserjet driver, hp2pbm can convert HP Laserjet
  399.       codes to Jef Poskanzer's PBM format, which permits you
  400.       to use any of the many output formats supported by PBM.
  401.       Author: Chris Lewis and Klaus Schallhorn.  Hp2pbm and PBM+
  402.       are accessible from c.s.m archives.  Hp2pbm includes a
  403.       24 pin Epson driver and a built-in G3 FAX driver.
  404.     
  405.     - cat2desk is a version of lcat/lroff modified to work with
  406.       Deskjets.  Psroff will work with newer deskjets (especially
  407.       scalable font ones with PCL4), but not older ones (the font
  408.       format is different) which are PCL3.
  409.  
  410. ------------------------------
  411. Subject: TR5. How do I get my troff to drive my printer?
  412.  
  413.     a) If you already have CAT troff and you don't need pic or grap:
  414.  
  415.        Your best bet is psroff if you want to drive printers supported
  416.        by psroff (PostScript, HP Laserjet, ditroff filters, PBM+
  417.        supported devices (including Epson 24 pin, FAX).  Transcript
  418.        is an alternative for PostScript output (but doesn't
  419.        allow you to mount fonts, no drawing support).
  420.  
  421.     b) You already have ditroff:
  422.  
  423.        You may already have a driver for your printer.  Check.
  424.        If not, your best bets are jetroff, psroff, tpscript,
  425.        transcript.
  426.     
  427.     c) You don't have a troff or, you have CAT troff and you need pic
  428.        and grap:
  429.  
  430.        Get "a DWB", such as groff (no grap), DWB 3, or one of the
  431.        commercial variants.
  432.  
  433. ------------------------------
  434. Subject: TR6. None of the mentioned packages support *my* printer.  Help?
  435.  
  436. This area is not entered into lightly. Look for a commercial
  437. or free package that supports your device.  Failing that, try
  438. to acquire (legally!) the source code for another device and
  439. modify it.  The AT&T documentation "Troff User's Manual" has
  440. a Reference section that completely documents the ditroff
  441. language.  SunOS and Psroff 3.0 documentation contain
  442. descriptions of the CAT troff language.  Psroff 3.0 is
  443. designed for drop-in drivers, and may be the easiest to
  444. extend.  Coupled with hp2pbm, psroff3.0 can probably drive
  445. just about any kind of printer that supports raster graphics
  446. with relatively little trouble (see Epson 24 pin driver for
  447. guidance).
  448.  
  449. If you can get a PostScript driver and are running on current
  450. SunOS, you could consider developing a NeWSprint driver for
  451. your printer. NeWSprint is Sun's NeWS (PostScript language
  452. interpreter extended for driving displays; not the same thing
  453. as "Display PostScript"(tm).  This may be easier than developing
  454. a troff driver, since all NeWSprint really needs is the ability to
  455. send a bitmap to a printer. Source and developer's documentation are
  456. shipped standard with NeWSprint.
  457.  
  458. Thack is ideal for quick hacks with CAT troff for printers that
  459. have dynamically scalable fonts (aside from the fact that thack
  460. has no facilities for building width tables).
  461.  
  462. ------------------------------
  463. Subject: TR7. How to I embed PostScript in troff?
  464.  
  465. There are two methods:
  466.  
  467.     - including "absolute" PostScript.  PostScript that knows where
  468.       it goes on the page, and decides its own scaling.
  469.       All versions of ditroff support this one way or another.
  470.       CAT troff does as well when coupled with psroff.  This is
  471.       most often supported by some permutation of \! or \X'...'
  472.       directives.
  473.  
  474.     - including PostScript, automatically scaling and placing the
  475.       image.  This requires that the PostScript be EPS (so that the
  476.       size and origin of the image is accessible).  Groff and
  477.       DWB 3.3 have facilities for including EPS files and automatically
  478.       placing/scaling them on the page, including leaving space in the
  479. |      troff text for the image.  See if your documentation includes
  480. |      remarks about "PSPIC", "PS" or other similar macros.
  481.  
  482.       Psfig (c.s.u archives) is a troff preprocessor which will permit
  483.       this sort of automatic placement/scaling with an older version
  484.       of ditroff (such as DWB 2.1) as long as the backend printer driver
  485.       understands it.  Psroff 3.0 and Adobe Transcript support psfig with
  486.       ditroff, but only Psroff 3.0 will support psfig with CAT troff.
  487.  
  488. Caution: many PC and MAC graphics packages generate sloppy PostScript which
  489. cannot be gracefully included in other documents.
  490.  
  491. ------------------------------
  492. Subject: TR8. What are fonts?  How do I add fonts?
  493.     
  494. A font is a set of characters in an specific typeface.  Unlike
  495. TeX, troff does not consider the same typeface at different
  496. sizes to be different fonts.
  497.  
  498. You have to make the width tables, install them, and tell the
  499. troff filter how to emit/request the fonts.  The details differ
  500. from one package to another.  Check the documentation.
  501.  
  502. ------------------------------
  503. Subject: TR9. What are width tables?
  504.  
  505. Both CAT troff and ditroff need to know the width of each character
  506. that you use.  The widths of each character (along with some additional
  507. characteristics) are arranged in a file for each font.  There are
  508. basically five different width table formats:
  509.  
  510.     1) CAT troff: uses a binary table of 224 unsigned chars.
  511.     2) MIPS (and RISC/Ultrix) CAT troff uses an ASCII dump of (1)
  512.     3) DWB 2.x and several of the commercial variants use an ASCII
  513.        format that is compiled into a binary form by a special program
  514.        called "makedev".
  515.     4) DWB 3.x uses the ASCII format mentioned in (3) - doesn't need
  516.        to be compiled.
  517.     5) Groff uses the ASCII format mentioned in (4) with minor variations.
  518.  
  519. If the width tables are wrong, character spacing will look funny - up
  520. to and including overlapping characters, and broken right justification.
  521.  
  522. ------------------------------
  523. Subject: TR10. How do I make width tables?
  524.  
  525. Creating them is not hard.  Getting the actual metrics sometimes is.
  526.  
  527. The AT&T documentation "Troff User's Manual" describes the DWB width
  528. table format.  Your DWB may already have a manual page for it.
  529.  
  530. Psroff 3.0 contains documentation on DWB and CAT troff format width
  531. tables.
  532.  
  533. DWB 3.3, Psroff 3.0 and tpscript each have a utility for automatically
  534. creating width tables by sucking the data out of a PostScript device.
  535.  
  536. Psroff 3.0 and jetroff have utilities for creating width tables from
  537. HP laserjet fonts.
  538.  
  539. Psroff 3.0 can convert between any of the 5 width table formats.
  540.  
  541. Consult the documentation to find out where to put the files.
  542.  
  543. ------------------------------
  544. Subject: TR11. What are: pic, eqn, tbl, grap, refer?
  545.  
  546. These are the basic troff preprocessors shipped with DWB:
  547.  
  548.     - pic allows you to draw arbitrary line-drawing graphics in a
  549.       machine-independent fashion.
  550.     - eqn allows you to construct mathmatical equations.
  551.     - tbl provides a mechanism for specifying and displaying
  552.       automatically sized/configured tables 
  553.     - grap uses pic to construct graphs.
  554.     - refer provides a mechanism for searching for and formatting
  555.       bibligraphic references.
  556.  
  557. Neither pic nor grap are included with CAT troff, but eqn, tbl and
  558. frequently refer are present.  Groff does not at present support grap.
  559.  
  560. ------------------------------
  561. Subject: TR12. How do I preview my troff on my screen?
  562.  
  563.     a) X windows: xditview and xtroff (X11R5 contrib directory, xtroff
  564.        also from ftp.cs.toronto.edu) and gxditview (from groff) will
  565.        preview ditroff format (groff requires gxditview), including
  566.        psroff 3.0's ditroff output from CAT troff.
  567.     b) Display PostScript (ie: AIX 3 & DEC dpsexec, NeXT,
  568. |       Sun Pageview, Ultrascript, Ghostview plus GhostScript): any
  569.        PostScript generating troff.  (Theoretically at least.  May need
  570.        a teensy bit of PostScript hacking to get a reasonable pager
  571.        (psroff3.0 has this built in).  Pageview and Ultrascript have some
  572.        limitations so may not work with a specific PostScript
  573.        generator)
  574.     c) Others: You can probably find a PBM converter for it,
  575.        so use a Laserjet-generating troff configuration plus hp2pbm.
  576.        (eg: Sun rasters, 3b1 screens, EGA, VGA, GIFF, TIFF etc.)
  577.        I preview on X by generating PCL with psroff, converting
  578.        to PBM with hp2pbm, then display with pbm2Xd (part of hp2pbm)
  579.        and xwud (part of X windows).
  580.     d) Others: You may be able to find a DVI driver for it,
  581.        so use a DVI-generating troff configuration (namely,
  582.        groff's ditdvi) and use the appropriate dvi2<whatever> filter.
  583. |    e) AIX 3.2 has a good AIXwindows 1.2 and Motif1.1 based
  584. |       previewer called "xpreview".
  585.  
  586. ------------------------------
  587. Subject: TR13. I need makedev, but my DWB doesn't come with it.
  588.  
  589. A freeware version called "mkfont" is available from c.s.m, and
  590. is also included in Jetroff 1.0.  The Jetroff version is to be
  591. preferred because it's been extended a bit more to be an exact
  592. "makedev" replacement w.r.t. command line arguments.
  593.  
  594. ------------------------------
  595. Subject: TR14. Nroff/Troff on DOS machines
  596.  
  597. Arto Viitanen (av@ohdake.cs.uta.fi) has used djgpp (the MSDOS port of
  598. gcc 2.01) to compile groff-1.05 for MSDOS. The binaries are available
  599. at garbo.uwasa.fi in /pc/unix. The file is groff396.zip and it's 725 Kb.
  600. This apparently works quite well, and has been used to process
  601. manuscripts in excess of 400 pages.
  602.  
  603. | There's also a OS/2 port using the EMX environment (GCC 2.3.3), which
  604. | includes a DOS extender.  The latest version may support DOS directly.
  605.  
  606. Elan, Image Network, and SoftQuad have commercial versions of DWB
  607. for DOS machines.  They tend to be a bit pricey - in the $500-$1200
  608. range.
  609.  
  610. There are many freeware versions of nroff that have either already
  611. been ported, or should be easy to port to DOS.  For example, C
  612. implementations of Kernighan and Plauger's "Software Tools" "roff"
  613. (see Ozan Yigit's implementation available from comp.sources.unix).
  614. [roff isn't a complete implementation of nroff, depends on what
  615. you need.]
  616.  
  617. Related: Ghostscript can be used on DOS to preview the output of any
  618. PostScript-producing application, including groff.  If you do use
  619. GhostScript, make sure that you get the latest version with the good
  620. fonts.  GhostScript also contains CGA and VGA drivers for on-screen
  621. preview.
  622.  
  623. | Cawf2 a C port of Henry Spencer's Amazing Workable Formatter (originally
  624. | an awk program).  It apparently does a reasonable job with -ms and -man
  625. | macros.  The C version is by Vic Abell.  This should work on DOS and
  626. | other C-capable platforms.
  627.  
  628. I'd appreciate any other leads on DOS nroff/troffs.
  629.  
  630. ------------------------------
  631. Subject: TR15. What books can I get about DWB?
  632.  
  633.     Document Formatting and Typesetting on the UNIX System,
  634.     2 volumes, Nerain Gehani, Silicon Press, ISBN 0-9615336-2-5.
  635.     A very good general reference; covers troff, the preprocessors,
  636.     and most of the popular macro packages.
  637.  
  638.     Typesetting Tables on the UNIX System, Henry McGilton, Mary McNabb.
  639.     Trilithon Press, ISBN 0-9626289-0-5.  A very good, very complete
  640.     reference and tutorial on TBL.
  641.  
  642.     Unix Text Processing, Dale Dougherty & Tim O'Reilly, Hayden Books,
  643.     ISBN 0-672-46291-5.  A good discussion not just of troff (ms & mm),
  644.     tbl, eqn, and pic, but also vi and ex, sed, and awk.
  645.  
  646.     Troff typesetting for Unix Systems, Sandra L. Emerson & Karen Paulsell
  647.     (kjp@well?) Prentice-Hall, 0-13-930959-4.  This is a good book
  648.     for people wishing to write raw troff (as in rolling your own
  649.     macros)
  650.  
  651.     troff-Programmierung: proffessionelle Textverarbeitung und
  652.         Schriftsatz unter UNIX, Claus Schirmer, Hanser Verlag 1990,
  653.         ISBN 3-446-15649-6.  Reportedly a superb book on troff
  654.     programming.  Ie: a ms-like macro package is built in a
  655.     step-by-step way.  Don't know if there's non-German language
  656.     version.
  657.  
  658.     The UNIX Text Processing System, Kaare Christian, Wiley, 1987.
  659.     Is especially good on REFER, the best chapter on REFER
  660.     available.
  661.  
  662. |     Text processing and typesetting with UNIX, D.W. Barron and Mike Rees,
  663. |     Addison-Wesley, 1987.
  664. -- 
  665. Chris Lewis; clewis@ferret.ocunix.on.ca; Phone: Canada 613 832-0541
  666. Psroff 3.0 info: psroff-request@ferret.ocunix.on.ca
  667. Ferret list: ferret-request@ferret.ocunix.on.ca
  668.