ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* [NTG-context] Issue with commands startcolumnsetspan and stopcolumnsetspan
@ 2026-02-10  9:13 André
  2026-02-10 10:31 ` [NTG-context] " Henning Hraban Ramm
  0 siblings, 1 reply; 3+ messages in thread
From: André @ 2026-02-10  9:13 UTC (permalink / raw)
  To: ntg-context

[-- Attachment #1: Type: text/plain, Size: 643 bytes --]

Good morning,

I have reproduced exactly code no. 006 given as an example in the manual "https://www.pragma-ade.nl/general/manuals/columnsets.pdf", making sure to invoke the same columnsets-000 environment (see attachments).

But the PDF I generate has a problem: it only contains one columnsetspan[wide].

I’m using this version of ConTeXt: (on MacOS Tahoe 26.2)
mtx-context     | ConTeXt Process Management 1.06
mtx-context     | main context file: /usr/local/texlive/2025/texmf-dist/tex/context/base/mkiv/context.mkiv
mtx-context     | current version: 2025.12.20 23:15 

Is this a ConTeXt bug?


Best regards,

André


[-- Attachment #2: code_006.tex --]
[-- Type: application/octet-stream, Size: 593 bytes --]

% !TEX TS-program = ConTEXt
\usemodule[visual]


% Code on manual "Columns" page 13. The resulting PDF is not the same as in manual.
\environment columnsets-000

\definecolumnset[example][n=3,page=left]
\definecolumnsetspan[wide][n=2,background=contrast,color=white]
\starttext
\startcolumnset[example]
\startcolumnsetspan[wide]
\fakewords{25}{50}
\stopcolumnsetspan
\fakewords{25}{50}
\startcolumnsetspan[wide]
\fakewords{25}{50}
\stopcolumnsetspan
\startcolumnsetspan[wide][default=btrl]
\fakewords{25}{50}
\stopcolumnsetspan
\dorecurse{15}{\fakewords{100}{200}\par}
\stopcolumnset
\stoptext

[-- Attachment #3: columnsets-000.tex --]
[-- Type: application/octet-stream, Size: 1691 bytes --]

% !TEX TS-program = ConTEXt
\startenvironment columnsets-000
\useMPlibrary[dum]
\setupbodyfont
[palatino]
\setuplayout
[grid=yes]
\setuplayout
[backspace=20mm,
cutspace=15mm,
width=middle,
height=middle]
\setupsystem
[random=1234]
\setuppagenumbering
[alternative=doublesided,
location=]
\setupheadertexts
[pagenumber][right]
[left][pagenumber]
\setupfootertexts
[\inputfilename]
\setupfooter
[style=\tttf]
\setupheader
[style=\tttf]
\setuptolerance
[verytolerant,stretch]
\definecolor[color-1][.5(red,green)]
\definecolor[color-2][.5(green,blue)]
\definecolor[color-3][.5(blue,red)]
\definecolor[color-4][.5(white,black)]
\definecolor[color-5][.5(white,color-4)]
\startuniqueMPgraphic{frame}
fill OverlayBox withcolor \MPcolor{color-1} ;
\stopuniqueMPgraphic
\startuniqueMPgraphic{contrast}
fill OverlayBox withcolor \MPcolor{color-3} ;
\stopuniqueMPgraphic
\defineoverlay[frame] [\uniqueMPgraphic{frame}]
\defineoverlay[contrast][\uniqueMPgraphic{contrast}]
% TODO
\unprotect
\protected\def\NormalizeFontWidthSpread#1#2#3#4#5#6%
{\global\setfalse\NFSpread
\scratchdimen#3%
\scratchdimen-.5\scratchdimen
\advance\scratchdimen#2\relax
\NormalizeFontWidth
#1%
{\enforced\def\+{\global\settrue\NFSpread\gobbleuntil\relax}%
\enforced\def\\{\gobbleuntil\relax}% newline
\setupspacing
#6\relax}%
{\scratchdimen}%
{#4}%
\ifconditional\NFSpread
% de gap valt in de binding
\else
\definefont[\strippedcsname#1][#4 #5]%
\fi}
\protected\def\SpreadGapText#1#2%
{{\def\+{\kern#1}#2}}
\protected\def\GapText#1#2#3#4#5% width distance font spec title
{\bgroup
\NormalizeFontWidthSpread\DummyFont{#1}{#2}{#3}{#4}{#5}%
\DummyFont\setupspacing\SpreadGapText{#2}{#5}\endgraf
\egroup}
\protect
\stopenvironment

[-- Attachment #4: 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] 3+ messages in thread

* [NTG-context] Re: Issue with commands startcolumnsetspan and stopcolumnsetspan
  2026-02-10  9:13 [NTG-context] Issue with commands startcolumnsetspan and stopcolumnsetspan André
@ 2026-02-10 10:31 ` Henning Hraban Ramm
  2026-02-11  8:32   ` André
  0 siblings, 1 reply; 3+ messages in thread
From: Henning Hraban Ramm @ 2026-02-10 10:31 UTC (permalink / raw)
  To: ntg-context

Am 10.02.26 um 10:13 schrieb André:
> Good morning,
> 
> I have reproduced exactly code no. 006 given as an example in the manual "https://www.pragma-ade.nl/general/manuals/columnsets.pdf", making sure to invoke the same columnsets-000 environment (see attachments).
> 
> But the PDF I generate has a problem: it only contains one columnsetspan[wide].
> 
> I’m using this version of ConTeXt: (on MacOS Tahoe 26.2)
> mtx-context     | ConTeXt Process Management 1.06
> mtx-context     | main context file: /usr/local/texlive/2025/texmf-dist/tex/context/base/mkiv/context.mkiv
> mtx-context     | current version: 2025.12.20 23:15
> 
> Is this a ConTeXt bug?

Probably caused by the new columnsets code. Have a look if the code 
example is still the same in the preliminary revised manual 
"mvlcolumnsets" (in sources).

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

* [NTG-context] Re: Issue with commands startcolumnsetspan and stopcolumnsetspan
  2026-02-10 10:31 ` [NTG-context] " Henning Hraban Ramm
