Position of image in tabulate
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
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 -----------------------------------------------------------------
On 22 Sep 2018, at 18:29, Hans Hagen
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
participants (3)
-
Floris van Manen
-
Hans Hagen
-
Jan U. Hasecke