On 9/9/2025 11:21 PM, Aditya Mahajan wrote:
>> below
As I'm in the middle of something else I wait till Wolfgang gives his
blessing.
Hans
When reverse option is set in \startitemize, the value of the start key is
ignored. MWE:
\starttext
\subject{Without reverse}
\startitemize[n][start=3]
\item Four
\item Three
\stopitemize
\subject{With reverse}
\startitemize[reverse,n][start=3]
\item Four
\item Three
\stopitemize
\stoptext
What can I go if I want reverse numbering starting from a particular value.
Changing this in strc-itm fixes the behavior, but I am not sure if this is the
right place.
\def\strc_itemgroups_insert_item_counter_indeed % quite slow ... every time
this setup .. but it
{\begingroup % can be optimized ... best
move some to strc-num
\setupcounter
[\v_strc_itemgroups_counter]%
[\c!prefix=\itemgroupparameter\c!prefix,
\c!prefixstopper=\itemgroupparameter\c!prefixstopper,
\c!prefixseparatorset=\itemgroupparameter\c!prefixseparatorset,
\c!prefixconversion=\itemgroupparameter\c!prefixconversion,
\c!prefixconversionset=\itemgroupparameter\c!prefixseparatorset,
\c!prefixset=\itemgroupparameter\c!prefixset,
\c!prefixsegments=\itemgroupparameter\c!prefixsegments,
\c!prefixconnector=\itemgroupparameter\c!prefixconnector,
\c!criterium=\itemgroupparameter\c!criterium,
\c!numberorder=\ifconditional\c_strc_itemgroups_reverse\v!reverse\else\v!normal\fi,
\c!start=\itemgroupparameter\c!start,%AM Added
\c!numberstopper=\begincsname\??itemstopper\itemgroupparameter\c!placestopper\endcsname,
\c!numberconversionset=\v_strc_itemgroups_counter,
\c!numbersegments=\currentitemgroupsegments]%
% there will be a fixedconversion key
\expanded{\defineconversionset[\v_strc_itemgroups_counter][\currentitemgroupconversionset][\currentitemgroupsymbol]}%
%\expanded{\strc_sets_define_conversion_set[\v_strc_itemgroups_counter][\currentitemgroupconversionset][\currentitemgroupsymbol]}%
%
\convertedcounter[\v_strc_itemgroups_counter]% [\number\currentitemlevel]%
\strc_itemgroups_insert_reference
\endgroup}
Aditya
___________________________________________________________________________________
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
___________________________________________________________________________________
--
-----------------------------------------------------------------
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 : [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
___________________________________________________________________________________