
Dear List,
After some work, I have a new example,.
\starttext
\setuppapersize
[A4]
\setupbodyfont[modern, 11.30pt]
%hex
\definecolor[almond][x=EED9C4] % produced 1958–present
\definecolor[mediumviolet][x=8F47B3]
\definesidebar[simple][rulethickness=1pt,distance=4pt]
\setupcolors[state=start, textcolor=mediumviolet, blackrulecolor=almond]
\defineframed
[Me]
[background=color,backgroundcolor=MediumViolet, x=8F47B3]
\blackrule[color=mediumviolet,x=8F47B3,height=.50 ex, width=13.50cm]\par\nointerlineskip
\blackrule[color=almond, x=EED9C4, height=.40ex, width=13.50cm] \par \nointerlineskip \Me[frame=on, corner=rectangular, topframe=off, bottomframe=off, align=right, framecolor=mediumviolet, x=8F47B3, background=color, backgroundcolor=almond, x=EED9C4, width=13.50cm]{\bf Hallo, das bin ich}\nointerlineskip
\definecolor[mediumviolet][x=8F47B3]
\definecolor[almond][x=EED9C4] % produced 1958–present
\blackrule[color=almond, x=EED9C4, height=.40ex, width=13.50cm] \par \nointerlineskip \Me[frame=on, corner=rectangular, topframe=off, bottomframe=off, align=right, framecolor=mediumviolet, x=8F47B3, background=color, backgroundcolor=almond, x=EED9C4, width=13.50cm]{\startframedtext[width=13.50cm]
\startcolumns[rule=on,n=2,tolerance=verytolerant,
color=Mediumviolet,width=13.50cm]
\color[mediumviolet] {Thus, I came to the conclusion that the designer of a new system must
not only be the.
\bf D.E. Knuth}
\stopcolumns
\stopframedtext}
But now I have a question: I only need the columns, with white background and mediumviolet, sometimes black color, as textcolor, the topframe should be off. How can I do that?
Like this, example, after: Hallo das bin ich.
\starttext
\setupcolors[state=start]
\definetextbackground [book]
[state=start, topoffset=.5ex, location=paragraph,
leftoffset=1ex,bottomoffset=1ex]
\starttextbackground[book]
Tufte again
\startcolumns[n=2]
{Das bin ich}
\column
{Du}
\stopcolumns
\stoptextbackground
\stoptext
Many thanks,
Uschi
________________________________
Von: Ursula Hermann
Gesendet: Mittwoch, 12. März 2025 11:18:43
An: mailing list for ConTeXt users
Betreff: AW: [NTG-context] Re: Color in a Columntext, how does it work?, Here is my example, that works great now!
Dear List,
First: Many thanks, for your Tips and for helping. Here is my example, that works great now.
\starttext
\setuppapersize
[A4]
\setupbodyfont[modern, 11.30pt]
%hex
\definecolor[almond][x=EED9C4] % produced 1958–present
\definecolor[mediumviolet][x=8F47B3]
\definesidebar[simple][rulethickness=1pt,distance=4pt]
\setupcolors[state=start, textcolor=mediumviolet, blackrulecolor=almond]
\defineframed
[Me]
[background=color,backgroundcolor=MediumViolet, x=8F47B3]
\blackrule[color=mediumviolet,x=8F47B3,height=.50 ex, width=13.50cm]\par\nointerlineskip
\blackrule[color=almond, x=EED9C4, height=.40ex, width=13.50cm] \par \nointerlineskip \Me[frame=on, corner=rectangular, topframe=off, bottomframe=off, align=right, framecolor=mediumviolet, x=8F47B3, background=color, backgroundcolor=almond, x=EED9C4, width=13.50cm]{\bf Hallo, das bin ich}
\definecolor[mediumviolet][x=8F47B3]
\startcolumns[rule=on,n=2,tolerance=verytolerant,
color=Mediumviolet]
\color[mediumviolet] {Thus, I came to the conclusion that the designer of a new system must
not only be the implementer and first ..
\bf D.E. Knuth}
\stopcolumns
Many regards
Uschi
Von: Ursula Hermann
Gesendet: Freitag, 07. März 2025 10:46
An: mailing list for ConTeXt users
Dear List,
I have tried an example, where I would like to have sentences in color in a column, but there is something wrong.
\setuppapersize [A5]
\starttext % hex \definecolor=[MediumViolet][h=8F47B3]
\startcolumns[rule=on,n=2,tolerance=verytolerant, foregroundcolor=Mediumviolet] Thus, I came to the conclusion that the designer of a new system must not only be the implementer and first .. \bf D.E. Knuth} \stopcolumns
\stoptext
1. Use "x" as key to set the color with a hey value, while the "h" key works to set the color it is intended for hsv-values. 2. You have to replace "foregroundcolor=..." with "color=...". 3. You have to pass the correct name as argument to the color key but in your example you use an uppercase V in \definecolor but a lowercase v in \startcolumns. 4. Please test your example before you send them to the list because there is a } at the end of the text without a previous {. Wolfgang ___________________________________________________________________________________ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nlmailto: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.nlmailto: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 ___________________________________________________________________________________