From: Alexandre Christe via ntg-context <ntg-context@ntg.nl>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Cc: Alexandre Christe <aleks.christe@gmail.com>
Subject: Margin figure in itemize
Date: Mon, 21 Nov 2022 14:00:39 +0100 [thread overview]
Message-ID: <CALC5-ULvSHKgfvAK21M_yTBT80Mm0oi7XBfokKJFzWuigTffOg@mail.gmail.com> (raw)
[-- Attachment #1.1: Type: text/plain, Size: 980 bytes --]
Dear list,
With the following MWE I end up with big gaps between margin figures in an
itemized list. Is there a way to remove that space in the text and place
the figures in the margin one below the other the best one can?
\setuppagenumbering
[alternative=doublesided, location=margin]
\setuplayout
[header=0pt,
margin=4cm,
footerdistance=.5cm,
topspace=1cm,
backspace=1cm,
cutspace=2cm,
width=fit,
height=\dimexpr
\paperheight-\topspace+\footerheight+\footerdistance-4cm\relax]
% \showframe
\definefloat
[marginfigure]
[figure]
\setupfloat
[marginfigure]
[outermargindistance=-\outermargintotal,
default={outermargin,height,high,low,none}]
\starttext
\startstaticMPfigure{square}
draw fullsquare scaled 3cm;
\stopstaticMPfigure
\startitemize
\placemarginfigure{}{\usestaticMPfigure[square]}
\item bla
\item bla
\placemarginfigure{}{\usestaticMPfigure[square]}
\item bla
\stopitemize
\stoptext
Thanks in advance,
Alex
[-- Attachment #1.2: Type: text/html, Size: 1234 bytes --]
[-- Attachment #2: Type: text/plain, Size: 496 bytes --]
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context
webpage : https://www.pragma-ade.nl / http://context.aanhet.net
archive : https://bitbucket.org/phg/context-mirror/commits/
wiki : https://contextgarden.net
___________________________________________________________________________________
next reply other threads:[~2022-11-21 13:00 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-11-21 13:00 Alexandre Christe via ntg-context [this message]
2022-11-22 13:13 ` Alain Delmotte via ntg-context
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=CALC5-ULvSHKgfvAK21M_yTBT80Mm0oi7XBfokKJFzWuigTffOg@mail.gmail.com \
--to=ntg-context@ntg.nl \
--cc=aleks.christe@gmail.com \
/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).