ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* [NTG-context] Colored Paragraph
@ 2023-12-05 13:16 Ursula Hermann
  2023-12-05 13:57 ` [NTG-context] " Henning Hraban Ramm
  0 siblings, 1 reply; 6+ messages in thread
From: Ursula Hermann @ 2023-12-05 13:16 UTC (permalink / raw)
  To: mailing list for ConTeXt users


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

^ permalink raw reply	[flat|nested] 6+ messages in thread

* [NTG-context] Re: Colored Paragraph
  2023-12-05 13:16 [NTG-context] Colored Paragraph Ursula Hermann
@ 2023-12-05 13:57 ` Henning Hraban Ramm
  2023-12-05 14:27   ` Ursula Hermann
  2023-12-05 14:29   ` Ursula Hermann
  0 siblings, 2 replies; 6+ messages in thread
From: Henning Hraban Ramm @ 2023-12-05 13:57 UTC (permalink / raw)
  To: mailing list for ConTeXt users

Am 05.12.23 um 14:16 schrieb Ursula Hermann:
> The paragraph should have a color in the background. How can I get an 
> colored paragraph?

Did you try \definetextbackground?

https://wiki.contextgarden.net/TextBackground
https://wiki.contextgarden.net/Command/definetextbackground

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

^ permalink raw reply	[flat|nested] 6+ messages in thread

* [NTG-context] Re: Colored Paragraph
  2023-12-05 13:57 ` [NTG-context] " Henning Hraban Ramm
@ 2023-12-05 14:27   ` Ursula Hermann
  2023-12-05 14:29   ` Ursula Hermann
  1 sibling, 0 replies; 6+ messages in thread
From: Ursula Hermann @ 2023-12-05 14:27 UTC (permalink / raw)
  To: mailing list for ConTeXt users

[-- Attachment #1: Type: text/plain, Size: 1177 bytes --]

Dear Hraban, 

I have tried it now, I have sent you the pdf. This works. But the paragraph should fill the whole blackrule. 

-----Ursprüngliche Nachricht-----
Von: Henning Hraban Ramm <texml@fiee.net> 
Gesendet: Dienstag, 05. Dezember 2023 14:58
An: mailing list for ConTeXt users <ntg-context@ntg.nl>
Betreff: [NTG-context] Re: Colored Paragraph

Am 05.12.23 um 14:16 schrieb Ursula Hermann:
> The paragraph should have a color in the background. How can I get an 
> colored paragraph?

Did you try \definetextbackground?

https://wiki.contextgarden.net/TextBackground
https://wiki.contextgarden.net/Command/definetextbackground

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

[-- Attachment #2: u.pdf --]
[-- Type: application/pdf, Size: 10363 bytes --]

[-- Attachment #3: 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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 6+ messages in thread

* [NTG-context] Re: Colored Paragraph
  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
  1 sibling, 1 reply; 6+ messages in thread
From: Ursula Hermann @ 2023-12-05 14:29 UTC (permalink / raw)
  To: mailing list for ConTeXt users

Dear Hraban, 
Sorry, forgot my name 
Uschi 

-----Ursprüngliche Nachricht-----
Von: Ursula Hermann 
Gesendet: Dienstag, 05. Dezember 2023 15:27
An: 'mailing list for ConTeXt users' <ntg-context@ntg.nl>
Betreff: AW: [NTG-context] Re: Colored Paragraph

Dear Hraban, 

I have tried it now, I have sent you the pdf. This works. But the paragraph should fill the whole blackrule. 

-----Ursprüngliche Nachricht-----
Von: Henning Hraban Ramm <texml@fiee.net>
Gesendet: Dienstag, 05. Dezember 2023 14:58
An: mailing list for ConTeXt users <ntg-context@ntg.nl>
Betreff: [NTG-context] Re: Colored Paragraph

Am 05.12.23 um 14:16 schrieb Ursula Hermann:
> The paragraph should have a color in the background. How can I get an 
> colored paragraph?

Did you try \definetextbackground?

https://wiki.contextgarden.net/TextBackground
https://wiki.contextgarden.net/Command/definetextbackground

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

^ permalink raw reply	[flat|nested] 6+ messages in thread

* [NTG-context] Re: Colored Paragraph
  2023-12-05 14:29   ` Ursula Hermann
@ 2023-12-05 14:46     ` Henning Hraban Ramm
  2023-12-05 15:15       ` Ursula Hermann
  0 siblings, 1 reply; 6+ messages in thread
From: Henning Hraban Ramm @ 2023-12-05 14:46 UTC (permalink / raw)
  To: ntg-context

