From: Hans Hagen <pragma@wxs.nl>
Subject: Re: Placing figure inside a table cell, centered
Date: Thu, 16 Sep 2004 10:22:23 +0200 [thread overview]
Message-ID: <41494D3F.2020503@wxs.nl> (raw)
In-Reply-To: <ecca0b2704091507454a306137@mail.gmail.com>
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
-----------------------------------------------------------------
prev parent reply other threads:[~2004-09-16 8:22 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-09-15 14:45 Eugene Toporov
2004-09-16 8:22 ` Hans Hagen [this message]
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=41494D3F.2020503@wxs.nl \
--to=pragma@wxs.nl \
--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).