From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/21584 Path: news.gmane.org!not-for-mail From: Hans Hagen Newsgroups: gmane.comp.tex.context Subject: Re: Strange behaviour of \bTABLE ... \eTABLE Date: Mon, 25 Jul 2005 22:43:41 +0200 Message-ID: <42E54EFD.5040401@wxs.nl> References: <20050725185214.CC7871A8D6@mendoza.math.indiana.edu> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1122324220 15446 80.91.229.2 (25 Jul 2005 20:43:40 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 25 Jul 2005 20:43:40 +0000 (UTC) Original-X-From: ntg-context-bounces@ntg.nl Mon Jul 25 22:43:39 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 1Dx9n8-0007db-0N for gctc-ntg-context-518@m.gmane.org; Mon, 25 Jul 2005 22:43:14 +0200 Original-Received: from localhost (localhost.localdomain [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id C5442127EE; Mon, 25 Jul 2005 22:43:13 +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 07098-04-16; Mon, 25 Jul 2005 22:43:13 +0200 (CEST) Original-Received: from ronja.vet.uu.nl (localhost.localdomain [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id B8A80127F1; Mon, 25 Jul 2005 22:43:09 +0200 (CEST) Original-Received: from localhost (localhost.localdomain [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 66F17127EF for ; Mon, 25 Jul 2005 22:43:08 +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 07168-03-9 for ; Mon, 25 Jul 2005 22:43:07 +0200 (CEST) Original-Received: from mailrelay01.solcon.nl (maillb.solcon.nl [212.45.32.200]) by ronja.ntg.nl (Postfix) with ESMTP id 4AA9A127EE for ; Mon, 25 Jul 2005 22:43:07 +0200 (CEST) Original-Received: from server-1.pragma-net.nl (dsl-212-84-128-085.solcon.nl [212.84.128.85]) by mailrelay01.solcon.nl (8.12.11/SQL-8.12.11-5/8.12.11) with ESMTP id j6PKh0It018258; Mon, 25 Jul 2005 22:43:00 +0200 Original-Received: by server-1.pragma-net.nl (Postfix, from userid 65534) id 215AD24C70; Mon, 25 Jul 2005 21:58:32 +0200 (CEST) Original-Received: from [10.100.1.52] (unknown [10.100.1.52]) by server-1.pragma-net.nl (Postfix) with ESMTP id 1599524C6B; Mon, 25 Jul 2005 19:58:31 +0000 (UTC) User-Agent: Mozilla Thunderbird 1.0.2 (Windows/20050317) X-Accept-Language: en-us, en Original-To: Elena Fraboschi , mailing list for ConTeXt users In-Reply-To: <20050725185214.CC7871A8D6@mendoza.math.indiana.edu> X-Virus-Scanned: ClamAV 0.86.1/991/Mon Jul 25 10:55:11 2005 on mailrelay01 X-Virus-Status: Clean 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:21584 X-Report-Spam: http://spam.gmane.org/gmane.comp.tex.context:21584 Elena Fraboschi wrote: >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 >> >> > >_______________________________________________ >ntg-context mailing list >ntg-context@ntg.nl >http://www.ntg.nl/mailman/listinfo/ntg-context > > > > > -- ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com | www.pragma-pod.nl -----------------------------------------------------------------