<div dir="ltr"><div class="gmail_default" style="font-family:verdana,sans-serif"><span id="gmail-result_box" class="gmail-" lang="en"><br>H<span>ello,</span><br><span>The idea is to put all the examples of the course in the margin.</span> <span>I see that the text is sometimes overflowing.</span> <span>How to improve the code ?</span><br><span>Thanks</span><span>.</span><br><span>Fabrice</span></span></div><div class="gmail_default" style="font-family:verdana,sans-serif"><span id="gmail-result_box" class="gmail-" lang="en"><span><br></span></span></div><div class="gmail_default" style="font-family:verdana,sans-serif"><span id="gmail-result_box" class="gmail-" lang="en"><span>\definemeasure[Margin][3.5cm]<br><br><br>\setuplayout<br>  [<br>    backspace=20mm,<br>    width=120mm,<br>    height=middle,<br>    footer=\bodyfontsize,<br>    header=3\bodyfontsize,<br>    headerdistance=\bodyfontsize,<br>    bottom=3\bodyfontsize,<br>    location={middle},<br>    margin=\measure{Margin},<br>    rightmargin=4.5cm,<br>    marking=on,<br>  ]<br><br>\definefloat<br>   [recipe]<br>   [figure]<br> <br>\setupfloat<br>   [recipe]<br>   [default={margin,none}]<br><br>\defineconversionset [digit] [] [n]<br><br>\setupenumerations<br>  [before={\blank},<br>   after={\blank},<br>   alternative=serried,<br>   title=yes,<br>   distance=1em,<br>  %headcommand=\groupedcommand{}{~---~},<br>   distance=none,<br>   prefix=yes,<br>   prefixsegments=chapter,<br>   way=bychapter,<br>   prefixconversionset=digit,<br>   titlestyle=bold,<br>   width=broad]<br><br>\defineenumeration<br>   [example]<br>   [text=Exemple,<br>    style=italic]<br><br><br>\showframe<br><br>\starttext<br>\startchapter[title=First chapter]<br>\placerecipe{}{<br>  \startexample<br>   \input ward<br>   \stopexample}<br>\stopchapter<br>\startchapter[title=Second chapter]<br>\placerecipe{}{<br>  \startexample<br>   \input ward<br>  \stopexample}<br>\stopchapter<br>\stoptext<br></span></span></div></div>