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.herm...@univie.ac.at<mailto:ursula.herm...@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.li...@gmail.com<mailto:wolfgang.schuster.li...@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
___________________________________________________________________________________
___________________________________________________________________________________
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
___________________________________________________________________________________

Reply via email to