[dev-context] strc-num.mkiv
Hi, -\unexpanded\def\savecounter {\dodoubleempty \strc_counters_save_interfaced} -\unexpanded\def\restorecounter{\dodoubleempty \strc_counters_restore_interfaced} +\unexpanded\def\savecounter {\dosingleempty \strc_counters_save_interfaced} +\unexpanded\def\restorecounter{\dosingleempty \strc_counters_restore_interfaced} Wolfgang ___ dev-context mailing list dev-context@ntg.nl http://mailman.ntg.nl/mailman/listinfo/dev-context
[dev-context] strc-num.mkiv
Hi Hans, shouldn’t the inner test be “\ifx\hasstructurecounternumber\v!yes”? \def\dostructurecountercomponent#1#2#3#4#5#6#7[#8][#9]% {\begingroup … \ifx\hasstructurecountercaption\v!yes … \ifx\hasstructurecountercaption\v!yes prefixdata = { prefix= #3\c!prefix, separatorset = #3\c!prefixseparatorset, conversion= \!!bs#3\c!prefixconversion\!!es, conversionset = #3\c!prefixconversionset, set = #3\c!prefixset, % segments = #3\c!prefixsegments, segments = \askedprefixsegments, connector = \!!bs#3\c!prefixconnector\!!es, }, numberdata = { numbers = structures.counters.compact(\currentcounter,nil,true), separatorset = #3\c!numberseparatorset, conversion= \!!bs#3\c!numberconversion\!!es, conversionset = #3\c!numberconversionset, starter = \!!bs#3\c!numberstarter\!!es, stopper = \!!bs#3\c!numberstopper\!!es, segments = #3\c!numbersegments, }, \fi … \fi \endgroup} Wolfgang ___ dev-context mailing list dev-context@ntg.nl http://www.ntg.nl/mailman/listinfo/dev-context
Re: [dev-context] strc-num.mkiv
On 19-10-2011 13:07, Wolfgang Schuster wrote: shouldn’t the inner test be “\ifx\hasstructurecounternumber\v!yes”? makes sense indeed Hans - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com | www.pragma-pod.nl - ___ dev-context mailing list dev-context@ntg.nl http://www.ntg.nl/mailman/listinfo/dev-context
[dev-context] strc-num.mkiv
Hi Hans, what’s the status of the \reset command, is it a valid command or obsolete. When it is a usable command you should change the definition, i think this should for \definenumber created counters (functions like enumeration already provide their own mechanism). \def\reset {\dosingleargument\doreset} \def\doreset[#1]% {\processcommalistwithparameters[#1]\resetstructurecounter} Wolfgang ___ dev-context mailing list dev-context@ntg.nl http://www.ntg.nl/mailman/listinfo/dev-context
[dev-context] strc-num.mkiv
Hi Hans, can you make \setupnumbering a synonym for \setupstructurecountering? \let\setupnumbering\setupstructurecountering Wolfgang ___ dev-context mailing list dev-context@ntg.nl http://www.ntg.nl/mailman/listinfo/dev-context
Re: [dev-context] strc-num.mkiv
On 13-7-2011 7:18, Wolfgang Schuster wrote: Hi Hans, can you make \setupnumbering a synonym for \setupstructurecountering? \let\setupnumbering\setupstructurecountering sure (still not sure about dropping the structurecounter names) - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com | www.pragma-pod.nl - ___ dev-context mailing list dev-context@ntg.nl http://www.ntg.nl/mailman/listinfo/dev-context
Re: [dev-context] strc-num.mkiv
On 13-7-2011 6:00, Wolfgang Schuster wrote: Hi Hans, what’s the status of the \reset command, is it a valid command or obsolete. When it is a usable command you should change the definition, i think this should for \definenumber created counters (functions like enumeration already provide their own mechanism). \def\reset {\dosingleargument\doreset} \def\doreset[#1]% {\processcommalistwithparameters[#1]\resetstructurecounter} Actually I wanted to get rid of it ... but we can make this one \resetnumber (at least it's clear then what gets reset) Hans - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com | www.pragma-pod.nl - ___ dev-context mailing list dev-context@ntg.nl http://www.ntg.nl/mailman/listinfo/dev-context
Re: [dev-context] strc-num.mkiv
Am 13.07.2011 um 19:56 schrieb Hans Hagen: On 13-7-2011 7:18, Wolfgang Schuster wrote: Hi Hans, can you make \setupnumbering a synonym for \setupstructurecountering? \let\setupnumbering\setupstructurecountering sure (still not sure about dropping the structurecounter names) I’ll document only \definenumber, \setupnumber etc. The structure variants are internal commands and unimportant for the command reference. Wolfgang ___ dev-context mailing list dev-context@ntg.nl http://www.ntg.nl/mailman/listinfo/dev-context
Re: [dev-context] strc-num.mkiv
Am 13.07.2011 um 19:58 schrieb Hans Hagen: On 13-7-2011 6:00, Wolfgang Schuster wrote: Hi Hans, what’s the status of the \reset command, is it a valid command or obsolete. When it is a usable command you should change the definition, i think this should for \definenumber created counters (functions like enumeration already provide their own mechanism). \def\reset {\dosingleargument\doreset} \def\doreset[#1]% {\processcommalistwithparameters[#1]\resetstructurecounter} Actually I wanted to get rid of it ... but we can make this one \resetnumber (at least it's clear then what gets reset) In this case I’m going to ignore it because there is already a \resetnumber command: \let \resetnumber \resetstructurecounter % [name] Wolfang ___ dev-context mailing list dev-context@ntg.nl http://www.ntg.nl/mailman/listinfo/dev-context
Re: [dev-context] strc-num.mkiv
Am 13.07.2011 um 20:13 schrieb Hans Hagen: Actually I wanted to get rid of it ... but we can make this one \resetnumber (at least it's clear then what gets reset) In this case I’m going to ignore it because there is already a \resetnumber command: \let \resetnumber \resetstructurecounter % [name] ok; the only difference then would be that it can be a list but we can as well get rid of that as none of the number commands accepts a list it shouldn’t matter Wolfgang ___ dev-context mailing list dev-context@ntg.nl http://www.ntg.nl/mailman/listinfo/dev-context
Re: [dev-context] strc-num.mkiv
On 13-7-2011 8:26, Wolfgang Schuster wrote: Am 13.07.2011 um 20:13 schrieb Hans Hagen: Actually I wanted to get rid of it ... but we can make this one \resetnumber (at least it's clear then what gets reset) In this case I’m going to ignore it because there is already a \resetnumber command: \let \resetnumber \resetstructurecounter % [name] ok; the only difference then would be that it can be a list but we can as well get rid of that as none of the number commands accepts a list it shouldn’t matter ok, new beta .. this one will also be uploaded Hans - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com | www.pragma-pod.nl - ___ dev-context mailing list dev-context@ntg.nl http://www.ntg.nl/mailman/listinfo/dev-context