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

  1. Newsgroups: comp.text.tex
  2. Path: sparky!uunet!zaphod.mps.ohio-state.edu!cs.utexas.edu!qt.cs.utexas.edu!yale.edu!ira.uka.de!math.fu-berlin.de!news.th-darmstadt.de!news!gerd
  3. From: gerd@intellektik.informatik.th-darmstadt.de (Gerd Neugebauer)
  4. Subject: Re: centering {tabular} entries vertically
  5. Sender: news@news.th-darmstadt.de (The News System)
  6. Message-ID: <GERD.92Nov17135750@kim.intellektik.informatik.th-darmstadt.de>
  7. In-Reply-To: alexp@sci.kun.nl's message of Mon, 16 Nov 1992 23: 09:34 GMT
  8. Date: Tue, 17 Nov 1992 13:57:50 GMT
  9. References: <Bxu0Bz.249@sci.kun.nl>
  10. Nntp-Posting-Host: kim.intellektik.informatik.th-darmstadt.de
  11. Organization: TH Darmstadt
  12. Lines: 38
  13.  
  14. >>>>> On Mon, 16 Nov 1992 23:09:34 GMT, alexp@sci.kun.nl (Alex Priem) said:
  15.  
  16. In article <Bxu0Bz.249@sci.kun.nl> alexp@sci.kun.nl (Alex Priem) writes:
  17.  
  18. [...]
  19.  
  20. AP> But I want something like this:
  21.  
  22. AP>  /------\   
  23. AP>  |      |
  24. AP> 1|      |    data       more data      more data ....
  25. AP>  \------/
  26.  
  27. AP> After '1' follows a big \box. I want the 'data' vertically centered in
  28. AP> a row, but I don't know how to do it. \vcenter doesn't seem to work;
  29. AP> If I use \lower 10pt \hbox{data}  I get my data lowered, but for each
  30. AP> new row I have to find out how big my 'big \box' is, plus that I've to
  31. AP> say ' lower ...' for each entry.
  32. AP> (Well, I tried something like 
  33. AP> \newdimen\tspaces    \tspaces=10pt
  34. AP> \def\tcentr#1{\lower\the\tspaces #1}  
  35. AP> so I could say \tspace{data}  (works!)
  36. AP> but then I've to say \tspaces=40pt (or 30 or whatever..) each time I start
  37. AP>  a row with a different sized \box.
  38. AP> (of course, \def\settspace#1{\tspaces #1} doesn't work like I 
  39. AP> thought it would...:)
  40.  
  41. Well, it seems you are using very dirty tricks to achieve simple
  42. solutions.  The easiest thing I can think of which solves your problem
  43. is to enclose the box in a minipage or parbox. Those are automaticalle
  44. centered vertically.
  45.  
  46. --
  47.      ____   ___    __   ___       Gerd Neugebauer
  48.     /   /  /___) /'  ) /___)     FG Intellektik, FB Informatik, TH Darmstadt
  49.    (___/- (___  /   / (___      Alexanderstr. 10, D-6100 Darmstadt
  50.  _____/_____________________   Phone: (+49) 6151 16-5382
  51. (____/                        Net: gerd@intellektik.informatik.th-darmstadt.de
  52.