Nicolas Goaziou <m...@nicolasgoaziou.fr> writes: > Hello, > > Eric S Fraga <e.fr...@ucl.ac.uk> writes: > >> On Monday, 8 May 2017 at 15:32, Dushyant Juneja wrote: >>> A very useful macro indeed! >>> >>> One suggestion: can this also be made to support nested headings. For >>> instance: >>> * Part {{{c}}} >>> ** Part {{{c}}}.{{{c}}} >>> * Part {{{c}}} >> >> I think this is what separate counters will enable but also motivates >> need to be able to reset a counter (e.g. the sub-heading one in above >> example if it were to be used in the second part). > > Good idea. > > Here is an updated patch, in which one can write > > {{{c(sub,reset)}}} > {{{c(sub, 5)}}} > > or even, for the default macro > > {{{c(,reset)}}} > {{{c(, 99)}}}
Seems fine. To me, "n" or "N" would be a better name for the macro, as that suggests some sort of number, whereas "c" doesn’t really associated with "counter" to me. Perhaps it’s just because the syntax looks a lot like the R combine command... Are there a lot of cases where it would not be able to just configure how heading numbers are printed in the backend? Rasmus -- May the Force be with you