On Sat, 15 Sep 2012, Wolfgang Schuster wrote:
Am 15.09.2012 um 00:06 schrieb Aditya Mahajan
: Thanks for the diagnosis. What will be a good way to fix this? I think that
\expanded{\setupcounter[#1][\c!start=\ifx\p_start\empty0\else\number\p_start\fi.,...]}
should work (but I haven't tested it yet).
I would do the expansion here but with \normalexpanded.
\def\strc_counter_setup_using_parameter#1#2% name \someparameter {\edef\p_start{#2\c!start}% %\setupcounter \normalexpanded{\setupcounter [#1] [ \c!start=\ifx\p_start\empty0\else\number\p_start\fi, \c!state=#2\c!state, % beware, "" == start \c!way=#2\c!way, % \c!prefix=#2\c!prefix, \c!prefixseparatorset=#2\c!prefixseparatorset, \c!prefixconversion=#2\c!prefixconversion, \c!prefixconversionset=#2\c!prefixconversionset, \c!prefixstarter=#2\c!prefixstarter, \c!prefixstopper=#2\c!prefixstopper, \c!prefixset=#2\c!prefixset, \c!prefixsegments=#2\c!prefixsegments, \c!prefixset=#2\c!prefixset, \c!prefixconnector=#2\c!prefixconnector, % \c!numberseparatorset=#2\c!numberseparatorset, \c!numberconversion=#2\c!numberconversion, \c!numberconversionset=#2\c!numberconversionset, \c!numberstarter=#2\c!numberstarter, \c!numberstopper=#2\c!numberstopper, % \c!numbersegments=#2\c!numbersegments]} \c!numbersegments=#2\c!numbersegments]}}
Thanks. Hans, can you add this to strc-num.mkiv? Aditya