home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #18 / NN_1992_18.iso / spool / comp / text / tex / 10286 < prev    next >
Encoding:
Text File  |  1992-08-17  |  2.0 KB  |  58 lines

  1. Newsgroups: comp.text.tex
  2. Path: sparky!uunet!decwrl!access.usask.ca!kakwa.ucs.ualberta.ca!unixg.ubc.ca!reg.triumf.ca!asnd
  3. From: asnd@reg.triumf.ca (Donald Arseneau)
  4. Subject: Re: Finding width of on-going \halign
  5. Message-ID: <18AUG199202094046@reg.triumf.ca>
  6. News-Software: VAX/VMS VNEWS 1.41    
  7. Sender: news@unixg.ubc.ca (Usenet News Maintenance)
  8. Nntp-Posting-Host: reg.triumf.ca
  9. Organization: TRIUMF: Tri-University Meson Facility
  10. References: <1992Aug18.020840.20852@organpipe.uug.arizona.edu>
  11. Date: Tue, 18 Aug 1992 09:09:00 GMT
  12. Lines: 44
  13.  
  14. In article <1992Aug18.020840.20852@organpipe.uug.arizona.edu>, mjm@spekl.as.arizona.edu (Mark McCaughrean) writes...
  15. >     In the middle of an \halign, I want to use \noalign to set a
  16. >paragraph of text (say). I want this paragraph to have the same
  17. >width as the table I'm setting using \halign. 
  18.  
  19. A backwards answer: Use 
  20.   \halign to <dimen>{...}.
  21.  
  22. >How do I get TeX
  23. >to tell me what the width of the table is, i.e. the width of the
  24. >vertical box I'm currently in the middle of? 
  25.  
  26. You can't.  The width is undefined until the box is wrapped up.
  27.  
  28. >(I don't want to use
  29. >\multispan, by the way: I want the exact width of the table, and 
  30. >I don't want to have to know how many columns to span).
  31.  
  32. \multispan doesn't tell you the width of the table anyway, and you
  33. need to know the width in order to break the paragraph.
  34.  
  35. >     I figured I could make a \setbox with an \hrule inside it,
  36. >hoping the \hrule would be the width of the table, and that then
  37. >I could use \wd to get the width of the box. I can't get it to
  38. >work. 
  39.  
  40. It will never work.
  41.  
  42. >Seems like TeX must know the width though, or does it only
  43. >work it out when it has digested the whole table?
  44.  
  45. Yes, of course!  It can't know the width of the table until all the entries 
  46. are processed!
  47.  
  48. >     Any ideas? 
  49.  
  50. Check the width of the table after it is finished, and write the width to 
  51. a file so the paragraph can be set properly the next time.  Or reprocess
  52. the table with paragraph immediately.
  53.  
  54. Donald Arseneau         asnd@reg.triumf.ca
  55.  
  56.