ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* [NTG-context] Color in a Columntext, how does it work?
@ 2025-03-05 14:07 Ursula Hermann
  2025-03-05 15:26 ` [NTG-context] " Wolfgang Schuster
  0 siblings, 1 reply; 8+ messages in thread
From: Ursula Hermann @ 2025-03-05 14:07 UTC (permalink / raw)
  To: mailing list for ConTeXt users


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

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

[-- Attachment #1.2: Type: text/html, Size: 3385 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] 8+ messages in thread

* [NTG-context] Re: Color in a Columntext, how does it work?
  2025-03-05 14:07 [NTG-context] Color in a Columntext, how does it work? Ursula Hermann
@ 2025-03-05 15:26 ` Wolfgang Schuster
  2025-03-05 15:48   ` Ursula Hermann
  0 siblings, 1 reply; 8+ messages in thread
From: Wolfgang Schuster @ 2025-03-05 15:26 UTC (permalink / raw)
  To: ntg-context



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

___________________________________________________________________________________
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] 8+ messages in thread

* [NTG-context] Re: Color in a Columntext, how does it work?
  2025-03-05 15:26 ` [NTG-context] " Wolfgang Schuster
@ 2025-03-05 15:48   ` Ursula Hermann
  2025-03-07  9:45     ` Ursula Hermann
  0 siblings, 1 reply; 8+ messages in thread
From: Ursula Hermann @ 2025-03-05 15:48 UTC (permalink / raw)
  To: mailing list for ConTeXt users

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 <wolfgang.schuster.lists@gmail.com> 
Gesendet: Mittwoch, 05. März 2025 16:26
An: ntg-context@ntg.nl
Betreff: [NTG-context] Re: Color in a Columntext, how does it work?



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

___________________________________________________________________________________
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] 8+ messages in thread

* [NTG-context] Re: Color in a Columntext, how does it work?
  2025-03-05 15:48   ` Ursula Hermann
@ 2025-03-07  9:45     ` Ursula Hermann
  2025-03-07 11:20       ` Wolfgang Schuster
  2025-03-12 10:18       ` [NTG-context] Re: Color in a Columntext, how does it work?, Here is my example, that works great now! Ursula Hermann
  0 siblings, 2 replies; 8+ messages in thread
From: Ursula Hermann @ 2025-03-07  9:45 UTC (permalink / raw)
  To: mailing list for ConTeXt users


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

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>
<line 3.20>
     \stoptext

 1 >>  \setuppapersize
 2     [A4]
 3     \starttext
 4      % hex
 5      \definecolor[almond][x=EED9C4]
 6     \definecolor[mysticmaroon][x=AD4379]
 7     \blackrule[color=mysticmaroon,height=3.ex, width=13.50cm]\par
 8     \defineframed
 9       [Me]
10       [background=color,backgroundcolor=almond] \nointerlineskip
11     \Me[frame=on, corner=rectangular, topframe=off, bottomframe=off, framecolor=mysticmaroon,width=13.50cm]
I've inserted something that you may have forgotten. (See the <inserted text>
above.) With luck, this will get me unwedged.
mtx-context     | fatal error: return code: 1

What I can see is, that there is somethin wrong with the papersize. Don't know why?

Many thanks

Uschi
_____________________________________________________________________

 ConTeXt Compilation Report (Pages: 0)

 Errors: 0   Warnings: 0   Bad Boxes: 0





________________________________
Von: Ursula Hermann <ursula.hermann@univie.ac.at>
Gesendet: Mittwoch, 5. März 2025 16:48:06
An: mailing list for ConTeXt users
Betreff: [NTG-context] Re: Color in a Columntext, how does it work?

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 <wolfgang.schuster.lists@gmail.com>
Gesendet: Mittwoch, 05. März 2025 16:26
An: ntg-context@ntg.nl
Betreff: [NTG-context] Re: Color in a Columntext, how does it work?



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

___________________________________________________________________________________
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 #1.2: Type: text/html, Size: 10496 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] 8+ messages in thread

