ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Eugene Toporov <eugene.toporov@gmail.com>
Subject: Placing figure inside a table cell, centered
Date: Wed, 15 Sep 2004 17:45:15 +0300	[thread overview]
Message-ID: <ecca0b2704091507454a306137@mail.gmail.com> (raw)

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

             reply	other threads:[~2004-09-15 14:45 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-09-15 14:45 Eugene Toporov [this message]
2004-09-16  8:22 ` Hans Hagen

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=ecca0b2704091507454a306137@mail.gmail.com \
    --to=eugene.toporov@gmail.com \
    --cc=ntg-context@ntg.nl \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).