From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/1537 Path: main.gmane.org!not-for-mail From: Taco Hoekwater Newsgroups: gmane.comp.tex.context Subject: Re: Itemize.. Date: Fri, 14 Jan 2000 14:39:58 +0000 (GMT) Sender: owner-ntg-context@let.uu.nl Message-ID: <14463.13630.819718.954298@PC709.wkap.nl> References: <200001140754.IAA23087@fly.srk.fer.hr> <3.0.6.32.20000114115907.00a22100@pop.wxs.nl> NNTP-Posting-Host: coloc-standby.netfonds.no Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: main.gmane.org 1035392358 1226 80.91.224.250 (23 Oct 2002 16:59:18 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Wed, 23 Oct 2002 16:59:18 +0000 (UTC) Cc: mordor@fly.srk.fer.hr, ntg-context@let.uu.nl Original-To: pragma@wxs.nl Xref: main.gmane.org gmane.comp.tex.context:1537 X-Report-Spam: http://spam.gmane.org/gmane.comp.tex.context:1537 >> 3. This one is related to tables: I have >> \starttable[|p(6cm)|M|]. In one row of the table (second >> column) I happen to have \eqalign with two rows. The top of the >> paragraph is aligned with the middle of \eqalign. How can I >> make the middled of the paragraph be aligned with the middle of >> eqalign (I'm talking about vertical centering)? Hans> Something for taco since it's math. Not really math, more of a TaBlE omission. Try this code, which gives you the new key P (just like p) for a vertically centered paragraph. %%%%%%%%%%%%%%%%%%%%%% \unprotect \def\BeginTableParCBox#1{% $\displaystyle\m@th\vcenter\bgroup\vtop\bgroup \hsize=#1 \normalbaselines \let~=\!ttTie \let\-=\!ttDH \the\EveryTableParBox} \def\EndTableParCBox{% \MakeStrut{0pt}{\StrutDepthFactor\StrutUnit} \egroup\egroup$} % finishes the \vtop begun by \BeginTableParbox \NewFormatKey P{% \!tgGetValue{\!tgSetUpParCBox}} \def\!tgSetUpParCBox{% \edef\!ttemp{% \noexpand \ReadFormatKeys b{\noexpand \BeginTableParCBox{% \ifnum \!tgCode=1 \ifx \!tgValue\empty \the\ColumnWidthFactor \else \!tgValue % user-specified integer \fi \!taCWU % \ColumnWidthUnit \else \!tgValue % user-specified dimension \fi}}}% \!ttemp a{\EndTableParCBox}} \protect %%%%%%%%%%%%%%%%%%%%%% [There is a similar problem for bottom aligned paragraphs (\vbot instead of \vtop), but I can't find a suitable key for that]. Or you could put the \eqalign in a parbox itself, I think, like this: \starttable[|p(6cm)|p(6cm)|] \NC .. \NC $\displaystyle\eqalign{...}$\NC\NR \stoptable (in this case, they start on the same baseline). Greetings, Taco