home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #31 / NN_1992_31.iso / spool / comp / text / 1510 < prev    next >
Encoding:
Internet Message Format  |  1993-01-01  |  1.6 KB

  1. Path: sparky!uunet!cs.utexas.edu!qt.cs.utexas.edu!yale.edu!yale!hsdndev!spdcc!rdonahue
  2. From: rdonahue@spdcc.com (Bob Donahue)
  3. Newsgroups: comp.text
  4. Subject: Annoying ?roff-ism attempt 2
  5. Message-ID: <1993Jan2.040406.25111@spdcc.com>
  6. Date: 2 Jan 93 04:04:06 GMT
  7. Organization: insert anything here
  8. Lines: 42
  9.  
  10.  
  11.     I got some great replies for my first inquiry to having
  12. 'tm requests process information on execution as opposed to when
  13. they are encountered in the file.  
  14.  
  15.     Unfortunately, none of them worked.  
  16.     
  17.     1) groff V1.06 doesn't appear to have an IK register in its
  18. ms macros...
  19.  
  20.     2) the \\n(.z construction confuses groff --- it keeps looking
  21. for closing delimiters...
  22.  
  23.     3) just putting \! in front of the 'tm lines does nothing ---
  24. well it has the same effect as not having them there.
  25.  
  26.     Anyone want to take another crack at it?  Preferably
  27. someone who has access to groff V1.06 and can check it out first?
  28.  
  29.     Here's a recap --- I have a very large file with lots of
  30. equations, figures and tables.  I'm trying to have groff generate
  31. a list of what will eventually be made into a table of contents
  32. and an index...  Most of the macros are very simply, e.g.:
  33.  
  34.     .\"  tX ----- TABLE CAPTION
  35.     .de tX
  36.     \!'tm T|\\n%|\\n(cC.\\n+(tT|\\$1|\\n%|
  37.     ..
  38.  
  39. and for the most part all of the figures and tables are inside of
  40. floating keeps (.KF/.KE pairs)...
  41.  
  42.     The problem is that if groff is on page 50 when it hits
  43. a .KF with a table in it that it doesn't process until page 52,
  44. the output from the macro above *still* has the page number set
  45. to 50, not 52...  :-(
  46.  
  47. Pulling my hair out,
  48. BBC
  49.  
  50. P.S.  There is a bright side --- if I were doing it in TeX, I'd still
  51. be getting the initial macros to work!
  52.