From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/116509 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Alexandre Christe via ntg-context Newsgroups: gmane.comp.tex.context Subject: Margin figure in itemize Date: Mon, 21 Nov 2022 14:00:39 +0100 Message-ID: Reply-To: mailing list for ConTeXt users Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============2490093952186369915==" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="11512"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Alexandre Christe To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Mon Nov 21 14:01:55 2022 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane-mx.org Original-Received: from zapf.boekplan.nl ([5.39.185.232] helo=zapf.ntg.nl) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1ox6Qs-0002kv-Pg for gctc-ntg-context-518@m.gmane-mx.org; Mon, 21 Nov 2022 14:01:54 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id B0A632A4CEC; Mon, 21 Nov 2022 14:00:55 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at zapf.boekplan.nl Original-Received: from zapf.ntg.nl ([127.0.0.1]) by localhost (zapf.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id B-P7tj_Invg5; Mon, 21 Nov 2022 14:00:53 +0100 (CET) Original-Received: from zapf.ntg.nl (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 647882A4CFC; Mon, 21 Nov 2022 14:00:53 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id B6F6E2A4CEC for ; Mon, 21 Nov 2022 14:00:52 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at zapf.boekplan.nl Original-Received: from zapf.ntg.nl ([127.0.0.1]) by localhost (zapf.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id GKOqhsvdtP14 for ; Mon, 21 Nov 2022 14:00:51 +0100 (CET) Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=209.85.218.42; helo=mail-ej1-f42.google.com; envelope-from=aleks.christe@gmail.com; receiver= Original-Received: from mail-ej1-f42.google.com (mail-ej1-f42.google.com [209.85.218.42]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by zapf.ntg.nl (Postfix) with ESMTPS id C7F312A4AD5 for ; Mon, 21 Nov 2022 14:00:51 +0100 (CET) Original-Received: by mail-ej1-f42.google.com with SMTP id gv23so28356339ejb.3 for ; Mon, 21 Nov 2022 05:00:51 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=to:subject:message-id:date:from:mime-version:from:to:cc:subject :date:message-id:reply-to; bh=u2QWL3J3upaQqA4ToiFGplA8yvqwMCZjIVGgHUeBLb4=; b=X1Qt1DpPyWoQLGTiDIumPXIwxFp2ztT+Ib0xfjcQq6S6mXgkChJjKhpa4QmDwSwisD sp1iKbQs3VoNyaqAM40akDjgrSe+CPcmvTgg29ZzAGDGcCbduiHtJWxKwcr868DWD4yV yDQePhFIfrSBgn6vkhW/ZYFTicBYP5DC9/d9lXFwo8lRnKVL0tJJNWKnpYyAAk5/Usjs 0E7RkYLesJXCYALnzF3yoVv+aJ6T1CFDUP3YpSgVNMzUnr8VSkQDf4YLiYWbdZIGA/VL cxc9bCh/17Bk6NkBVxD5hWykcVWjiaP3eC3cP8Xn1zhEQIo72xrgovsmHWUYb0ksH3xP /a9g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=to:subject:message-id:date:from:mime-version:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=u2QWL3J3upaQqA4ToiFGplA8yvqwMCZjIVGgHUeBLb4=; b=0vdy3oAPhJmtgV7rd9HEza/AVrbdOiqYpYlWMldCcXx5MkYDPToWNUhJ7lLGFoeYv/ lsWIA8t/geNJ5kcdeDbWKje6pqnH6wtfrjODEv7LotZVfxzkz1vfC3prGkCCeobOefeD soi/1E146hJv67AHxdWIIwfDMgx0Un+oh+o8zNe896MOM6gm2I9psgGggONzXKA8pDzc THKzCvFHHC0DN1vNLmTCHZTc9NCFegfjw+NJMj0jy74c/M48hq4enAPDkYFflH0erXjF tAbR4tqTGewOnLePXxwFt9ruwsIvtXN7UKl1oy5T2IXrlugbthb3naEQYzzctsE2b5a7 5ryg== X-Gm-Message-State: ANoB5plp5659lRwQIkinRT4vI88JMFAdvwwPL+Hhz7qGZPPiB5kE6D82 TG5eRiys2BbCOe2YySdDjyHDkK9JFQyPoRtMTPtMXiFwIEk= X-Google-Smtp-Source: AA0mqf4weVDTOiCJz11vz35S07x88MljTacmML76c/uo0rG9T0pn5x5pc/mcQYHct9O7anNsW78j4UQNP5JN7dSuZcE= X-Received: by 2002:a17:906:6149:b0:78d:a154:ae with SMTP id p9-20020a170906614900b0078da15400aemr1036333ejl.259.1669035650812; Mon, 21 Nov 2022 05:00:50 -0800 (PST) X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.26 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: ntg-context-bounces@ntg.nl Original-Sender: "ntg-context" Xref: news.gmane.io gmane.comp.tex.context:116509 Archived-At: --===============2490093952186369915== Content-Type: multipart/alternative; boundary="00000000000015900f05edfaa573" --00000000000015900f05edfaa573 Content-Type: text/plain; charset="UTF-8" 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 --00000000000015900f05edfaa573 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Dear list,

