From: Tomas Hala <tomas.hala@mendelu.cz>
To: Mailing list ConTeXt <ntg-context@ntg.nl>
Subject: Question to floating figure and grid
Date: Fri, 22 Mar 2019 18:56:20 +0100 [thread overview]
Message-ID: <20190322175620.GC13926@akela.mendelu.cz> (raw)
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
___________________________________________________________________________________
reply other threads:[~2019-03-22 17:56 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20190322175620.GC13926@akela.mendelu.cz \
--to=tomas.hala@mendelu.cz \
--cc=ntg-context@ntg.nl \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).