ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Blocks in margin with overflow of text
@ 2018-08-22 16:59 Fabrice Couvreur
  0 siblings, 0 replies; only message in thread
From: Fabrice Couvreur @ 2018-08-22 16:59 UTC (permalink / raw)
  To: mailing list for ConTeXt users


[-- Attachment #1.1: Type: text/plain, Size: 1229 bytes --]

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

[-- Attachment #1.2: Type: text/html, Size: 2060 bytes --]

[-- Attachment #2: Type: text/plain, Size: 492 bytes --]

___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : http://contextgarden.net
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2018-08-22 16:59 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-08-22 16:59 Blocks in margin with overflow of text Fabrice Couvreur

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).