ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Ursula Hermann <ursula.hermann@univie.ac.at>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: [NTG-context] Colored Paragraph
Date: Tue, 5 Dec 2023 13:16:03 +0000	[thread overview]
Message-ID: <fec6256000224969a9cf9ab76ce26e21@univie.ac.at> (raw)


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

Dear List,

i have this example:

\setupbodyfont[modern,10pt]
\definemargindata  [MyInMargin][inright]
\definemarginframed[MyInMargin][topframe=on,bottomframe=on,rulethickness=1pt,width=1cm]

\defineenumeration
  [theorem]
  [
    text=Theorem,
    title=yes,
    width=fit,
    distance=0.5em,
    alternative=serried,
  ]
\margintext{\blackrule[color=black, height=0.25ex, width=1cm]\\}\blackrule[color=black, height=0.25ex, width=15cm]
\starttext
\margintext {1.1.1}

\startparagraph
It was essential for Hasselt to have a bridge across the Zwarte
Water river. The bishop of Utrecht gave Hasselt his consent in
1486.
\blank
Other cities in the neighbourhood of Hasselt were afraid of the
toll money to be paid when crossing this bridge so they
prevented the construction for many years.
\stopparagraph
\stoptext

The paragraph should have a color in the background. How can I get an colored paragraph?

Many thanks
Uschi

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

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

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

maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive  : https://github.com/contextgarden/context
wiki     : https://wiki.contextgarden.net
___________________________________________________________________________________

             reply	other threads:[~2023-12-05 13:18 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-12-05 13:16 Ursula Hermann [this message]
2023-12-05 13:57 ` [NTG-context] " Henning Hraban Ramm
2023-12-05 14:27   ` Ursula Hermann
2023-12-05 14:29   ` Ursula Hermann
2023-12-05 14:46     ` Henning Hraban Ramm
2023-12-05 15:15       ` Ursula Hermann

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=fec6256000224969a9cf9ab76ce26e21@univie.ac.at \
    --to=ursula.hermann@univie.ac.at \
    --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).