home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #27 / NN_1992_27.iso / spool / comp / text / tex / 13192 < prev    next >
Encoding:
Text File  |  1992-11-17  |  1.6 KB  |  54 lines

  1. Path: sparky!uunet!charon.amdahl.com!pacbell.com!sgiblab!spool.mu.edu!agate!doc.ic.ac.uk!uknet!mcsun!sun4nl!sci.kun.nl!alexp
  2. From: alexp@sci.kun.nl (Alex Priem)
  3. Newsgroups: comp.text.tex
  4. Subject: centering {tabular} entries vertically
  5. Message-ID: <Bxu0Bz.249@sci.kun.nl>
  6. Date: 16 Nov 92 23:09:34 GMT
  7. Sender: news@sci.kun.nl (NUnet News Owner)
  8. Organization: University of Nijmegen, The Netherlands
  9. Lines: 43
  10.  
  11. I've made a nice-looking table in LaTeX which looks something like this:
  12.  
  13. 1 /------\    data     more data       more data...
  14.   |      |
  15.   |      |
  16.   \------/    
  17.  
  18. 2 /-------\    data     more data       more data....
  19.   |       |
  20.   \-------/   
  21.  
  22. But I want something like this:
  23.  
  24.  /------\   
  25.  |      |
  26. 1|      |    data       more data      more data ....
  27.  \------/
  28.  
  29. After '1' follows a big \box. I want the 'data' vertically centered in
  30. a row, but I don't know how to do it. \vcenter doesn't seem to work;
  31. If I use \lower 10pt \hbox{data}  I get my data lowered, but for each
  32. new row I have to find out how big my 'big \box' is, plus that I've to
  33. say ' lower ...' for each entry.
  34. (Well, I tried something like 
  35. \newdimen\tspaces    \tspaces=10pt
  36. \def\tcentr#1{\lower\the\tspaces #1}  
  37. so I could say \tspace{data}  (works!)
  38. but then I've to say \tspaces=40pt (or 30 or whatever..) each time I start
  39.  a row with a different sized \box.
  40. (of course, \def\settspace#1{\tspaces #1} doesn't work like I 
  41. thought it would...:)
  42.  
  43.  
  44.  
  45. Too be short: Does anybody know a package or environment that includes
  46. a new feature to {tabular}: vertical centering of the individual entries
  47. on a row?
  48.  
  49. Any help would be appreciated,
  50.  
  51. ALeX
  52.  
  53.  
  54.