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
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
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
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 ___________________________________________________________________________________
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'
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 ___________________________________________________________________________________
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'
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
Gesendet: Dienstag, 05. Dezember 2023 14:58 An: mailing list for ConTeXt users 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 ___________________________________________________________________________________
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
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'
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
Gesendet: Dienstag, 05. Dezember 2023 14:58 An: mailing list for ConTeXt users 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 ___________________________________________________________________________________
participants (2)
-
Henning Hraban Ramm
-
Ursula Hermann