From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/16476 Path: main.gmane.org!not-for-mail From: Hans Hagen Newsgroups: gmane.comp.tex.context Subject: Re: Placing figure inside a table cell, centered Date: Thu, 16 Sep 2004 10:22:23 +0200 Sender: ntg-context-bounces@ntg.nl Message-ID: <41494D3F.2020503@wxs.nl> References: Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1095322969 2337 80.91.229.6 (16 Sep 2004 08:22:49 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 16 Sep 2004 08:22:49 +0000 (UTC) Original-X-From: ntg-context-bounces@ntg.nl Thu Sep 16 10:22:31 2004 Return-path: Original-Received: from ronja.vet.uu.nl ([131.211.172.88] helo=ronja.ntg.nl) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1C7rXD-0006rE-00 for ; Thu, 16 Sep 2004 10:22:31 +0200 Original-Received: from localhost (localhost.localdomain [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id DC2D21279D; Thu, 16 Sep 2004 10:22:30 +0200 (CEST) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (ronja.vet.uu.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 14108-08; Thu, 16 Sep 2004 10:22:28 +0200 (CEST) Original-Received: from ronja.vet.uu.nl (localhost.localdomain [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 5167F12797; Thu, 16 Sep 2004 10:22:28 +0200 (CEST) Original-Received: from localhost (localhost.localdomain [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id C5EAC12797 for ; Thu, 16 Sep 2004 10:22:26 +0200 (CEST) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (ronja.vet.uu.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 14199-04 for ; Thu, 16 Sep 2004 10:22:26 +0200 (CEST) Original-Received: from mailrelay01.solcon.nl (unknown [212.45.32.200]) by ronja.ntg.nl (Postfix) with ESMTP id 37D9C12796 for ; Thu, 16 Sep 2004 10:22:26 +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 i8G8MNSo000745; Thu, 16 Sep 2004 10:22:23 +0200 Original-Received: by server-1.pragma-net.nl (Postfix, from userid 65534) id A4CBD32140; Thu, 16 Sep 2004 10:22:24 +0200 (CEST) Original-Received: from [10.100.1.191] (unknown [10.100.1.191]) by server-1.pragma-net.nl (Postfix) with ESMTP id 5349A17B84; Thu, 16 Sep 2004 08:22:23 +0000 (UTC) User-Agent: Mozilla Thunderbird 0.6 (Windows/20040502) X-Accept-Language: en-us, en Original-To: Eugene Toporov , mailing list for ConTeXt users In-Reply-To: X-Virus-Scanned: clamd / ClamAV version 0.73, clamav-milter version 0.73a on mailrelay01.solcon.nl X-Virus-Status: Clean X-Virus-Scanned: by 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: , Errors-To: ntg-context-bounces@ntg.nl X-Virus-Scanned: by amavisd-new at ntg.nl Xref: main.gmane.org gmane.comp.tex.context:16476 X-Report-Spam: http://spam.gmane.org/gmane.comp.tex.context:16476 Eugene Toporov wrote: >Hello, > >I'm doing a quest. What I intend to do is a table (using Natural >Tables) where one of the columns contains a small icon centered within >the cell with no other data there. > >My table looks like this: > >\bTABLE > \bTR \bTH Operation\eTH \bTH[align=middle] Result\eTH \eTR > \bTR \bTD HelloWorld! \eTD \bTD[align=middle] >\externalfigure[checkbox] \eTD \eTR >\eTABLE > >"align=middle" for TD gives the expected result for the text, but not >for the image. > >I've managed to center the image using \midaligned command, like >below. But the table columns width in this case is set to 50% each. >And the only way I found is to add [width=50pt] to each cell. > >\bTABLE > \bTR \bTH Operation\eTH \bTH[align=middle][width=50pt] >Result\eTH \eTR > \bTR \bTD HelloWorld! \eTD \bTD[width=50pt] \midaligned >{\externalfigure[checkbox]} \eTD \eTR >\eTABLE > >I'm afraid I make things too complicated. Is there a simpler way to do >what I need? > > \bTABLE \bTR \bTH Operation\eTH \bTH[align=middle] Result\eTH \eTR \bTR \bTD HelloWorld! \eTD \bTD[align={middle,hilo}] \noindent\externalfigure[cow][width=10pt] \eTD \eTR \eTABLE ----------------------------------------------------------------- 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 -----------------------------------------------------------------