home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.text.tex
- 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
- From: gerd@intellektik.informatik.th-darmstadt.de (Gerd Neugebauer)
- Subject: Re: centering {tabular} entries vertically
- Sender: news@news.th-darmstadt.de (The News System)
- Message-ID: <GERD.92Nov17135750@kim.intellektik.informatik.th-darmstadt.de>
- In-Reply-To: alexp@sci.kun.nl's message of Mon, 16 Nov 1992 23: 09:34 GMT
- Date: Tue, 17 Nov 1992 13:57:50 GMT
- References: <Bxu0Bz.249@sci.kun.nl>
- Nntp-Posting-Host: kim.intellektik.informatik.th-darmstadt.de
- Organization: TH Darmstadt
- Lines: 38
-
- >>>>> On Mon, 16 Nov 1992 23:09:34 GMT, alexp@sci.kun.nl (Alex Priem) said:
-
- In article <Bxu0Bz.249@sci.kun.nl> alexp@sci.kun.nl (Alex Priem) writes:
-
- [...]
-
- AP> But I want something like this:
-
- AP> /------\
- AP> | |
- AP> 1| | data more data more data ....
- AP> \------/
-
- AP> After '1' follows a big \box. I want the 'data' vertically centered in
- AP> a row, but I don't know how to do it. \vcenter doesn't seem to work;
- AP> If I use \lower 10pt \hbox{data} I get my data lowered, but for each
- AP> new row I have to find out how big my 'big \box' is, plus that I've to
- AP> say ' lower ...' for each entry.
- AP> (Well, I tried something like
- AP> \newdimen\tspaces \tspaces=10pt
- AP> \def\tcentr#1{\lower\the\tspaces #1}
- AP> so I could say \tspace{data} (works!)
- AP> but then I've to say \tspaces=40pt (or 30 or whatever..) each time I start
- AP> a row with a different sized \box.
- AP> (of course, \def\settspace#1{\tspaces #1} doesn't work like I
- AP> thought it would...:)
-
- Well, it seems you are using very dirty tricks to achieve simple
- solutions. The easiest thing I can think of which solves your problem
- is to enclose the box in a minipage or parbox. Those are automaticalle
- centered vertically.
-
- --
- ____ ___ __ ___ Gerd Neugebauer
- / / /___) /' ) /___) FG Intellektik, FB Informatik, TH Darmstadt
- (___/- (___ / / (___ Alexanderstr. 10, D-6100 Darmstadt
- _____/_____________________ Phone: (+49) 6151 16-5382
- (____/ Net: gerd@intellektik.informatik.th-darmstadt.de
-