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