* Question to floating figure and grid
@ 2019-03-22 17:56 Tomas Hala
0 siblings, 0 replies; only message in thread
From: Tomas Hala @ 2019-03-22 17:56 UTC (permalink / raw)
To: Mailing list ConTeXt
Hi all,
the following code worked in TL2017 but in TL2018 the unwanted vertical
space appears before the 2nd knuth.tex. I do not know how to supress it.
I also do not know how to deal with the distance between the text and the
figure, I guessed that is controled by leftmargindistance but it makes
nothing. What am I doing wrong?
Best wishes,
Tomáš
%%%%%%%%%%%%%%%
\setuplayout[grid=yes]
\starttext
\def\myfig#1#2#3#4{
\startplacefigure[location={right,none}]
\setupfloat[roffset=0cc] % leftmargindistance=2cm
\startfloatcombination[1*1]
\setupfloatcaption[align=middle]
\placefigure[][#1]{#2}{\externalfigure[#3][#4]}
\stopfloatcombination
\stopplacefigure}
\input knuth
\myfig{fig1}{This is FIG1}{any.jpg}{scale=250}
\input knuth
\input knuth
\stoptext
%%%%%%%%%%%%%%%%
___________________________________________________________________________________
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] only message in thread
only message in thread, other threads:[~2019-03-22 17:56 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-03-22 17:56 Question to floating figure and grid Tomas Hala
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).