[NTG-context] Blocks in margin with overflow of text

Fabrice Couvreur fabrice1.couvreur at gmail.com
Wed Aug 22 18:59:09 CEST 2018


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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.ntg.nl/pipermail/ntg-context/attachments/20180822/ef9fcd29/attachment-0001.html>


More information about the ntg-context mailing list