Hi,

If I take the last piece of code from Hans' message 28/10/2021 11:24, and run it with the new upload I get clean paragraphs with the red ans the blue colour, but for the paragraphs with the green colour, the text in colour ("keyword") is overwritten by the normal text in black.

I don't remember that before.

Alain

Here is the code:

%I need to ponder this usage:


\definelocalboxes

[linetextA]

[command=\LeftTextA,

location=lefttext,

style=\bs,

color=darkblue]


\protected\def\LeftTextA#1{\llap{#1}\quad}


\definelocalboxes

[linetextB]

[command=\LeftTextB,

location=left,

style=\bs,

color=darkgreen]


\protected\def\LeftTextB{\llap{\unhbox\localboxcontentbox}\quad}


\starttext


\dorecurse{10}{some text #1 }

\leftparbox {\red \bf keyword}HERE\leftparbox{}

\dorecurse{10}{some text #1 }

\blank


{\dorecurse{10}{some text #1 }

\leftparbox {\red \bf keyword}test

\dorecurse{10}{some text #1 }}

\blank


{\dorecurse{10}{some text #1 }

\localbox[linetextA]{keyword}HERE

\dorecurse{10}{some text #1 }}


{\dorecurse{10}{some text #1 }

\localbox[linetextB]{keyword}HERE

\dorecurse{10}{some text #1 }}


{\dorecurse{10}{some text #1 }

\localbox[linetextB]{keyword 1}HERE1

\dorecurse{10}{some text #1 }

\localbox[linetextB]{keyword 2}HERE2

\dorecurse{10}{some text #1 }}


\stoptext