* Gap above \placefigure[top] ?
@ 2007-02-10 18:40 Steffen Wolfrum
2007-02-12 8:39 ` Taco Hoekwater
0 siblings, 1 reply; 3+ messages in thread
From: Steffen Wolfrum @ 2007-02-10 18:40 UTC (permalink / raw)
To: mailing list for ConTeXt users
Hi,
sorry, the next looks so simple, it's probably an often answered thing
(I just could not find the answer anywhere…)
Why is there a little gap above the figure, though it should be "top".
How to avoid it?
\starttext
\showframe
\placefigure[top]{}{\externalfigure[../Figures/Test][frame=off]}
\stoptext
(With or without figure/path has the same gap)
Steffen
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Gap above \placefigure[top] ?
2007-02-10 18:40 Gap above \placefigure[top] ? Steffen Wolfrum
@ 2007-02-12 8:39 ` Taco Hoekwater
2007-02-12 10:00 ` Hans Hagen
0 siblings, 1 reply; 3+ messages in thread
From: Taco Hoekwater @ 2007-02-12 8:39 UTC (permalink / raw)
To: mailing list for ConTeXt users
Hi Steffen,
Steffen Wolfrum wrote:
> Hi,
>
> sorry, the next looks so simple, it's probably an often answered thing
> (I just could not find the answer anywhere…)
>
> Why is there a little gap above the figure, though it should be "top".
> How to avoid it?
>
> \starttext
> \showframe
> \placefigure[top]{}{\externalfigure[../Figures/Test][frame=off]}
> \stoptext
The gap is the difference between the height of a typical line
(\blank) and TeX's \topskip parameter. That explains it, but
I do not see a nice way to correct the behaviour.
Best, Taco
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Gap above \placefigure[top] ?
2007-02-12 8:39 ` Taco Hoekwater
@ 2007-02-12 10:00 ` Hans Hagen
0 siblings, 0 replies; 3+ messages in thread
From: Hans Hagen @ 2007-02-12 10:00 UTC (permalink / raw)
To: mailing list for ConTeXt users
Taco Hoekwater wrote:
> Hi Steffen,
>
> Steffen Wolfrum wrote:
>
>> Hi,
>>
>> sorry, the next looks so simple, it's probably an often answered thing
>> (I just could not find the answer anywhere^[$B!D^[(B)
>>
>> Why is there a little gap above the figure, though it should be "top".
>> How to avoid it?
>>
>> \starttext
>> \showframe
>> \placefigure[top]{}{\externalfigure[../Figures/Test][frame=off]}
>> \stoptext
>>
>
> The gap is the difference between the height of a typical line
> (\blank) and TeX's \topskip parameter. That explains it, but
> I do not see a nice way to correct the behaviour.
>
i'll add a switch:
\unprotect
\chardef\topinserttopskipmode=0 % 1 no topskip
\def\OTRONEdotopinsertions
{\ifvoid\topins\else
\ifgridsnapping
\box\topins
\vskip-\topskip
\vskip\strutheight % [xx] new: see icare topbleed
\else
\ifcase\topinserttopskipmode
% 0: default, do nothing
\or
% 1: no topskip (crossed fingers)
\vskip-\topskip
\vskip\strutheight
\fi
\unvbox\topins
\fi
\fi
\global\topinserted\zeropoint}
\protect
\starttext
\showframe
\placefigure[top]{}{\externalfigure[dummy][frame=on]}
\stoptext
so,
\chardef\topinserttopskipmode=1
will remove topskip; undocumented, not interfaced, etc
Hans
-----------------------------------------------------------------
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
-----------------------------------------------------------------
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2007-02-12 10:00 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-02-10 18:40 Gap above \placefigure[top] ? Steffen Wolfrum
2007-02-12 8:39 ` Taco Hoekwater
2007-02-12 10:00 ` Hans Hagen
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).