ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Position of image in tabulate
@ 2018-09-22 14:36 Jan U. Hasecke
  2018-09-22 16:29 ` Hans Hagen
  0 siblings, 1 reply; 3+ messages in thread
From: Jan U. Hasecke @ 2018-09-22 14:36 UTC (permalink / raw)
  To: mailing list for ConTeXt users

Hi,

with the following code

\starttext
\starttabulate[|w(.4\textwidth)|p|]
\NC\externalfigure[cow.pdf][width=.3\textwidth]
\NC \input ward\NC\NR
\stoptabulate
\stoptext


the text input starts at the bottom edge of the image going further down.

I want the text to start at the top edge of the image.

juh
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : http://contextgarden.net
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Position of image in tabulate
  2018-09-22 14:36 Position of image in tabulate Jan U. Hasecke
@ 2018-09-22 16:29 ` Hans Hagen
  2018-09-25  8:36   ` Floris van Manen
  0 siblings, 1 reply; 3+ messages in thread
From: Hans Hagen @ 2018-09-22 16:29 UTC (permalink / raw)
  To: ntg-context@ntg.nl >> mailing list for ConTeXt users

On 9/22/2018 4:36 PM, Jan U. Hasecke wrote:
> Hi,
> 
> with the following code
> 
> \starttext
> \starttabulate[|w(.4\textwidth)|p|]
> \NC\externalfigure[cow.pdf][width=.3\textwidth]
> \NC \input ward\NC\NR
> \stoptabulate
> \stoptext
> 
> 
> the text input starts at the bottom edge of the image going further down.
> 
> I want the text to start at the top edge of the image.
\starttext
\starttabulate[|w(.4\textwidth)|p|]
\NC \sbox{\tbox{\externalfigure[cow.pdf][width=.3\textwidth]}}
\NC \input ward\NC\NR
\stoptabulate
\stoptext

tbox = topbox      (shifted)
sbox = struttedbox (a line)

-----------------------------------------------------------------
                                           Hans Hagen | PRAGMA ADE
               Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
        tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl
-----------------------------------------------------------------
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : http://contextgarden.net
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Position of image in tabulate
  2018-09-22 16:29 ` Hans Hagen
@ 2018-09-25  8:36   ` Floris van Manen
  0 siblings, 0 replies; 3+ messages in thread
From: Floris van Manen @ 2018-09-25  8:36 UTC (permalink / raw)
  To: mailing list for ConTeXt users


[-- Attachment #1.1: Type: text/plain, Size: 1788 bytes --]


> On 22 Sep 2018, at 18:29, Hans Hagen <j.hagen@xs4all.nl> wrote:
> 
> On 9/22/2018 4:36 PM, Jan U. Hasecke wrote:
>> Hi,
>> with the following code
>> \starttext
>> \starttabulate[|w(.4\textwidth)|p|]
>> \NC\externalfigure[cow.pdf][width=.3\textwidth]
>> \NC \input ward\NC\NR
>> \stoptabulate
>> \stoptext
>> the text input starts at the bottom edge of the image going further down.
>> I want the text to start at the top edge of the image.
> \starttext
> \starttabulate[|w(.4\textwidth)|p|]
> \NC \sbox{\tbox{\externalfigure[cow.pdf][width=.3\textwidth]}}
> \NC \input ward\NC\NR
> \stoptabulate
> \stoptext
> 
> tbox = topbox      (shifted)
> sbox = struttedbox (a line)


Nice !
Also interesting to see the anchor placement order of the underlaying mechanisme.


\starttext
\starttabulate[|w(.3\textwidth)|p|]
\NC \sbox{\tbox{\externalfigure[cow.pdf][width=.5\textwidth]}}\NC \input ward\NC\NR
\NC \sbox{\tbox{\externalfigure[cow.pdf][width=.4\textwidth]}}\NC \input ward\NC\NR
\NC \sbox{\tbox{\externalfigure[cow.pdf][width=.3\textwidth]}}\NC \input ward\NC\NR
\NC \sbox{\tbox{\externalfigure[cow.pdf][width=.2\textwidth]}}\NC \input ward\NC\NR
\NC \sbox{\tbox{\externalfigure[cow.pdf][width=.1\textwidth]}}\NC \input ward\NC\NR
\stoptabulate
\page
\starttabulate[|w(.3\textwidth)|p|]
\NC \tbox{\sbox{\externalfigure[cow.pdf][width=.5\textwidth]}}\NC \input ward\NC\NR
\NC \tbox{\sbox{\externalfigure[cow.pdf][width=.4\textwidth]}}\NC \input ward\NC\NR
\NC \tbox{\sbox{\externalfigure[cow.pdf][width=.3\textwidth]}}\NC \input ward\NC\NR
\NC \tbox{\sbox{\externalfigure[cow.pdf][width=.2\textwidth]}}\NC \input ward\NC\NR
\NC \tbox{\sbox{\externalfigure[cow.pdf][width=.1\textwidth]}}\NC \input ward\NC\NR
\stoptabulate
\stoptext




[-- Attachment #1.2: Message signed with OpenPGP using GPGMail --]
[-- Type: application/pgp-signature, Size: 833 bytes --]

[-- Attachment #2: Type: text/plain, Size: 492 bytes --]

___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : http://contextgarden.net
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2018-09-25  8:36 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-09-22 14:36 Position of image in tabulate Jan U. Hasecke
2018-09-22 16:29 ` Hans Hagen
2018-09-25  8:36   ` Floris van Manen

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).