[NTG-context] Position of image in tabulate

Floris van Manen vm at klankschap.nl
Tue Sep 25 10:36:28 CEST 2018


> On 22 Sep 2018, at 18:29, Hans Hagen <j.hagen at 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



-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: Message signed with OpenPGP using GPGMail
URL: <http://mailman.ntg.nl/pipermail/ntg-context/attachments/20180925/e29d464a/attachment.sig>


More information about the ntg-context mailing list