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