home *** CD-ROM | disk | FTP | other *** search
/ ftp.pasteur.org/FAQ/ / ftp-pasteur-org-FAQ.zip / FAQ / text-faq < prev    next >
Internet Message Format  |  2002-10-30  |  38KB

  1. Message-ID: <textfaq_1035871201@ferret.ocunix.on.ca>
  2. Path: senator-bedfellow.mit.edu!bloom-beacon.mit.edu!nycmny1-snh1.gtei.net!washdc3-snf1!news.gtei.net!cyclone1.gnilink.net!chi1.webusenet.com!news.webusenet.com!snoopy.risq.qc.ca!torn!qcarhaaa.nortelnetworks.com!bcarh189.ca.nortel.com!zcarh46f.ca.nortel.com!ferret.ocunix.on.ca!not-for-mail
  3. Date: 29 Oct 2002 06:00:02 GMT
  4. Supersedes: <textfaq_1034744401@ferret.ocunix.on.ca>
  5. Expires: 25 Nov 2002 06:00:01 GMT
  6. Subject: comp.text Frequently Asked Questions
  7. From: clewis@ferret.ocunix.on.ca (Chris Lewis)
  8. Newsgroups: comp.text,news.answers,comp.answers
  9. Followup-To: poster
  10. Summary: Discussions on text processing in general, and troff in particular
  11. Approved: news-answers-request@mit.edu
  12. Keywords: typesetting troff groff ditroff wysiwyg sgml word desktop dwb
  13. Reply-To: textfaq@ferret.ocunix.on.ca (Text FAQ commentary reception)
  14. Organization: eh?
  15. Lines: 824
  16. Xref: senator-bedfellow.mit.edu comp.text:19277 news.answers:240454 comp.answers:51811
  17.  
  18. Archive-name: text-faq
  19. Last-Modified: Wed Jun  2 08:38:35 EDT 1999
  20.  
  21.         Frequently Asked Questions for comp.text
  22.                Chris Lewis
  23.  
  24.            Copyright 1991 - 1995.
  25.  
  26.         Redistribution for profit, or with altered
  27.         content/format prohibited without permission
  28.         of the author.  Redistribution via printed book
  29.         or CDROM expressly prohibited without consent of
  30.         the author.  Any other redistribution must
  31.         include this copyright notice and attribution.
  32.  
  33. (This list was originally compiled by Nils-Peter Nelson, with
  34. contributions from Jaap Akkerhuis, Dick Dunn, Nick Haines, Steve
  35. Harley, Harro Kremer, Chris Lewis, John Macdonald, Bob Morris,
  36. Nils-Peter Nelson, Chip Rosenthal.)
  37.  
  38. If you have comments or additions, please contact Chris Lewis,
  39. textfaq@ferret.ocunix.on.ca (note Reply-to).
  40.  
  41. Changes are marked with a "|" in left column.  Many newsreaders
  42. (e.g. rn, trn) allow you to search for them with "g^|".
  43.  
  44. Changes this issue: - New URLs for troff manual and tutorial
  45.  
  46. ------------------------------
  47. Subject: Questions discussed:
  48.  
  49. General interest:
  50.  
  51.   GN1. What is the difference between word processing, desktop
  52.          publishing, technical publishing, electronic publishing, etc?
  53.   GN2. Which do I need?
  54.   GN3. What is a markup language?
  55.   GN4. What is SGML? ODA?
  56.   GN5. What is WYSIWYG? Do I need it?
  57.   GN6. What is PostScript?
  58.   GN7. What is TeX?
  59.   GN8. What are some popular Desktop Publishing packages?
  60.   GN9. Where can I read more?
  61.   GN10. What is Lout?
  62.   GN11. What is Grif?
  63.   GN12. Where can I find indexing software?
  64.   GN13. What is RTF?
  65.  
  66. Specific to troff:
  67.  
  68.   TR1. What is troff? Why are there so many questions about it?
  69.   TR2. How many varieties of troff are there? What are the differences?
  70.   TR3. What are some of the filters for troff output?
  71.   TR4. What other troff printer drivers are there?
  72.   TR5. How do I get my troff to drive my printer?
  73.   TR6. None of the mentioned packages support *my* printer.  Help?
  74.   TR7. How do I embed PostScript in troff?
  75.   TR8. What are fonts?  How do I add fonts?
  76.   TR9. What are width tables?
  77.   TR10. How do I make width tables?
  78.   TR11. What are: pic, eqn, tbl, grap, refer?
  79.   TR12. How do I preview my troff on my screen?
  80.   TR13. I need makedev, but my DWB doesn't come with it.
  81.   TR14. How can I get nroff/troff for DOS?
  82.   TR15. What books can I get about DWB?
  83.   TR16. Complete DWB Description 
  84.  
  85. The discussions below are organized in digest-form, so you may
  86. scan ahead for "^Subject:" to move from one topic to the next
  87. (the ^G command does this in rn), and you may search for "^Subject: GN5"
  88. (for example) to jump to the discussion of a particular question.
  89. (The caret "^" before "Subject" is a convention of regular expressions
  90. that restricts the search to match only at the beginning of a line.)
  91.  
  92. ------------------------------
  93. Subject: GN1. What is the difference between word processing, desktop
  94.     publishing, technical publishing, electronic publishing, etc?
  95.  
  96. Electronic Publishing is an all-encompassing term that means
  97. using computers (instead of hot lead) to set type for
  98. documents.  Although publishing includes a sequence of
  99. processes right through distribution, EP tends to emphasize
  100. document composition through production of a single master copy.
  101.  
  102. It is helpful to picture a graph with "complexity" along
  103. the X axis and "length" along the Y axis.  Complexity
  104. varies from straight text to footnotes and indexing to
  105. tables to line drawings to gray-scale illustration to
  106. full color.  Length varies from 1 page to 10,000 or more
  107. (better make the Y axis logarithmic!)
  108.  
  109. Word processing dominates the lower left of the graph
  110. (business letters).  Desktop publishing dominates the lower
  111. right (advertising layout).  Host-based text formatters like
  112. troff, TeX and Scribe dominate the upper-left (phone book).
  113. Proprietary systems have traditionally dominated the upper
  114. right (Sears catalog, encyclopedia); these are being supplanted
  115. by hybrids consisting of pieces from the other segments.
  116.  
  117. The middle of the graph is fair ground for everyone but is
  118. increasingly the domain of Technical Publication systems like
  119. Interleaf and FrameMaker.
  120.  
  121. ------------------------------
  122. Subject: GN2. Which do I need?
  123.  
  124. Word processors and Desktop publishers are more than adequate
  125. for documents of tens of pages.  Because they are mostly
  126. limited to PCs and Macintosh, they may be impediments in
  127. producing long documents, which would have to be done in
  128. digestible chunks (say, a chapter at a time).  High-end systems
  129. are usually UNIX-based, which means computer power and document
  130. capacity are limited only by how much you want to spend.
  131.  
  132. ------------------------------
  133. Subject: GN3. What is a markup language?
  134.  
  135. All formatters need to distinguish the text to be printed
  136. from instructions about how to print; the latter is called
  137. markup.  Procedural markup tells the software what to do
  138. (space down, invoke a macro); generic markup describes the
  139. thing to be printed (heading, cross-reference, etc.)  Troff
  140. and TeX are examples of procedural markups; ODA and SGML
  141. prescribe rules for generic languages; and good macro packages
  142. for troff or TeX make them, more-or-less, generic markup
  143. languages.
  144.  
  145. Many of the word processing packages (such as Word or Wordstar)
  146. can only do procedural markup - the software is told by the
  147. user "how to display it", rather than "what this is" - and leaving
  148. the visual representation to preprogrammed rule sets (ie:
  149. macros) - see GN5.
  150.  
  151. ------------------------------
  152. Subject: GN4. What is SGML? ODA?
  153.  
  154. SGML is the Standard Generalized Markup Language.  SGML is defined
  155. in International Standard ISO 8879:1986.  SGML is a language for
  156. formally describing the structure and contents of documents.  SGML
  157. is also the syntax used by documents so described.
  158.  
  159. SGML is an important move in the direction of separating information
  160. from its presentation, e.g. making different presentations possible
  161. for the same information.  The better macro packages for TeX and
  162. troff attempt to do the same thing.  This is in contrast with WYSIWYG -
  163. see GN5.
  164.  
  165. SGML is more fully discussed in comp.text.sgml.
  166.  
  167. SGML is the name of a directory at the public FTP site ftp.ifi.uio.no
  168. where you can find a (draft) FAQ, a bibliography, and more information.
  169.  
  170. ODA: Office [Open] Document Architecture, takes a similar approach
  171. but stresses blind interchange.  ODA is defined in the multi-part
  172. standard ISO 8613:1988, in the CCITT T.410 series recommendations,
  173. and in ECMA standard 101.
  174.  
  175. ------------------------------
  176. Subject: GN5. What is WYSIWYG? Do I need it?
  177.  
  178. What-you-see-is-what-you-get: essential for advertising layout,
  179. but a useless time-waster for a phone book.  WYSIWYG is the
  180. opposite of SGML, in that in SGML you know what something
  181. is (say, a chapter heading) but you don't know what it looks
  182. like; in WYSIWYG you know what it looks like but you don't
  183. know what it is.  The obvious benefit of WYSIWYG is that the
  184. author is aware at all times of the final appearance of the
  185. document; the liability is that the vendor gets to choose the
  186. internal representation of the document, and may not tell you
  187. what it is.
  188.  
  189. The best trade-off would be a WYSIWYG system with a well-documented,
  190. usable markup language.  There is a system called "GRIF" - see
  191. GN11.  The "doc" program in Interviews is a freeware UNIX WYSIWYG
  192. wordprocessor.
  193.  
  194. We should caution that few of the self-proclaimed WYSIWYG systems
  195. actually show the exact same thing on screen as you get on a printer:
  196. What You See Is Sort Of Like What You Get.  When 300 dpi, 17 inch
  197. terminals are common true WYSIWYG will be practical.
  198.  
  199. Being aware of the final appearance of a document is not universally
  200. accepted as a "good thing", Robertson Davies has suggested that the
  201. WYSIWYG approach to writing contributes to "blather" (and he should
  202. know as a past master ;-), while others have argued that the final
  203. appearance can't always be known.  WYSIWYG processors tend to
  204. encourage an approach that makes re-use and re-packaging of
  205. documents for alternate methods of presentation (eg: on-line
  206. and paper documentation) difficult.  Efficiency studies have shown,
  207. for at least certain types of documentation, that documents are
  208. written faster with text processors than WYSIWYGS.
  209.  
  210. ------------------------------
  211. Subject: GN6. What is PostScript?
  212.  
  213. PostScript is a language for output devices.  It does for output
  214. devices what Unix does for processors, viz., it allows a common
  215. software interface despite differences in hardware platform.
  216. PostScript controllers exist for paper printers from 4 pages
  217. per minute up to 92 ppm, from 300 dots per inch to over 6000 dpi
  218. typesetter, and for film recorders, color printers and X Window
  219. terminals.  Without PostScript, every text formatter has to
  220. understand the idiosyncrasies of every vendor's hardware.
  221. See comp.lang.PostScript for more.  PostScript is a registered
  222. trademark of Adobe Corporation.
  223.  
  224. ------------------------------
  225. Subject: GN7. What is TeX?
  226.  
  227. TeX is a batch formatter similar to troff developed by Don Knuth
  228. at Stanford.  It is most popular in universities and is freely
  229. traded because of the lack of licensing restrictions. ArborText
  230. sells a commercial version for big and small (ie PCs) machines.
  231. There are various versions for PC-class machines. LaTeX (Leslie
  232. Lamports version of TeX) is a more friendly version of the same
  233. formatter. It does for TeX what macros does for troff.  See
  234. comp.text.tex for TeX FAQs.
  235.  
  236. [To be pedantically correct, there are really only very few versions
  237. of TeX.  However, the relationship between the formatter and
  238. the macro sets (e.g.: LaTeX) is considerably more blurry in TeX than
  239. troff, and the macro package tends to be compiled-into different
  240. instantiations of TeX.  This is truly part of the culture - TeXies
  241. refer to "latex documents", troffers more generally refer to
  242. "troff with mm macros".  It's confusing.]
  243.  
  244. Oh, and to save yourself sounding like an idiot, the "eX" in "TeX"
  245. is pronounced so that it rhymes with "blecchh", not "sex" (the
  246. X is a greek chi).
  247.  
  248. ------------------------------
  249. Subject: GN8. What are some popular Desktop Publishing packages?
  250.  
  251. Aldus practically invented Desktop publishing with "PageMaker".
  252.  
  253. WordPerfect and Word are lower in functionality but less
  254. expensive and exist on both DOS and Macintosh (WordPerfect
  255. on UNIX too).  These are essentially word-processing packages
  256. rather than Desktop Publishing.  WordPerfect and Word are
  257. by far the most popular with millions of copies sold.
  258.  
  259. See comp.text.desktop for more information. Interleaf
  260. and FrameMaker are workstation-based and are higher in
  261. price and functionality, and require more substantial
  262. machine resources, but give you more in return.  FrameMaker
  263. is now available for Windows 3.1, giving transportability
  264. between the DOS/Windows, Mac and UNIX world.  See comp.text.desktop,
  265. comp.text.frame and comp.text.interleaf.
  266.  
  267. ------------------------------
  268. Subject: GN9. Where can I read more?
  269.  
  270. Publish!, Business Publishing and Seybold Report are all
  271. excellent journals for keeping up to date.  There are
  272. books devoted to most of the major packages, too many
  273. to mention here.
  274.  
  275. Richard Rubinstein's book "Digital Typography", Addison-Wesley
  276. is apparently a readable book that goes into the details of
  277. composition systems, fonts and reproduction.
  278.  
  279. -------------------------------
  280. Subject: GN10. What is Lout?
  281.  
  282. Lout is a new batch formatter drawing a fair bit from TeX and troff.
  283. Its main strengths are a more powerful and much easier to use "macro"
  284. programming language, and is reputed to be as "complete" as TeX or
  285. the troff formatting suite.  It only generates PostScript and ascii.
  286.  
  287. Lout was written by Jeff Kingston (jeff@cs.su.oz.au) and
  288. is available via anon FTP from ftp.cs.su.oz.au directory "jeff".
  289.  
  290. -----------------------------
  291. Subject: GN11. What is GRIF?
  292.  
  293. GRIF S.A. has been commercializing its WYSIWYG SGML editor since 1991.
  294. Grif SGML Editor is totally compliant with the SGML standard (ISO 8879)
  295. and offers full WYSIWYG authoring of SGML documents.  It is currently
  296. available on both Unix-Motif and PC-Windows platforms and forms part of
  297. GRIF S.A.'s complete range of SGML products.  For more information,
  298. contact:
  299.  
  300. Stuart Culshaw
  301. Marketing Assistant
  302. GRIF S.A.
  303. Immeuble "Le Florestan"
  304. 2 Boulevard Vauban - BP 266
  305. 78053 ST QUENTIN EN YVELINES
  306. FRANCE
  307. Tel. : +33 (1) 30.12.14.30
  308. Fax  : +33 (1) 30.64.06.46
  309. E-mail: culshaw@grif.fr
  310.  
  311. -----------------------------
  312. Subject: GN12. Where can I find indexing software?
  313.  
  314. Liam Quin <lee@sq.sq.com> is one of the net "experts" in this field,
  315. and suggests the following:
  316.  
  317. SMART is from cornell, and is a test-bed for the research done by
  318. Gerald Salton's group; it's also quite widely used by other researchers.
  319.  
  320. qx (or gx?) is an Australian system that went by on the net recently.
  321.  
  322. WAIS is a client-server system.
  323.  
  324. lq-text is my own system.
  325.  
  326. You can find all of the above (except probably qg/gx since I haven't given
  327. a good enough name) with archie; lq-text 1.13 is at ftp.cs.toronto.edu.
  328.  
  329. An _excellent_ book to look at or get or run out and buy is
  330.  
  331.     %A William B. Frakes
  332.     %A Baeza-Yates, Ricardo
  333.     %T Information Retrieval: Data Structures and Algorithms
  334.     %I Prentice-Hall
  335.     %D 1992
  336.     %O An excellent introduction to the issues in implementing information
  337.     retrieval systems.  Examples in C for Unix, available by ftp from
  338.     ftp.vt.edu in pub/reuse/ir-code.
  339.     ISBN: 0-13-463837-9
  340.  
  341. ------------------------------
  342. Subject: GN13. What is RTF?
  343.  
  344. RTF stands for Rich Text Format, and is a document interchange format.
  345. This format has become somewhat popular, and is supported by several
  346. text handling products.
  347.  
  348. Sources:
  349.  
  350. The RTF spec can be found at <ftp://ftp.primate.wisc.edu/pub/RTF> A
  351. hard copy of the spec can also be obtained from Microsoft Product
  352. Support (206) 454-2030.
  353.  
  354. World Wide Web using URL http://www.primate.wisc.edu/.  Look under
  355. "Primate Center Software Archives".
  356.  
  357. The a series of converter tools is available as a compressed tar
  358. |archive <ftp://ftp.primate.wisc.edu/pub/RTF/RTF-<version>.tar.Z> containing
  359. source and documentation.
  360.  
  361. ------------------------------
  362. Subject: TR1. What is troff? Why are there so many questions about it?
  363.  
  364. Troff is one of the oldest text formatters in existence. Because
  365. it was distributed as part of the Unix operating system for
  366. many years, it is by default on several hundred thousand machines,
  367. far more than any other Unix text formatter.  It originated
  368. in AT&T Bell Laboratories in 1971 and its author was Joseph
  369. Ossanna.  Its legitimate father was a program called runoff,
  370. written at MIT in the 1960's.
  371.  
  372. Because there is no comp.text.troff, additional questions related
  373. to troff are shown below.  The remainder of the FAQ list is
  374. devoted to troff; bail out now if you are not interested.
  375.  
  376. ------------------------------
  377. Subject: TR2. How many varieties of troff are there? What are the differences?
  378.  
  379. The original Ossanna troff generates proprietary printer codes for the
  380. Wang C/A/T Phototypesetter; we'll call this "CAT Troff".  This version
  381. comes bundled in many systems, in particular, SunOS, most other
  382. Berkeley-derived systems, some SVR4s and is contained in the Xenix Text
  383. Processing package.  The AT&T, BSD and Xenix variants all differ
  384. slightly, but not in any important ways.  CAT troff is useless without
  385. filters to convert the "CAT codes" to something else, especially since
  386. the C/A/T is as common as a California condor.  These filters are
  387. described later.
  388.  
  389. In 1981, Brian Kernighan of Bell Laboratories rewrote troff to generate
  390. a generic typesetting language.  These troffs are called "ditroff" (for
  391. device-independent troff) and contain some additional features such as
  392. arbitrary line drawing, and more flexible font handling.  "Documenter's
  393. Workbench" (DWB) is a package containing ditroff and several other
  394. typesetting filters.  The latest AT&T version is DWB 3.4.1, which sold as
  395. source code; most commercial binary variants (Elan, SoftQuad, Image
  396. Network, etc.) are based on DWB 2.0.  The Free Software Foundation
  397. distributes a re-engineered version of ditroff called groff.
  398.  
  399. If you have a troff and want to know which it is, type:
  400.     troff < /dev/null > /dev/null
  401. If it responds with "typesetter busy" or "No /dev/cat; use -t or -a",
  402. you have CAT troff, otherwise it's ditroff.  If you get an answer from:
  403.     dwbv
  404. you have the AT&T release 3.0 or later.  The differences are too
  405. numerous and subtle to document here, but the variants are about
  406. 95% compatible.  All are ASCII based, but DWB 3.4, Groff and
  407. AIX 3.2's troff also accept ISO 8859-1 (aka ISO Latin 1), the
  408. Western European character set and are 8 bit clean.  Any 8-bit
  409. clean ditroff can be reconfigured to support alternate 8859-x
  410. character sets.  AIX 3.2 ditroff also supports Kanji (multi-byte)
  411. to a certain extent (as per IBM-932).
  412.  
  413. See TR16 for more on DWB.
  414.  
  415. ------------------------------
  416. Subject: TR3. What are some of the filters for troff output?
  417.  
  418. Psroff is a suite of programs that allow you to translate CAT troff
  419. output or ditroff output format into PostScript, HP Laserjet (with
  420. incremental font downloading) or ditroff.  See description of hp2pbm
  421. below for driving printers other than these three.
  422.  
  423. Psroff works with all versions of CAT troff and ditroff, including
  424. groff.  Psroff allows you to change fonts on the fly (unlike any other
  425. CAT troff converter).  Psroff has been used to drive HP Laserjet and
  426. clone printers, PostScript (including Display PostScript and Sun
  427. Pageview), X windows previewers (such as xditview and xtroff),
  428. Ghostscript and many others.
  429.  
  430. Psroff comes with a large suite of utility programs that allow you to
  431. create, manipulate, display HP Laserjet and PostScript fonts, as well
  432. as construct width tables for these fonts from a variety of sources,
  433. including TeK PK format, HP SFP, and PostScript.  Psroff also comes
  434. with a number of other utilities, such as PostScript page reordering,
  435. Ascii-2-PostScript converters etc.  Psroff 3.0 is the only troff HP
  436. Laserjet filter fully supporting scalable fonts or HPGL/2 graphics on
  437. HP LJ III printers.
  438.  
  439. Psroff 3.0 is capable of performing some limited emulation of ditroff
  440. features (eg: line drawing) with CAT troff.
  441.  
  442. Psroff 3.0 is available from comp.sources.unix, volume 24.  Or from
  443. ftp.uunet.ca, in /distrib/chris_lewis/psroff3.0pl17 (fully patched).
  444. Patch level 17 is current.  The author is Chris Lewis,
  445. clewis@ferret.ocunix.on.ca.
  446.  
  447. Adobe Transcript is a commercial package similar to psroff, in that it
  448. contains filters for converting ditroff or CAT troff.  But only to
  449. PostScript.  It also contains filters for Ascii-2-PostScript, and is
  450. often installed as part of SunOS printcap filters.  Adobe Transcript
  451. contains a user interface script called "psroff" which should not be
  452. confused with the other psroff (but often is).  Information can be
  453. acquired on its availability by contacting the Qualix group at
  454. 1-800-245-UNIX, or info@qualix.com.  Supports psfig with a little
  455. hacking (instructions in psfig release).
  456.  
  457. The groff package from the Free-Software-Foundation includes drivers
  458. for PostScript, DVI, X and constant-width printers, and the complete
  459. suite of troff preprocessors with the exception of grap.  It is
  460. available via anonymous ftp from several sources (it needs the FSF C++
  461. or AT&T C++ 2.0 compilers to compile, but many binary versions are also
  462. available for FTP).  Supports character kerning (unlike CAT troff or
  463. DWB).  Does not contain an HP Laserjet driver.  A "dvi2lj" or psroff
  464. 3.0 can be used as a HP Laserjet driver for groff.  Groff has made some
  465. slight changes in the ditroff and width table formats, so use with
  466. non-groff drivers may need a little fiddling.  Written by James Clark.
  467. The latest version can always be ftped from prep.ai.mit.edu:pub/gnu.
  468.  
  469. James has just updated groff to support HP Laserjet 4 printers in
  470. PCL5 (as opposed to PostScript) mode utilizing the scalable fonts
  471. built into the printer.  This apparently also works on Laserjet 3
  472. printers, with some minor deficiencies in graphics support, and not as
  473. many fonts.  Will not work on HP Laserjet II printers, and apparently
  474. cannot work with non-scalable or downloaded fonts.  The LJ4 software
  475. can be found in: ftp.jclark.com:/pub/test/groff-lj4.tar.gz.
  476.  
  477. It's worth noting that there is a major difference between driving
  478. HP Laserjet 3 or 4 (PCL5) and driving HP Laserjet 2 (PCL4).   PCL5
  479. has scalable fonts, and an implementation of HPGL/2 - HP's graphics
  480. language.  Driving PCL5 is fairly easy.  PCL4 doesn't support scalable
  481. fonts or graphics, and they have to be simulated by downloads and
  482. raster graphics.  A full feature driver for PCL4 will also work on PCL5,
  483. whereas something taking advantage of PCL5 won't work on PCL4.  Groff
  484. only supports PCL5.  Psroff has full function drivers for both PCL4
  485. and PCL5.
  486.  
  487. ------------------------------
  488. Subject: TR4. What other troff printer drivers are there?
  489.  
  490.     - thack: CAT to PostScript.   comp.sources.unix archives.
  491.       For very casual use only.  Has no width tables, and can't,
  492.       for example, make tbl box corners line up.)  Available from
  493.       comp.sources.unix archives.  Very simple to build/install.
  494.  
  495.     - tpscript: ditroff to PostScript (reasonably good filter)
  496.       comp.sources.unix archives.  Does not support psfig.
  497.  
  498.     - jetroff: ditroff to HP Laserjet (no support for III scalable
  499.       fonts).  Commercial version (jetroff 2) no longer available.
  500.       Jetroff 1.0 (shareware) is available from c.s.m archives.
  501.       Author: Rick Richardson.  Would need some fiddling to work
  502.       with groff.
  503.  
  504.     - troff2lj: CAT troff to HP Laserjet.  Limited font handling
  505.       functionality - package discontinued by author when psroff
  506.       2.0 was released.
  507.  
  508.     - lcat/lroff: obsolete, should be junked, precursor to psroff.
  509.  
  510.     - hp2pbm: not a troff-2-something filter per-se.  However,
  511.       given a HP Laserjet driver, hp2pbm can convert HP Laserjet 2
  512.       (PCL4) codes to Jef Poskanzer's PBM format, which permits you to
  513. |      use any of the many output formats supported by PBM, as well as
  514. |      directly to several other formats (PCL4, G3, X windows dump
  515.       etc).  Author: Chris Lewis and Klaus Schallhorn.  Hp2pbm and PBM+
  516.       are accessible from c.s.m archives.  Hp2pbm includes a 24 pin
  517.       Epson driver and a built-in G3 FAX driver.  Will not work with
  518.       groff's PCL5 driver.
  519.  
  520. |      Hp2pbm coupled with Gert Doering's mgetty+sendfax makes a _very_
  521. |      nice bidirectional data (eg: UUCP) and FAX modem capability for
  522. |      UNIX.
  523.     
  524. |    - GhostScript: also not a troff-2-something filter.  It is a
  525. |      PostScript to raster converter.  Coupled with a troff/filter
  526. |      that generates PostScript, GhostScript can usually be coaxed
  527. |      into generating GIFs, PBMs, G3, PCL4, and several other
  528. |      graphics formats.  This is more flexible than hp2pbm, will
  529. |      often do a sligthly better job, but requires a lot more disk space
  530. |      and is considerably slower.  If speed or space is a concern,
  531. |      hp2pbm is a better choice.
  532.     
  533.     - cat2desk is a version of lcat/lroff modified to work with
  534.       Deskjets.  Psroff will work with newer deskjets (especially
  535.       scalable font ones with PCL4), but not older ones (the font
  536.       format is different) which are PCL3.
  537.  
  538. Deskjets generally:
  539.  
  540.       For printing on deskjets that do not support SFP fonts, your best
  541.       solution is either to use troff & psroff driving hp2pbm (with
  542.       pbm2lj from hp2pbm as the final stage), or groff emitting
  543.       PostScript and letting GhostScript do the conversion.  Either one
  544.       of these combinations will give you full functionality up to and
  545.       including graphics.  The former is easier to install and runs much
  546.       faster (see me for pbm2lj tweak).  The latter may have the edge on
  547.       font quality.
  548.  
  549. ------------------------------
  550. Subject: TR5. How do I get my troff to drive my printer?
  551.  
  552.     a) If you already have CAT troff and you don't need pic or grap:
  553.  
  554.        Your simplest bet is psroff if you want to drive printers supported
  555.        by psroff (PostScript, HP Laserjet, ditroff filters, PBM+
  556.        supported devices (including Epson 24 pin, FAX).  Transcript
  557.        is an alternative for PostScript output (but doesn't
  558.        allow you to mount fonts, no drawing support).
  559.  
  560.     b) You already have ditroff:
  561.  
  562.        You may already have a driver for your printer.  Check.
  563.        If not, your best bets are jetroff, psroff, tpscript,
  564.        transcript.
  565.     
  566.     c) You don't have a troff or, you have CAT troff and you need pic
  567.        and grap:
  568.  
  569.        Get "a DWB", such as groff (no grap), DWB 3, or one of the
  570.        commercial variants.
  571.  
  572. ------------------------------
  573. Subject: TR6. None of the mentioned packages support *my* printer.  Help?
  574.  
  575. This area is not entered into lightly. Look for a commercial or free
  576. package that supports your device.  Failing that, try to acquire
  577. (legally!) the source code for another device and modify it.  The AT&T
  578. documentation "Troff User's Manual" has a Reference section that
  579. completely documents the ditroff language.  SunOS and Psroff 3.0
  580. documentation contain descriptions of the CAT troff language.  Psroff
  581. 3.0 is designed for drop-in drivers, and may be the easiest to extend.
  582. Coupled with hp2pbm, psroff3.0 can probably drive just about any kind
  583. of printer that supports raster graphics with relatively little trouble
  584. (see Epson 24 pin driver for guidance).
  585.  
  586. If you can get a PostScript driver and are running on current SunOS,
  587. you could consider developing a NeWSprint driver for your printer.
  588. NeWSprint is Sun's NeWS (PostScript language interpreter extended for
  589. driving displays; not the same thing as "Display PostScript"(tm).  This
  590. may be easier than developing a troff driver, since all NeWSprint
  591. really needs is the ability to send a bitmap to a printer. Source and
  592. developer's documentation are shipped standard with NeWSprint.
  593.  
  594. Thack is ideal for quick hacks with CAT troff for printers that have
  595. dynamically scalable fonts (aside from the fact that thack has no
  596. facilities for building width tables).
  597.  
  598. ------------------------------
  599. Subject: TR7. How do I embed PostScript in troff?
  600.  
  601. There are two methods:
  602.  
  603.     - including "absolute" PostScript.  PostScript that knows where
  604.       it goes on the page, and decides its own scaling.
  605.       All versions of ditroff support this one way or another.
  606.       CAT troff does as well when coupled with psroff.  This is
  607.       most often supported by some permutation of \! or \X'...'
  608.       directives.
  609.  
  610.     - including PostScript, automatically scaling and placing the
  611.       image.  This requires that the PostScript be EPS (so that the
  612.       size and origin of the image is accessible).  Groff and
  613.       DWB 3.3 have facilities for including EPS files and automatically
  614.       placing/scaling them on the page, including leaving space in the
  615.       troff text for the image.  See if your documentation includes
  616.       remarks about "PSPIC", "PS" or other similar macros.
  617.  
  618.       Psfig (comp.sources.unix archives) is a troff preprocessor which
  619.       will permit this sort of automatic placement/scaling with an
  620.       older version of ditroff (such as DWB 2.1) as long as the backend
  621.       printer driver understands it.  Psroff 3.0 and Adobe Transcript
  622.       support psfig with ditroff, but only Psroff 3.0 will support
  623.       psfig with CAT troff.
  624.  
  625. Caution: many PC and MAC graphics packages generate sloppy PostScript which
  626. cannot be gracefully included in other documents.
  627.  
  628. ------------------------------
  629. Subject: TR8. What are fonts?  How do I add fonts?
  630.     
  631. A font is a set of characters in an specific typeface.  Unlike
  632. TeX, troff does not consider the same typeface at different
  633. sizes to be different fonts.
  634.  
  635. You have to make the width tables, install them, and tell the
  636. troff filter how to emit/request the fonts.  The details differ
  637. from one package to another.  Check the documentation.
  638.  
  639. ------------------------------
  640. Subject: TR9. What are width tables?
  641.  
  642. Both CAT troff and ditroff need to know the width of each character
  643. that you use.  The widths of each character (along with some additional
  644. characteristics) are arranged in a file for each font.  There are
  645. basically five different width table formats:
  646.  
  647.     1) CAT troff: uses a binary table of 224 unsigned chars.
  648.     2) MIPS (and RISC/Ultrix) CAT troff uses an ASCII dump of (1)
  649.     3) DWB 2.x and several of the commercial variants use an ASCII
  650.        format that is compiled into a binary form by a special program
  651.        called "makedev".
  652.     4) DWB 3.x uses the ASCII format mentioned in (3) - doesn't need
  653.        to be compiled.
  654.     5) Groff uses the ASCII format mentioned in (4) with minor variations.
  655.  
  656. If the width tables are wrong, character spacing will look funny - up
  657. to and including overlapping characters, and broken right justification.
  658.  
  659. ------------------------------
  660. Subject: TR10. How do I make width tables?
  661.  
  662. Creating them is not hard.  Getting the actual metrics sometimes is.
  663.  
  664. The AT&T documentation "Troff User's Manual" describes the DWB width
  665. table format.  Your DWB may already have a manual page for it.
  666.  
  667. Psroff 3.0 contains documentation on DWB and CAT troff format width
  668. tables.
  669.  
  670. DWB 3.3, Psroff 3.0 and tpscript each have a utility for automatically
  671. creating width tables by sucking the data out of a PostScript device.
  672.  
  673. Psroff 3.0 and jetroff have utilities for creating width tables from
  674. HP laserjet fonts.
  675.  
  676. Psroff 3.0 can convert between any of the 5 width table formats.
  677.  
  678. Groff contains a package for generating groff width tables from HP's
  679. scaleable font metrics format.
  680.  
  681. Consult the documentation to find out where to put the files.
  682.  
  683. ------------------------------
  684. Subject: TR11. What are: pic, eqn, tbl, grap, refer?
  685.  
  686. These are the basic troff preprocessors shipped with DWB:
  687.  
  688.     - pic allows you to draw arbitrary line-drawing graphics in a
  689.       machine-independent fashion.
  690.     - eqn allows you to construct mathmatical equations.
  691.     - tbl provides a mechanism for specifying and displaying
  692.       automatically sized/configured tables 
  693.     - grap uses pic to construct graphs.
  694.     - refer provides a mechanism for searching for and formatting
  695.       bibligraphic references.
  696.  
  697. Neither pic nor grap are included with CAT troff, but eqn, tbl and
  698. frequently refer are present.  Groff does not at present support grap.
  699.  
  700. ------------------------------
  701. Subject: TR12. How do I preview my troff on my screen?
  702.  
  703.     a) X windows: xditview and xtroff (X11R5 contrib directory, xtroff
  704.        also from ftp.cs.toronto.edu) and gxditview (from groff) will
  705.        preview ditroff format (groff requires gxditview), including
  706.        psroff 3.0's ditroff output from CAT troff.
  707.     b) Display PostScript (ie: AIX 3 & DEC dpsexec, NeXT,
  708.        Sun Pageview, Ultrascript, Ghostview plus GhostScript): any
  709.        PostScript generating troff.  (Theoretically at least.  May need
  710.        a teensy bit of PostScript hacking to get a reasonable pager
  711.        (psroff3.0 has this built in).  Pageview and Ultrascript have some
  712.        limitations so may not work with a specific PostScript
  713.        generator).  Pageview gets very confused about page boundaries
  714.        unless the PostScript is DSC compliant and has "%%Page:" comments
  715.        in it.
  716.     c) Others: You can probably find a PBM converter for it,
  717.        so use a Laserjet-generating troff configuration plus hp2pbm.
  718.        (eg: Sun rasters, 3b1 screens, EGA, VGA, GIFF, TIFF etc.)
  719.        I preview on X by generating PCL with psroff, converting
  720.        to PBM with hp2pbm, then display with pbm2Xd (part of hp2pbm)
  721.        and xwud (part of X windows).
  722.     d) Others: You may be able to find a DVI driver for it,
  723.        so use a DVI-generating troff configuration (namely,
  724.        groff's ditdvi) and use the appropriate dvi2<whatever> filter.
  725.     e) AIX 3.2 has a good AIXwindows 1.2 and Motif1.1 based
  726.        previewer called "xpreview".
  727.  
  728. ------------------------------
  729. Subject: TR13. I need makedev, but my DWB doesn't come with it.
  730.  
  731. A freeware version called "mkfont" is available from c.s.m, and
  732. is also included in Jetroff 1.0.  The Jetroff version is to be
  733. preferred because it's been extended a bit more to be an exact
  734. "makedev" replacement w.r.t. command line arguments.
  735.  
  736. ------------------------------
  737. Subject: TR14. Nroff/Troff on DOS machines
  738.  
  739. Arto Viitanen (av@ohdake.cs.uta.fi) has used djgpp (the MSDOS port of
  740. gcc 2.01) to compile groff-1.05 for MSDOS. The binaries are available
  741. at garbo.uwasa.fi in /pc/unix. The file is groff396.zip and it's 725 Kb.
  742. A port of version 1.07 by Mauro Condarelli is available from omnigate.
  743. clarkson.edu in pub/msdos/djgpp/pub.  This port includes the groff
  744. driver and also the dvi device, both of which were missing in the 1.05
  745. port.  Both ports work well except for gpic which does not seem to work on
  746. systems lacking a math coprocessor.
  747.  
  748. There's also a OS/2 port using the EMX environment (GCC 2.3.3), which
  749. includes a DOS extender.  The latest version may support DOS directly.
  750.  
  751. Elan, Image Network, and SoftQuad have commercial versions of DWB
  752. for DOS machines.  They tend to be a bit pricey - in the $500-$1200
  753. range.
  754.  
  755. There are many freeware versions of nroff that have either already
  756. been ported, or should be easy to port to DOS.  For example, C
  757. implementations of Kernighan and Plauger's "Software Tools" "roff"
  758. (see Ozan Yigit's implementation available from comp.sources.unix).
  759. [roff isn't a complete implementation of nroff, depends on what
  760. you need.]
  761.  
  762. Related: Ghostscript can be used on DOS to preview the output of any
  763. PostScript-producing application, including groff.  If you do use
  764. GhostScript, make sure that you get the latest version with the good
  765. fonts.  GhostScript also contains CGA and VGA drivers for on-screen
  766. preview.
  767.  
  768. Cawf2 a C port of Henry Spencer's Amazing Workable Formatter (originally
  769. an awk program).  It apparently does a reasonable job with -ms and -man
  770. macros.  The C version is by Vic Abell and is available from ftp.cc.
  771. purdue.edu in pucc/cawf.  It works on MSDOS and most or all UNIX systems.
  772.  
  773. I'd appreciate any other leads on DOS nroff/troffs.
  774.  
  775. ------------------------------
  776. Subject: TR15. What books can I get about DWB?
  777.  
  778. |Many of these books may be out of print now, so you may have to hunt
  779. |through Computer Science Libraries and UNIX programmer's secret caches.
  780.  
  781.     Troff User's Manual, by Ossanna and Kernighan, is available for
  782. |    anonymous ftp as netlib.att.com:/netlib/att/cs/cstr/54.ps.Z.
  783. |    The above URL may no longer be in existance, but apparently,
  784. |    it's now available at http://www.kohala.com/~rstevens/troff/cstr54.ps
  785. |    Also available is Kernighan's raw troff tutorial at:
  786. |    http://www.kohala.com/~rstevens/troff/v7man/trofftut/trofftut.ps
  787.  
  788.     Document Formatting and Typesetting on the UNIX System,
  789.     2 volumes, Nerain Gehani, Silicon Press, ISBN 0-9615336-2-5.
  790.     A very good general reference; covers troff, the preprocessors,
  791.     and most of the popular macro packages.
  792.  
  793.     Typesetting Tables on the UNIX System, Henry McGilton, Mary McNabb.
  794.     Trilithon Press, ISBN 0-9626289-0-5.  A very good, very complete
  795.     reference and tutorial on TBL.
  796.  
  797.     Unix Text Processing, Dale Dougherty & Tim O'Reilly, Hayden Books,
  798.     ISBN 0-672-46291-5.  A good discussion not just of troff (ms & mm),
  799.     tbl, eqn, and pic, but also vi and ex, sed, and awk.
  800.  
  801.     Troff typesetting for Unix Systems, Sandra L. Emerson & Karen Paulsell
  802.     (kjp@well?) Prentice-Hall, 0-13-930959-4.  This is a good book
  803.     for people wishing to write raw troff (as in rolling your own
  804.     macros)
  805.  
  806.     troff-Programmierung: proffessionelle Textverarbeitung und
  807.         Schriftsatz unter UNIX, Claus Schirmer, Hanser Verlag 1990,
  808.         ISBN 3-446-15649-6.  Reportedly a superb book on troff
  809.     programming.  Ie: a ms-like macro package is built in a
  810.     step-by-step way.  Don't know if there's non-German language
  811.     version.
  812.  
  813.     The UNIX Text Processing System, Kaare Christian, Wiley, 1987.
  814.     Is especially good on REFER, the best chapter on REFER
  815.     available.  [This book now appears to be out of print.]
  816.  
  817.     Text processing and typesetting with UNIX, D.W. Barron and Mike Rees,
  818.     Addison-Wesley, 1987.
  819.  
  820. ------------------------------
  821. Subject: TR16. Complete DWB description.
  822.  
  823.     Documenter's Workbench (DWB) is the successor to the original Bell
  824.     Labs version of troff.  The current package, DWB 3.4, includes 86
  825.     commands:  troff, tbl, eqn, grap, pic, picasso, a pipeline builder,
  826.     PostScript drivers and utilities for bounding box computation and
  827.     device interrogation; optional (at no cost) LaserJet and Imagen
  828.     printer support; man, mm and other macro packages, font tables,
  829.     etc.  A companion add-on, DWBX 3.4, provides an X Window previewer,
  830.     drawing program, spell corrector and hypertext man page viewer.
  831.  
  832.     The source code is fully-portable to UNIX SVR2, SVR3, SVR4, BSD
  833.     and SunOS, and is available for corporate or university license at
  834.     a fixed price, and for sublicense at a negotiable fee.  Binaries
  835.     are available for all AT&T, NCR and Sun UNIX platforms.  One full
  836.     set of documentation (7 booklets and 9 Quick Reference cards)
  837.     included with each license.
  838.  
  839.     Sales inquiries: AT&T Software Solutions, 1-800-462-8146 (US),
  840.     +1-908-580-5719 from elsewhere; fax 1-908-580-6355.
  841.     Technical inquiries: dwb@mhpo.att.com.
  842.