home *** CD-ROM | disk | FTP | other *** search
/ Usenet 1994 January / usenetsourcesnewsgroupsinfomagicjanuary1994.iso / answers / text-faq < prev    next >
Internet Message Format  |  1993-12-23  |  31KB

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