On Tue, 9 Sep 2025, Aditya Mahajan wrote:

> Hi,
> 
> 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 : 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
___________________________________________________________________________________

Reply via email to