With the following MWE I end= up with big gaps between margin figures in an itemized list. Is there a wa= y to remove that space in the text and place the figures in the margin one = below the other the best one can?

\setuppagenumber= ing
=C2=A0 [alternative=3Ddoublesided, location=3Dmargin]

\setupl= ayout
=C2=A0 [header=3D0pt,
=C2=A0 =C2=A0margin=3D4cm,
=C2=A0 =C2= =A0footerdistance=3D.5cm,
=C2=A0 =C2=A0topspace=3D1cm,
=C2=A0 =C2=A0b= ackspace=3D1cm,
=C2=A0 =C2=A0cutspace=3D2cm,
=C2=A0 =C2=A0width=3Dfit= ,
=C2=A0 =C2=A0height=3D\dimexpr
=C2=A0 =C2=A0 \paperheight-\topspace= +\footerheight+\footerdistance-4cm\relax]

% \showframe

\defin= efloat
=C2=A0 [marginfigure]
=C2=A0 [figure]

\setupfloat
= =C2=A0 [marginfigure]
=C2=A0 [outermargindistance=3D-\outermargintotal,<= br>=C2=A0 default=3D{outermargin,height,high,low,none}]

\starttext
\startstaticMPfigure{square}
=C2=A0 draw fullsquare scaled 3cm;\stopstaticMPfigure

\startitemize
=C2=A0 \placemarginfigure{}{\u= sestaticMPfigure[square]}
=C2=A0 \item bla
=C2=A0 \item bla
=C2=A0= \placemarginfigure{}{\usestaticMPfigure[square]}
=C2=A0 \item bla
\s= topitemize

\stoptext

Thanks in advance,=
Alex
--00000000000015900f05edfaa573-- --===============2490093952186369915== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX18KSWYgeW91ciBxdWVzdGlvbiBpcyBvZiBpbnRlcmVz dCB0byBvdGhlcnMgYXMgd2VsbCwgcGxlYXNlIGFkZCBhbiBlbnRyeSB0byB0aGUgV2lraSEKCm1h aWxsaXN0IDogbnRnLWNvbnRleHRAbnRnLm5sIC8gaHR0cHM6Ly93d3cubnRnLm5sL21haWxtYW4v bGlzdGluZm8vbnRnLWNvbnRleHQKd2VicGFnZSAgOiBodHRwczovL3d3dy5wcmFnbWEtYWRlLm5s IC8gaHR0cDovL2NvbnRleHQuYWFuaGV0Lm5ldAphcmNoaXZlICA6IGh0dHBzOi8vYml0YnVja2V0 Lm9yZy9waGcvY29udGV4dC1taXJyb3IvY29tbWl0cy8Kd2lraSAgICAgOiBodHRwczovL2NvbnRl eHRnYXJkZW4ubmV0Cl9fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fCg== --===============2490093952186369915==--