From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/101688 Path: news.gmane.org!.POSTED!not-for-mail From: Fabrice Couvreur Newsgroups: gmane.comp.tex.context Subject: Blocks in margin with overflow of text Date: Wed, 22 Aug 2018 18:59:09 +0200 Message-ID: Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============8597659279266395394==" X-Trace: blaine.gmane.org 1534957071 25517 195.159.176.226 (22 Aug 2018 16:57:51 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Wed, 22 Aug 2018 16:57:51 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Wed Aug 22 18:57:46 2018 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from zapf.boekplan.nl ([5.39.185.232] helo=zapf.ntg.nl) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fsWS2-0006X7-I9 for gctc-ntg-context-518@m.gmane.org; Wed, 22 Aug 2018 18:57:46 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id EFB6D5503B; Wed, 22 Aug 2018 18:59:33 +0200 (CEST) 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 SoR4925eAUK1; Wed, 22 Aug 2018 18:59:33 +0200 (CEST) Original-Received: from zapf.ntg.nl (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 28E5A5503C; Wed, 22 Aug 2018 18:59:33 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 6ABA95503C for ; Wed, 22 Aug 2018 18:59:32 +0200 (CEST) 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 gLtn-5_pRKIW for ; Wed, 22 Aug 2018 18:59:31 +0200 (CEST) Original-Received: from mail-wm0-f42.google.com (mail-wm0-f42.google.com [74.125.82.42]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by zapf.ntg.nl (Postfix) with ESMTPS id 667155503B for ; Wed, 22 Aug 2018 18:59:21 +0200 (CEST) Original-Received: by mail-wm0-f42.google.com with SMTP id y2-v6so2663765wma.1 for ; Wed, 22 Aug 2018 09:59:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to:cc; bh=Vhv2XfzgYF9I3l5JyxpOfyPzzeN90wZd85PMw68xl6Q=; b=ljQm9mlyCjUJHNdkaU5gek1j1R5vivI3vmmLXnPBHAAaP1wd9HbrK/4SVRfqKqzGtI TWG1BndfsME/vCXr4dQEgrZlK+8Sy4vKmO6sQOZPpGmem9nbZ+eV7XO4pbBtVT93gsXr WgqJhLgW5VzFinfsYQgLcYlOeTRrGzDCdHpTyLP8emQxGL4itutbwf+qLr8pExajdDQD UrnVQ5BjAP4u1D11MPSm1LegW+5bzUTJaVyZaetDlfbODt+5eDpBFDsjHuubLnRnuqrn veWtQL3oF4JYp5ETobgFLUyx40qAF4Iyv4G0ASCrZhvvNjy1d/gLP2LH2+MmPR99pr/6 ml6A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to:cc; bh=Vhv2XfzgYF9I3l5JyxpOfyPzzeN90wZd85PMw68xl6Q=; b=ZPCuxT0RawXt0Bahb+uKeLniM9KQMzVhQwdG7ijwHu/YYHz6SHdeOEVTnzQHxo99Zo R18ntbuI9YJL2Fe3DUP0BuAKShseqwl2hAb2UQS56InWGBsNYDUL3DGZNjWy65slO5C3 da6nYy0g5MK/WzTzxUw2frjDOHMccsWkTOM3Zjp7FGT8d0LRS0wqWL5OeWcLZ5bAuJq6 LKoiSN5SBjdl6CeiNdPNHeUZF3Kx8WIGMCmIwppGH4H5ix4rruyi0HEIODJJE7L1Rpar HnXE1/iHQCnIHAAQQtWt3Y74cCBFKnLaQn0if4dhutyyMp6bHOSjiXd28Rh/wnYnMq8k tV2g== X-Gm-Message-State: APzg51CEm1my3GwF4XEvC+uzolcQnnJTu7wL4Hk0HjLH80c+cE4eiq2/ YhikAFNkHpKeiVztFVpMtKXEgsrtrn5BByT3k2/Jvfw+ X-Google-Smtp-Source: ANB0VdZefVQg7wIxuXJrzu7PBngRqZCXO2vAY1Sxp/rG2qGgN1tMDXeh0kFA2SkZlvetjUn/51Q+7/7paZ3PGTcBQuU= X-Received: by 2002:a1c:8c49:: with SMTP id o70-v6mr2668916wmd.11.1534957160729; Wed, 22 Aug 2018 09:59:20 -0700 (PDT) X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.16 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.org gmane.comp.tex.context:101688 Archived-At: --===============8597659279266395394== Content-Type: multipart/alternative; boundary="0000000000004f92e605740910e0" --0000000000004f92e605740910e0 Content-Type: text/plain; charset="UTF-8" Hello, The idea is to put all the examples of the course in the margin. I see that the text is sometimes overflowing. How to improve the code ? Thanks. Fabrice \definemeasure[Margin][3.5cm] \setuplayout [ backspace=20mm, width=120mm, height=middle, footer=\bodyfontsize, header=3\bodyfontsize, headerdistance=\bodyfontsize, bottom=3\bodyfontsize, location={middle}, margin=\measure{Margin}, rightmargin=4.5cm, marking=on, ] \definefloat [recipe] [figure] \setupfloat [recipe] [default={margin,none}] \defineconversionset [digit] [] [n] \setupenumerations [before={\blank}, after={\blank}, alternative=serried, title=yes, distance=1em, %headcommand=\groupedcommand{}{~---~}, distance=none, prefix=yes, prefixsegments=chapter, way=bychapter, prefixconversionset=digit, titlestyle=bold, width=broad] \defineenumeration [example] [text=Exemple, style=italic] \showframe \starttext \startchapter[title=First chapter] \placerecipe{}{ \startexample \input ward \stopexample} \stopchapter \startchapter[title=Second chapter] \placerecipe{}{ \startexample \input ward \stopexample} \stopchapter \stoptext --0000000000004f92e605740910e0 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable

