Hello, is it possible to place an \externalfigure "deeper" to some distance, shifted down, bellow the line or bellow the default position? To get: +----------+ Aaa | A figure | bbb +----------+ instead of: +----------+ | A figure | Aaa +----------+ bbb Thank you in advance. Lukas -- Ing. Lukáš Procházka [mailto:LPr@pontex.cz] Pontex s. r. o. [mailto:pontex@pontex.cz] [http://www.pontex.cz] Bezová 1658 147 14 Praha 4 Tel: +420 244 062 238 Fax: +420 244 461 038
Am 21.12.2010 um 09:57 schrieb Procházka Lukáš Ing. - Pontex s. r. o.:
Hello,
is it possible to place an \externalfigure "deeper" to some distance, shifted down, bellow the line or bellow the default position?
\defineframed[figureframe][frame=off,offset=overlay,location=low] \useexternalfigure[cow][cow][height=2ex] \starttext text \externalfigure[cow]\ text \figureframe{\externalfigure[cow]} text \bbox{\externalfigure[cow]} text \lowerbox{.5\strutdp}\hbox{\externalfigure[cow]} text \stoptext Wolfgang
Perfect, thank you!
Lukas
On Tue, 21 Dec 2010 12:11:44 +0100, Wolfgang Schuster
\defineframed[figureframe][frame=off,offset=overlay,location=low] \useexternalfigure[cow][cow][height=2ex] \starttext text \externalfigure[cow]\ text \figureframe{\externalfigure[cow]} text \bbox{\externalfigure[cow]} text \lowerbox{.5\strutdp}\hbox{\externalfigure[cow]} text \stoptext
-- Ing. Lukáš Procházka [mailto:LPr@pontex.cz] Pontex s. r. o. [mailto:pontex@pontex.cz] [http://www.pontex.cz] Bezová 1658 147 14 Praha 4 Tel: +420 244 062 238 Fax: +420 244 461 038
On Tue, Dec 21 2010, Procházka Lukáš Ing. - Pontex s. r. o. wrote:
is it possible to place an \externalfigure "deeper" to some distance, shifted down, bellow the line or bellow the default position? To get:
+----------+ Aaa | A figure | bbb +----------+
This looks to me, like a vertically centred figure, so \vcenter{...}. The vertical positions of Wolfgang's solutions seem to depend on the height of the figure. Why? Test file: \defineframed[figureframe][frame=off,offset=overlay,location=low] \def\TestMacro#1{\useexternalfigure[cow][cow][height=#1ex] text \externalfigure[cow]\ text \figureframe{\externalfigure[cow]} text \bbox{\externalfigure[cow]} text \lowerbox{.5\strutdp}\hbox{\externalfigure[cow]} text \vcenter{\externalfigure[cow]}\par} \starttext \TestMacro1 \TestMacro2 \TestMacro5 \stoptext Peter -- Contact information: http://pmrb.free.fr/contact/
Am 21.12.2010 um 14:29 schrieb Peter Münster:
On Tue, Dec 21 2010, Procházka Lukáš Ing. - Pontex s. r. o. wrote:
is it possible to place an \externalfigure "deeper" to some distance, shifted down, bellow the line or bellow the default position? To get:
+----------+ Aaa | A figure | bbb +----------+
This looks to me, like a vertically centred figure, so \vcenter{...}.
The vertical positions of Wolfgang's solutions seem to depend on the height of the figure. Why?
You’re wrong, the position of the figure is always the same with my solutions, the first two lower the picture always by the strutdp while the third lowers it by half of the strutdp, the baseline is always on the same position. With your \vcenter solution the pictures are always on a different position because the baseline depends now on the height of the figure. Wolfgang
participants (3)
-
Peter Münster
-
Procházka Lukáš Ing. - Pontex s. r. o.
-
Wolfgang Schuster