home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!charon.amdahl.com!pacbell.com!sgiblab!spool.mu.edu!agate!doc.ic.ac.uk!uknet!mcsun!sun4nl!sci.kun.nl!alexp
- From: alexp@sci.kun.nl (Alex Priem)
- Newsgroups: comp.text.tex
- Subject: centering {tabular} entries vertically
- Message-ID: <Bxu0Bz.249@sci.kun.nl>
- Date: 16 Nov 92 23:09:34 GMT
- Sender: news@sci.kun.nl (NUnet News Owner)
- Organization: University of Nijmegen, The Netherlands
- Lines: 43
-
- I've made a nice-looking table in LaTeX which looks something like this:
-
- 1 /------\ data more data more data...
- | |
- | |
- \------/
-
- 2 /-------\ data more data more data....
- | |
- \-------/
-
- But I want something like this:
-
- /------\
- | |
- 1| | data more data more data ....
- \------/
-
- After '1' follows a big \box. I want the 'data' vertically centered in
- a row, but I don't know how to do it. \vcenter doesn't seem to work;
- If I use \lower 10pt \hbox{data} I get my data lowered, but for each
- new row I have to find out how big my 'big \box' is, plus that I've to
- say ' lower ...' for each entry.
- (Well, I tried something like
- \newdimen\tspaces \tspaces=10pt
- \def\tcentr#1{\lower\the\tspaces #1}
- so I could say \tspace{data} (works!)
- but then I've to say \tspaces=40pt (or 30 or whatever..) each time I start
- a row with a different sized \box.
- (of course, \def\settspace#1{\tspaces #1} doesn't work like I
- thought it would...:)
-
-
-
- Too be short: Does anybody know a package or environment that includes
- a new feature to {tabular}: vertical centering of the individual entries
- on a row?
-
- Any help would be appreciated,
-
- ALeX
-
-
-