@ 2026-02-11  8:32   ` André
  0 siblings, 0 replies; 3+ messages in thread
From: André @ 2026-02-11  8:32 UTC (permalink / raw)
  To: mailing list for ConTeXt users

Good morning,

I downloaded code "mvlcolumnsets-007.tex" and "mvlcolumnsets-000.tex" from the preliminary revised manual "mvlcolumnsets".

The PDF I get has the same problem : there is only one "startcolumnsetspan[wide]" at the start of the document, instead of 
more.

André


> Le 10 févr. 2026 à 11:31, Henning Hraban Ramm <texml@fiee.net> a écrit :
> 
> Am 10.02.26 um 10:13 schrieb André:
>> Good morning,
>> I have reproduced exactly code no. 006 given as an example in the manual "https://www.pragma-ade.nl/general/manuals/columnsets.pdf", making sure to invoke the same columnsets-000 environment (see attachments).
>> But the PDF I generate has a problem: it only contains one columnsetspan[wide].
>> I’m using this version of ConTeXt: (on MacOS Tahoe 26.2)
>> mtx-context     | ConTeXt Process Management 1.06
>> mtx-context     | main context file: /usr/local/texlive/2025/texmf-dist/tex/context/base/mkiv/context.mkiv
>> mtx-context     | current version: 2025.12.20 23:15
>> Is this a ConTeXt bug?
> 
> Probably caused by the new columnsets code. Have a look if the code example is still the same in the preliminary revised manual "mvlcolumnsets" (in sources).
> 
> Hraban
> ___________________________________________________________________________________
> 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] 3+ messages in thread

end of thread, other threads:[~2026-02-11  8:33 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-02-10  9:13 [NTG-context] Issue with commands startcolumnsetspan and stopcolumnsetspan André
2026-02-10 10:31 ` [NTG-context] " Henning Hraban Ramm
2026-02-11  8:32   ` André

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).