* [NTG-context] Re: Color in a Columntext, how does it work?
  2025-03-07  9:45     ` Ursula Hermann
@ 2025-03-07 11:20       ` Wolfgang Schuster
  2025-03-12 10:18       ` [NTG-context] Re: Color in a Columntext, how does it work?, Here is my example, that works great now! Ursula Hermann
  1 sibling, 0 replies; 8+ messages in thread
From: Wolfgang Schuster @ 2025-03-07 11:20 UTC (permalink / raw)
  To: ntg-context

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

___________________________________________________________________________________
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] 8+ messages in thread

* [NTG-context] Re: Color in a Columntext, how does it work?, Here is my example, that works great now!
  2025-03-07  9:45     ` Ursula Hermann
  2025-03-07 11:20       ` Wolfgang Schuster
@ 2025-03-12 10:18       ` Ursula Hermann
  2025-03-13 14:55         ` [NTG-context] Re: Color in a Columntext, how does it work?, Here is my example, that works great now, but some questions, after new work Ursula Hermann
  1 sibling, 1 reply; 8+ messages in thread
From: Ursula Hermann @ 2025-03-12 10:18 UTC (permalink / raw)
  To: mailing list for ConTeXt users


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

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 <ntg-context@ntg.nl>
Betreff: AW: [NTG-context] Re: Color in a Columntext, how does it work?


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>
<line 3.20>
     \stoptext

 1 >>  \setuppapersize
 2     [A4]
 3     \starttext
 4      % hex
 5      \definecolor[almond][x=EED9C4]
 6     \definecolor[mysticmaroon][x=AD4379]
 7     \blackrule[color=mysticmaroon,height=3.ex, width=13.50cm]\par
 8     \defineframed
 9       [Me]
10       [background=color,backgroundcolor=almond] \nointerlineskip
11     \Me[frame=on, corner=rectangular, topframe=off, bottomframe=off, framecolor=mysticmaroon,width=13.50cm]
I've inserted something that you may have forgotten. (See the <inserted text>
above.) With luck, this will get me unwedged.
mtx-context     | fatal error: return code: 1

What I can see is, that there is somethin wrong with the papersize. Don't know why?

Many thanks

Uschi
_____________________________________________________________________

 ConTeXt Compilation Report (Pages: 0)

 Errors: 0   Warnings: 0   Bad Boxes: 0




________________________________
Von: Ursula Hermann <ursula.hermann@univie.ac.at<mailto:ursula.hermann@univie.ac.at>>
Gesendet: Mittwoch, 5. März 2025 16:48:06
An: mailing list for ConTeXt users
Betreff: [NTG-context] Re: Color in a Columntext, how does it work?

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 <wolfgang.schuster.lists@gmail.com<mailto:wolfgang.schuster.lists@gmail.com>>
Gesendet: Mittwoch, 05. März 2025 16:26
An: ntg-context@ntg.nl<mailto:ntg-context@ntg.nl>
Betreff: [NTG-context] Re: Color in a Columntext, how does it work?



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

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

maillist : ntg-context@ntg.nl<mailto: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<mailto: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 #1.2: Type: text/html, Size: 26479 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] 8+ messages in thread

* [NTG-context] Re: Color in a Columntext, how does it work?, Here is my example, that works great now, but some questions, after new work.
  2025-03-12 10:18       ` [NTG-context] Re: Color in a Columntext, how does it work?, Here is my example, that works great now! Ursula Hermann
@ 2025-03-13 14:55         ` Ursula Hermann
  2025-03-14 14:31           ` Ursula Hermann
  0 siblings, 1 reply; 8+ messages in thread
From: Ursula Hermann @ 2025-03-13 14:55 UTC (permalink / raw)
  To: mailing list for ConTeXt users


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

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 <ntg-context@ntg.nl>
Betreff: AW: [NTG-context] Re: Color in a Columntext, how does it work?



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>

<line 3.20>

     \stoptext



 1 >>  \setuppapersize

 2     [A4]

 3     \starttext

 4      % hex

 5      \definecolor[almond][x=EED9C4]

 6     \definecolor[mysticmaroon][x=AD4379]

 7     \blackrule[color=mysticmaroon,height=3.ex, width=13.50cm]\par

 8     \defineframed

 9       [Me]

10       [background=color,backgroundcolor=almond] \nointerlineskip

11     \Me[frame=on, corner=rectangular, topframe=off, bottomframe=off, framecolor=mysticmaroon,width=13.50cm]

I've inserted something that you may have forgotten. (See the <inserted text>

above.) With luck, this will get me unwedged.

mtx-context     | fatal error: return code: 1



What I can see is, that there is somethin wrong with the papersize. Don't know why?



Many thanks



Uschi

_____________________________________________________________________



 ConTeXt Compilation Report (Pages: 0)



 Errors: 0   Warnings: 0   Bad Boxes: 0









________________________________

Von: Ursula Hermann <ursula.hermann@univie.ac.at<mailto:ursula.hermann@univie.ac.at>>
Gesendet: Mittwoch, 5. März 2025 16:48:06
An: mailing list for ConTeXt users
Betreff: [NTG-context] Re: Color in a Columntext, how does it work?



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 <wolfgang.schuster.lists@gmail.com<mailto:wolfgang.schuster.lists@gmail.com>>
Gesendet: Mittwoch, 05. März 2025 16:26
An: ntg-context@ntg.nl<mailto:ntg-context@ntg.nl>
Betreff: [NTG-context] Re: Color in a Columntext, how does it work?



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

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