= Hello,
The idea is to put all the examples of the cou= rse in the margin. I see that the text is sometimes overflowin= g. How to improve the code ?
Thanks.

Fabrice

\definemeasure[Margin][3.5cm]
<= br>
\setuplayout
=C2=A0 [
=C2=A0=C2=A0=C2=A0 backspace=3D20mm,
= =C2=A0=C2=A0=C2=A0 width=3D120mm,
=C2=A0=C2=A0=C2=A0 height=3Dmiddle,=C2=A0=C2=A0=C2=A0 footer=3D\bodyfontsize,
=C2=A0=C2=A0=C2=A0 header=3D= 3\bodyfontsize,
=C2=A0=C2=A0=C2=A0 headerdistance=3D\bodyfontsize,
= =C2=A0=C2=A0=C2=A0 bottom=3D3\bodyfontsize,
=C2=A0=C2=A0=C2=A0 location= =3D{middle},
=C2=A0=C2=A0=C2=A0 margin=3D\measure{Margin},
=C2=A0=C2= =A0=C2=A0 rightmargin=3D4.5cm,
=C2=A0=C2=A0=C2=A0 marking=3Don,
=C2= =A0 ]

\definefloat
=C2=A0=C2=A0 [recipe]
=C2=A0=C2=A0 [figure]=
=C2=A0
\setupfloat
=C2=A0=C2=A0 [recipe]
=C2=A0=C2=A0 [default= =3D{margin,none}]

\defineconversionset [digit] [] [n]

\setupe= numerations
=C2=A0 [before=3D{\blank},
=C2=A0=C2=A0 after=3D{\blank},=
=C2=A0=C2=A0 alternative=3Dserried,
=C2=A0=C2=A0 title=3Dyes,
=C2= =A0=C2=A0 distance=3D1em,
=C2=A0 %headcommand=3D\groupedcommand{}{~---~}= ,
=C2=A0=C2=A0 distance=3Dnone,
=C2=A0=C2=A0 prefix=3Dyes,
=C2=A0= =C2=A0 prefixsegments=3Dchapter,
=C2=A0=C2=A0 way=3Dbychapter,
=C2=A0= =C2=A0 prefixconversionset=3Ddigit,
=C2=A0=C2=A0 titlestyle=3Dbold,
= =C2=A0=C2=A0 width=3Dbroad]

\defineenumeration
=C2=A0=C2=A0 [exam= ple]
=C2=A0=C2=A0 [text=3DExemple,
=C2=A0=C2=A0=C2=A0 style=3Ditalic]=


\showframe

\starttext
\startchapter[title=3DFirst cha= pter]
\placerecipe{}{
=C2=A0 \startexample
=C2=A0=C2=A0 \input war= d
=C2=A0=C2=A0 \stopexample}
\stopchapter
\startchapter[title=3DSe= cond chapter]
\placerecipe{}{
=C2=A0 \startexample
=C2=A0=C2=A0 \i= nput ward
=C2=A0 \stopexample}
\stopchapter
\stoptext
--0000000000004f92e605740910e0-- --===============8597659279266395394== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX18KSWYgeW91ciBxdWVzdGlvbiBpcyBvZiBpbnRlcmVz dCB0byBvdGhlcnMgYXMgd2VsbCwgcGxlYXNlIGFkZCBhbiBlbnRyeSB0byB0aGUgV2lraSEKCm1h aWxsaXN0IDogbnRnLWNvbnRleHRAbnRnLm5sIC8gaHR0cDovL3d3dy5udGcubmwvbWFpbG1hbi9s aXN0aW5mby9udGctY29udGV4dAp3ZWJwYWdlICA6IGh0dHA6Ly93d3cucHJhZ21hLWFkZS5ubCAv IGh0dHA6Ly9jb250ZXh0LmFhbmhldC5uZXQKYXJjaGl2ZSAgOiBodHRwczovL2JpdGJ1Y2tldC5v cmcvcGhnL2NvbnRleHQtbWlycm9yL2NvbW1pdHMvCndpa2kgICAgIDogaHR0cDovL2NvbnRleHRn YXJkZW4ubmV0Cl9fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f --===============8597659279266395394==--