Re: [NTG-context] Strange result with the new upload
Thanks Hans Le 5/11/2021 à 18:16, Hans Hagen via ntg-context a écrit : On 11/5/2021 5:45 PM, Alain Delmotte via ntg-context wrote: 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. the localboxes interface changed a bit ... see the new lowlevel manual for details (i added 'middle' boxes so that we can do better margin trickery and there are predefined handlers for l/r margin text and nline numbers now (local boxes are still kind of work in progress, the old (luatex) interfaces were not that usefui / interesting anyway, and we can do more now) Hans - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl - ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___ ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
Re: [NTG-context] Strange result with the new upload
On 11/5/2021 5:45 PM, Alain Delmotte via ntg-context wrote: 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. the localboxes interface changed a bit ... see the new lowlevel manual for details (i added 'middle' boxes so that we can do better margin trickery and there are predefined handlers for l/r margin text and nline numbers now (local boxes are still kind of work in progress, the old (luatex) interfaces were not that usefui / interesting anyway, and we can do more now) Hans - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl - ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
[NTG-context] Strange result with the new upload
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 ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___