Hi Uschi,
unfortunately you also forgot the source code.

I’m not sure if the examples in the wiki are good – the combination with 
\startnarrower might be a problem.

Maybe setting the width helps (e.g. to \makeupwidth).

Hraban

Am 05.12.23 um 15:29 schrieb Ursula Hermann:
> Dear Hraban,
> Sorry, forgot my name
> Uschi
> 
> -----Ursprüngliche Nachricht-----
> Von: Ursula Hermann
> Gesendet: Dienstag, 05. Dezember 2023 15:27
> An: 'mailing list for ConTeXt users' <ntg-context@ntg.nl>
> Betreff: AW: [NTG-context] Re: Colored Paragraph
> 
> Dear Hraban,
> 
> I have tried it now, I have sent you the pdf. This works. But the paragraph should fill the whole blackrule.
> 
> -----Ursprüngliche Nachricht-----
> Von: Henning Hraban Ramm <texml@fiee.net>
> Gesendet: Dienstag, 05. Dezember 2023 14:58
> An: mailing list for ConTeXt users <ntg-context@ntg.nl>
> Betreff: [NTG-context] Re: Colored Paragraph
> 
> Am 05.12.23 um 14:16 schrieb Ursula Hermann:
>> The paragraph should have a color in the background. How can I get an
>> colored paragraph?
> 
> Did you try \definetextbackground?
> 
> https://wiki.contextgarden.net/TextBackground
> https://wiki.contextgarden.net/Command/definetextbackground
> 
> Hraban
> ___________________________________________________________________________________
> 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
> ___________________________________________________________________________________
> ___________________________________________________________________________________
> 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
> ___________________________________________________________________________________

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

^ permalink raw reply	[flat|nested] 6+ messages in thread

* [NTG-context] Re: Colored Paragraph
  2023-12-05 14:46     ` Henning Hraban Ramm
@ 2023-12-05 15:15       ` Ursula Hermann
  0 siblings, 0 replies; 6+ messages in thread
From: Ursula Hermann @ 2023-12-05 15:15 UTC (permalink / raw)
  To: mailing list for ConTeXt users

[-- Attachment #1: Type: text/plain, Size: 3212 bytes --]

Dear Hraban, 

It was \startnarrower \stopnarrower, I put it out, now it is perfekt. I also send the pdf. 

Many thanks. 
Uschi 

-----Ursprüngliche Nachricht-----
Von: Henning Hraban Ramm <texml@fiee.net> 
Gesendet: Dienstag, 05. Dezember 2023 15:47
An: ntg-context@ntg.nl
Betreff: [NTG-context] Re: Colored Paragraph

Hi Uschi,
unfortunately you also forgot the source code.

I’m not sure if the examples in the wiki are good – the combination with \startnarrower might be a problem.

Maybe setting the width helps (e.g. to \makeupwidth).

Hraban

Am 05.12.23 um 15:29 schrieb Ursula Hermann:
> Dear Hraban,
> Sorry, forgot my name
> Uschi
> 
> -----Ursprüngliche Nachricht-----
> Von: Ursula Hermann
> Gesendet: Dienstag, 05. Dezember 2023 15:27
> An: 'mailing list for ConTeXt users' <ntg-context@ntg.nl>
> Betreff: AW: [NTG-context] Re: Colored Paragraph
> 
> Dear Hraban,
> 
> I have tried it now, I have sent you the pdf. This works. But the paragraph should fill the whole blackrule.
> 
> -----Ursprüngliche Nachricht-----
> Von: Henning Hraban Ramm <texml@fiee.net>
> Gesendet: Dienstag, 05. Dezember 2023 14:58
> An: mailing list for ConTeXt users <ntg-context@ntg.nl>
> Betreff: [NTG-context] Re: Colored Paragraph
> 
> Am 05.12.23 um 14:16 schrieb Ursula Hermann:
>> The paragraph should have a color in the background. How can I get an 
>> colored paragraph?
> 
> Did you try \definetextbackground?
> 
> https://wiki.contextgarden.net/TextBackground
> https://wiki.contextgarden.net/Command/definetextbackground
> 
> Hraban
> ______________________________________________________________________
> _____________ 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
> ______________________________________________________________________
> _____________ 
> ______________________________________________________________________
> _____________ 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
> ______________________________________________________________________
> _____________

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

[-- Attachment #2: u.pdf --]
[-- Type: application/pdf, Size: 10371 bytes --]

[-- Attachment #3: 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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2023-12-05 15:17 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-12-05 13:16 [NTG-context] Colored Paragraph Ursula Hermann
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

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).