home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #18 / NN_1992_18.iso / spool / comp / text / tex / 10276 < prev    next >
Encoding:
Internet Message Format  |  1992-08-17  |  1.5 KB

  1. Path: sparky!uunet!wupost!gumby!destroyer!ncar!noao!amethyst!organpipe.uug.arizona.edu!spekl.as.arizona.edu!mjm
  2. From: mjm@spekl.as.arizona.edu (Mark McCaughrean)
  3. Newsgroups: comp.text.tex
  4. Subject: Finding width of on-going \halign
  5. Message-ID: <1992Aug18.020840.20852@organpipe.uug.arizona.edu>
  6. Date: 18 Aug 92 02:08:40 GMT
  7. Sender: news@organpipe.uug.arizona.edu
  8. Organization: University of Arizona, Tucson, AZ
  9. Lines: 21
  10.  
  11.  
  12.      In the middle of an \halign, I want to use \noalign to set a
  13. paragraph of text (say). I want this paragraph to have the same
  14. width as the table I'm setting using \halign. How do I get TeX
  15. to tell me what the width of the table is, i.e. the width of the
  16. vertical box I'm currently in the middle of? (I don't want to use
  17. \multispan, by the way: I want the exact width of the table, and 
  18. I don't want to have to know how many columns to span).
  19.  
  20.      I figured I could make a \setbox with an \hrule inside it,
  21. hoping the \hrule would be the width of the table, and that then
  22. I could use \wd to get the width of the box. I can't get it to
  23. work. Seems like TeX must know the width though, or does it only
  24. work it out when it has digested the whole table?
  25.  
  26.      Any ideas? Thanks,
  27.                           Mark
  28. ------------------------------------------------------------------------
  29. Mark McCaughrean    | University of Arizona | Phone: US + (602) 621 8347
  30. Steward Observatory | Tucson, AZ 85721, USA | E-mail: mjm@as.arizona.edu
  31. ------------------------------------------------------------------------
  32.