Re: \setupheadnumber question

Pablo Rodriguez via ntg-context <[email protected]>
Newsgroups gmane.comp.tex.context
Message-ID <[email protected]>
On 3/21/26 15:21, Jim wrote:
> Hi,
> 
> the wiki says
>         If the second argument is signed, the heading’s number will be
>         increased or decreased by the specified amount instead.
> […]
> Q: is the wiki wrong, or

Hi Jim,

according to lines 1313-L1316 from `strc-sec.mkxl`, the wiki may be wrong:

% We do support negative numbers but it can have side effects that we
won't catch:
%
% \chapter{some} \setupheadnumber[chapter][3] \chapter{more}
% \setupheadnumber[section][8] \section{b} \section{c}
\setupheadnumber[section][-1] \section{d}

It seems that positive numbers are considered absolute (so they don’t
increment anything).

Just in case it might help,

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

maillist : [email protected] / 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
___________________________________________________________________________________
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.