From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/21574 Path: news.gmane.org!not-for-mail From: Elena Fraboschi Newsgroups: gmane.comp.tex.context Subject: Re: Strange behaviour of \bTABLE ... \eTABLE Date: Mon, 25 Jul 2005 13:52:14 -0500 (EST) Message-ID: <20050725185214.CC7871A8D6@mendoza.math.indiana.edu> Reply-To: Elena Fraboschi , mailing list for ConTeXt users NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: TEXT/plain; charset=us-ascii X-Trace: sea.gmane.org 1122317465 25757 80.91.229.2 (25 Jul 2005 18:51:05 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 25 Jul 2005 18:51:05 +0000 (UTC) Original-X-From: ntg-context-bounces@ntg.nl Mon Jul 25 20:50:57 2005 Return-path: Original-Received: from ronja.vet.uu.nl ([131.211.172.88] helo=ronja.ntg.nl) by ciao.gmane.org with esmtp (Exim 4.43) id 1Dx81E-0006Zq-F4 for gctc-ntg-context-518@m.gmane.org; Mon, 25 Jul 2005 20:49:40 +0200 Original-Received: from localhost (localhost.localdomain [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 1CE90127C4; Mon, 25 Jul 2005 20:49:40 +0200 (CEST) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (smtp.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 05631-04; Mon, 25 Jul 2005 20:49:36 +0200 (CEST) Original-Received: from ronja.vet.uu.nl (localhost.localdomain [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id E9034127C9; Mon, 25 Jul 2005 20:49:35 +0200 (CEST) Original-Received: from localhost (localhost.localdomain [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 9A175127C9 for ; Mon, 25 Jul 2005 20:49:34 +0200 (CEST) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (smtp.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 05634-07 for ; Mon, 25 Jul 2005 20:49:33 +0200 (CEST) Original-Received: from mendoza.math.indiana.edu (mendoza.math.indiana.edu [129.79.147.100]) by ronja.ntg.nl (Postfix) with ESMTP id 7AD03127C4 for ; Mon, 25 Jul 2005 20:49:33 +0200 (CEST) Original-Received: from mendoza (mendoza [129.79.147.100]) by mendoza.math.indiana.edu (Postfix) with SMTP id CC7871A8D6 for ; Mon, 25 Jul 2005 13:52:14 -0500 (EST) Original-To: ntg-context@ntg.nl Content-MD5: WhkPT4/k9sP+cSjRX0m4UQ== X-Mailer: dtmail 1.3.0 @(#)CDE Version 1.5.5 SunOS 5.9 i86pc i386 X-Virus-Scanned: amavisd-new at ntg.nl X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.5 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: ntg-context-bounces@ntg.nl Errors-To: ntg-context-bounces@ntg.nl X-Spam-Checker-Version: SpamAssassin 3.0.3 (2005-04-27) on smtp.ntg.nl X-Virus-Scanned: amavisd-new at ntg.nl Xref: news.gmane.org gmane.comp.tex.context:21574 X-Report-Spam: http://spam.gmane.org/gmane.comp.tex.context:21574 Dear Mojca: I think I see what the problem is. If, instead of typing >\bTR\bTD > a midaligned parbox: >\eTD\bTD[offset=0pt,width=1em] % 1em wide paragraph > 1 2 3 >\eTD\eTR you type 1\ 2\ 3\ you get what is wanted, namely, 1 2 3 My guess is that there is a built-in bias not to split a line but, rather, give you an overfull \hbox. I "forced" the issue by defining each column to be less than 1em (because "1" is a very narrow char that surely takes less than 1 em), and by adding a typescript space after each number. It might even be possible to eliminate the typescript space and simply define each column to be 0.25em, say, but I did not try it. Best, elena P.S. Let me know if I missed the boat entirely. This is the first issue I attempt to answer. Here is what I ran in LiveContext: \starttext \setupTABLE[frame=on] % only for debugging reasons \setupTABLE[c][each][align=lohi] % to center vertically (any better way?) \bTABLE \bTR\bTD[offset=0pt,width=0.5em] % 1em wide paragraph 1\ 2\ 3\ \eTD\eTR \eTABLE \stoptext >Hello, > >On the wiki (http://contextgarden.net/Vertically_centred) a while ago >someone asked how to do the following in ConTeXt: > >%%%%%% > >\documentclass{article} >\begin{document} >a box with a table: >\fbox{\begin{tabular}[c]{l}1\\2\\3\end{tabular}}\par > >a midaligned parbox: \parbox[c]{1em}{1 2 3} >\end{document} > >%%%%%% > >I don't know if this would be the proper solution, but for the second >case (\parbox[c]{1em}{...} which should make a paragraph 1 em wide and >center the paragraph box vertically) I tried the following: > >%%%%%% > >\setupTABLE[frame=on] % only for debugging reasons >\setupTABLE[c][1,2][align=lohi] % to center vertically (any better way?) >\bTABLE >\bTR\bTD > a midaligned parbox: >\eTD\bTD[offset=0pt,width=1em] % 1em wide paragraph > 1 2 3 >\eTD\eTR >\eTABLE > >%%%%%% > >My ConTeXt version is 2005.06.27. >See the vcenter-context-old.png for the result. > >The strange thing is that the number 2 is still in the first line, >although it is too wide. > >Even more strange, I tried the same on live.contextgarden.net. See >vcenter-context-new.png for the result. > >vcenter-latex.tex is what the result should be. > >------------------------------------------------------------------- > >This also results in a mess on the live.contextgarden.net: > >\bTABLE >\bTR\bTD > {\bTABLE > \bTR\bTD whatever \eTD\eTR > \eTABLE} >\eTD\eTR >\eTABLE > >Mojca