From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/3888 Path: main.gmane.org!not-for-mail From: Hans Hagen Newsgroups: gmane.comp.tex.context Subject: Re: Vertically center text in a table Date: Sun, 28 Jan 2001 19:56:15 +0100 Sender: owner-ntg-context@let.uu.nl Message-ID: <3.0.6.32.20010128195615.0093cb40@server-1> References: <20010127142316.A1880@wouter.verheijen.nl> NNTP-Posting-Host: coloc-standby.netfonds.no Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" X-Trace: main.gmane.org 1035394595 20992 80.91.224.250 (23 Oct 2002 17:36:35 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Wed, 23 Oct 2002 17:36:35 +0000 (UTC) Cc: conTeXt Original-To: Wouter Verheijen In-Reply-To: <20010127142316.A1880@wouter.verheijen.nl> Xref: main.gmane.org gmane.comp.tex.context:3888 X-Report-Spam: http://spam.gmane.org/gmane.comp.tex.context:3888 At 02:23 PM 1/27/01 +0100, Wouter Verheijen wrote: >Hi, > >I have a simple table, like this: >\starttabel[|r|r|r|r|] > \HL > \VL 90$\graden$ \VL \hoeka \VL 12 \VL 3,4 \VL\FR > \VL 75$\graden$ \VL \hoekb \VL \VL 10 \VL 3,1 \VL\MR There is one \VL too much so that will give a funny table >The \hoeka and \hoekb are pictures, defined earlier. >This gives two problems: >- The other text in a row is located at the baseline. I want it to be > centered (vertically) in each cell. (because the row gets much > higher because of the picture) >- The first picture is located a bit too high, and overlaps with the > upper \HL. % output=pdftex \starttekst \def\halfwaybox% {\dowithnextbox {\dp\nextbox=0pt \setbox\nextbox=\hbox{\lower.5\ht\nextbox\box\nextbox}% \box\nextbox} \hbox} \starttabel[|r|r|r|r|] \HL \VL 90$\graden$ \VL \halfwaybox{\externalfigure[koe]} \VL 12 \VL 3,4 \VL\AR \HL \VL 75$\graden$ \VL \halfwaybox{\externalfigure[koe]} \VL 10 \VL 3,1 \VL\AR \HL \stoptabel \stoptekst I'll add \halfway to the supp-box file. Hans ------------------------------------------------------------------------- Hans Hagen | PRAGMA ADE | pragma@wxs.nl Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: +31 (0)38 477 53 69 | fax: +31 (0)38 477 53 74 | www.pragma-ade.com -------------------------------------------------------------------------