From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/16473 Path: main.gmane.org!not-for-mail From: Eugene Toporov Newsgroups: gmane.comp.tex.context Subject: Placing figure inside a table cell, centered Date: Wed, 15 Sep 2004 17:45:15 +0300 Sender: ntg-context-bounces@ntg.nl Message-ID: Reply-To: Eugene Toporov , mailing list for ConTeXt users NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1095319908 27239 80.91.229.6 (16 Sep 2004 07:31:48 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 16 Sep 2004 07:31:48 +0000 (UTC) Original-X-From: ntg-context-bounces@ntg.nl Thu Sep 16 09:31:35 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 1C7qjv-00040K-00 for ; Thu, 16 Sep 2004 09:31:35 +0200 Original-Received: from localhost (localhost.localdomain [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 2A69E1276B; Thu, 16 Sep 2004 09:31:35 +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 13852-02; Thu, 16 Sep 2004 09:31:35 +0200 (CEST) Original-Received: from ronja.vet.uu.nl (localhost.localdomain [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 437171278D; Thu, 16 Sep 2004 09:29:51 +0200 (CEST) Original-Received: from localhost (localhost.localdomain [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 36C5C1276B for ; Wed, 15 Sep 2004 16:45:19 +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 08428-05 for ; Wed, 15 Sep 2004 16:45:18 +0200 (CEST) Original-Received: from mproxy.gmail.com (unknown [216.239.56.245]) by ronja.ntg.nl (Postfix) with ESMTP id 5D9BB126F8 for ; Wed, 15 Sep 2004 16:45:18 +0200 (CEST) Original-Received: by mproxy.gmail.com with SMTP id x17so67324cwb for ; Wed, 15 Sep 2004 07:45:15 -0700 (PDT) Original-Received: by 10.11.98.5 with SMTP id v5mr66931cwb; Wed, 15 Sep 2004 07:45:15 -0700 (PDT) Original-Received: by 10.11.98.49 with HTTP; Wed, 15 Sep 2004 07:45:15 -0700 (PDT) Original-To: ntg-context@ntg.nl X-Virus-Scanned: by amavisd-new at ntg.nl X-Mailman-Approved-At: Thu, 16 Sep 2004 09:29:48 +0200 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:16473 X-Report-Spam: http://spam.gmane.org/gmane.comp.tex.context:16473 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? Thanks a lot. -- Regards. Eugene Toporov