ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Fabrice Couvreur <fabrice1.couvreur@gmail.com>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Blocks in margin with overflow of text
Date: Wed, 22 Aug 2018 18:59:09 +0200	[thread overview]
Message-ID: <CACyK-eqzJuJNPErLKYwRhi1f9Qz69F3HsHcAXeS1_XBFhMX3zg@mail.gmail.com> (raw)


[-- 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
___________________________________________________________________________________

                 reply	other threads:[~2018-08-22 16:59 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CACyK-eqzJuJNPErLKYwRhi1f9Qz69F3HsHcAXeS1_XBFhMX3zg@mail.gmail.com \
    --to=fabrice1.couvreur@gmail.com \
    --cc=ntg-context@ntg.nl \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).