maillist : ntg-context@ntg.nl<mailto: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<mailto: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 #1.2: Type: text/html, Size: 34397 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] 8+ messages in thread

* [NTG-context] Re: Color in a Columntext, how does it work?, Here is my example, that works great now, but some questions, after new work.
  2025-03-13 14:55         ` [NTG-context] Re: Color in a Columntext, how does it work?, Here is my example, that works great now, but some questions, after new work Ursula Hermann
@ 2025-03-14 14:31           ` Ursula Hermann
  0 siblings, 0 replies; 8+ messages in thread
From: Ursula Hermann @ 2025-03-14 14:31 UTC (permalink / raw)
  To: mailing list for ConTeXt users


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

Dear List,


After my work yesterday, I have the following example, that works great now.


\starttext
\setuppapersize
[A4]
\setupbodyfont[roman, 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=15.00cm]\par\nointerlineskip
  \blackrule[color=almond, x=EED9C4, height=.40ex, width=15.00cm] \par \nointerlineskip \Me[frame=on, corner=rectangular, topframe=off, bottomframe=off, align=right, framecolor=mediumviolet, x=8F47B3, background=color, backgroundcolor=almond, x=EED9C4, width=15.00cm]{\bf Hallo, das bin ich}
\definecolor[mediumviolet][x=8F47B3]
 \framed
[corner=rectangular, bottomframe=on, topframe=off, background=color, backgroundcolor=white, framecolor=MysticMaroon, width=15.00cm]
{\startcolumns[rule=on,n=2,tolerance=verytolerant]
{Thus, I came to the conclusion that the designer of
\column a new
 system must not only be the implementer and first ..
\bf D.E. Knuth}
 \stopcolumns}
\stoptext


Many regards and Many thanks for your Tipps,


Uschi

________________________________
Von: Ursula Hermann
Gesendet: Donnerstag, 13. März 2025 15:55:23
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, but some questions, after new work.


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 <ntg-context@ntg.nl>
Betreff: AW: [NTG-context] Re: Color in a Columntext, how does it work?



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>

<line 3.20>

     \stoptext



 1 >>  \setuppapersize

 2     [A4]

 3     \starttext

 4      % hex

 5      \definecolor[almond][x=EED9C4]

 6     \definecolor[mysticmaroon][x=AD4379]

 7     \blackrule[color=mysticmaroon,height=3.ex, width=13.50cm]\par

 8     \defineframed

 9       [Me]

10       [background=color,backgroundcolor=almond] \nointerlineskip

11     \Me[frame=on, corner=rectangular, topframe=off, bottomframe=off, framecolor=mysticmaroon,width=13.50cm]

I've inserted something that you may have forgotten. (See the <inserted text>

above.) With luck, this will get me unwedged.

mtx-context     | fatal error: return code: 1



What I can see is, that there is somethin wrong with the papersize. Don't know why?



Many thanks



Uschi

_____________________________________________________________________



 ConTeXt Compilation Report (Pages: 0)



 Errors: 0   Warnings: 0   Bad Boxes: 0









________________________________

Von: Ursula Hermann <ursula.hermann@univie.ac.at<mailto:ursula.hermann@univie.ac.at>>
Gesendet: Mittwoch, 5. März 2025 16:48:06
An: mailing list for ConTeXt users
Betreff: [NTG-context] Re: Color in a Columntext, how does it work?



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 <wolfgang.schuster.lists@gmail.com<mailto:wolfgang.schuster.lists@gmail.com>>
Gesendet: Mittwoch, 05. März 2025 16:26
An: ntg-context@ntg.nl<mailto:ntg-context@ntg.nl>
Betreff: [NTG-context] Re: Color in a Columntext, how does it work?



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

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

maillist : ntg-context@ntg.nl<mailto: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<mailto: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 #1.2: Type: text/html, Size: 36890 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] 8+ messages in thread

end of thread, other threads:[~2025-03-14 14:39 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2025-03-05 14:07 [NTG-context] Color in a Columntext, how does it work? Ursula Hermann
2025-03-05 15:26 ` [NTG-context] " Wolfgang Schuster
2025-03-05 15:48   ` Ursula Hermann
2025-03-07  9:45     ` Ursula Hermann
2025-03-07 11:20       ` Wolfgang Schuster
2025-03-12 10:18       ` [NTG-context] Re: Color in a Columntext, how does it work?, Here is my example, that works great now! Ursula Hermann
2025-03-13 14:55         ` [NTG-context] Re: Color in a Columntext, how does it work?, Here is my example, that works great now, but some questions, after new work Ursula Hermann
2025-03-14 14:31           ` 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).