ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Alain Delmotte via ntg-context <ntg-context@ntg.nl>
To: Alexandre Christe via ntg-context <ntg-context@ntg.nl>
Cc: Alain Delmotte <alain.delmotte@leliseron.org>
Subject: Re: Margin figure in itemize
Date: Tue, 22 Nov 2022 14:13:28 +0100	[thread overview]
Message-ID: <a9b3f721-4ffb-ca6c-b394-dadf73f5866f@leliseron.org> (raw)
In-Reply-To: <CALC5-ULvSHKgfvAK21M_yTBT80Mm0oi7XBfokKJFzWuigTffOg@mail.gmail.com>


[-- Attachment #1.1: Type: text/plain, Size: 1472 bytes --]

Hi!

Le 21/11/2022 à 14:00, Alexandre Christe via ntg-context a 
écrit :
> 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
>
For me it looks alright, in particular if you have longer 
text in the \item. The figures are aligned with the \item's.

One thing which changes is the space between de items: 
between 2 and 3. I have no answer for that.

---
Alain



[-- Attachment #1.2: Type: text/html, Size: 2726 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
___________________________________________________________________________________

      reply	other threads:[~2022-11-22 13:13 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-11-21 13:00 Alexandre Christe via ntg-context
2022-11-22 13:13 ` Alain Delmotte via ntg-context [this message]

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=a9b3f721-4ffb-ca6c-b394-dadf73f5866f@leliseron.org \
    --to=ntg-context@ntg.nl \
    --cc=alain.delmotte@leliseron.org \
    /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).