Color in a Columntext, how does it work?

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 Many thanks Uschi

Am 05.03.2025 um 15:07 schrieb Ursula Hermann:
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

Dear Wolfgang,
Uups, i was too quick, so I will do it better. Many thanks for your tipps.
Uschi
-----Ursprüngliche Nachricht-----
Von: Wolfgang Schuster
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.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 Wolfgang,
So this the example now,
\setuppapersize
[A4]
\starttext
% hex
\definecolor[almond][x=EED9C4]
\definecolor[mysticmaroon][x=AD4379]
\blackrule[color=mysticmaroon,height=3.ex, width=13.50cm]\par
\defineframed
[Me]
[background=color,backgroundcolor=almond] \nointerlineskip
\Me[frame=on, corner=rectangular, topframe=off, bottomframe=off, framecolor=mysticmaroon,width=13.50cm]
%hex
\definecolor[mysticmaroon][x=AD4379]
Hey, \color[mysticmaroon]{Hello}
\startcolumns[rule=on,n=2,tolerance=verytolerant,color=mysticmaroon]
\color[mysticmaroon]{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
and after compiling it, I get:
Command Line: context.exe --synctex=-1 "column.tex"
Startup Folder: C:\Users\Administrator\Downloads\Neuer Ordner
resolvers | formats | executing runner 'run luametatex format': luametatex --jobname="./column.tex" --socket --shell-escape --fmt=C:/texlive/2024/texmf-var/luametatex-cache/context/a86c089b384a3076dc514ba966a1fac9/formats/luametatex/cont-en.fmt --lua=C:/texlive/2024/texmf-var/luametatex-cache/context/a86c089b384a3076dc514ba966a1fac9/formats/luametatex/cont-en.lui --c:currentrun=1 --c:fulljobname="./column.tex" --c:input="./column.tex" --c:kindofrun=1 --c:maxnofruns=9 --c:synctex="-1" --c:texmfbinpath="C:/texlive/2024/bin/windows"
system >
system > ConTeXt ver: 2024.02.27 09:18 LMTX fmt: 2025.1.23 int: english/english
system >
system > 'cont-new.mkxl' loaded
open source > level 1, order 1, name 'C:/texlive/2024/texmf-dist/tex/context/base/mkxl/cont-new.mkxl'
system > beware: some patches loaded from cont-new.mkiv
close source > level 1, order 1, name 'C:/texlive/2024/texmf-dist/tex/context/base/mkxl/cont-new.mkxl'
system > 'cont-sys.mkxl' loaded
open source > level 1, order 2, name 'C:/texlive/2024/texmf-dist/tex/context/texlive/cont-sys.mkxl'
close source > level 1, order 2, name 'C:/texlive/2024/texmf-dist/tex/context/texlive/cont-sys.mkxl'
system > files > jobname './column', input './column.tex', result './column'
fonts > latin modern fonts are not preloaded
languages > language 'en' is active
system > synctex functionality is enabled, expect 5-10 pct runtime overhead!
open source > level 1, order 3, name './column.tex'
fonts > preloading latin modern fonts (second stage)
fonts > 'fallback modern rm 12pt' is loaded
pack quality > overfull hbox at line 16 - 18 in file './column.tex': be the implementer and first ..D.E. Knuth (18.79561pt)
tex error > tex error on line 1 in file ./column.tex: Missing } inserted
<to be read again>
\normalend
<lua input>
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.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 ___________________________________________________________________________________

Am 07.03.2025 um 10:45 schrieb Ursula Hermann:
Dear Wolfgang,
So this the example now,
\setuppapersize [A4] \starttext % hex \definecolor[almond][x=EED9C4] \definecolor[mysticmaroon][x=AD4379] \blackrule[color=mysticmaroon,height=3.ex, width=13.50cm]\par \defineframed [Me] [background=color,backgroundcolor=almond] \nointerlineskip \Me[frame=on, corner=rectangular, topframe=off, bottomframe=off, framecolor=mysticmaroon,width=13.50cm]
You're missing the mandatory argument of \framed (or \Me in the example), i.e. \Me[..,..=..,..]{} Wolfgang

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 ___________________________________________________________________________________

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 ___________________________________________________________________________________
participants (2)
-
Ursula Hermann
-
Wolfgang Schuster