I’m recreating a older document which starts the introduction with 0 and
I don’t plan to change this.
There is no change in the counter needed but all I do is to change the
output in the pdf with the number conversion.
Wolfgang
Alan Braslau schrieb am 12.08.18 um 00:05:
Hans does not like counting from zero, for some reason... :-)
Alan
On Sat, 11 Aug 2018 20:13:59 +0200
Wolfgang Schuster wrote:
Hi Hans,
can you add a conversion which let us show 0 as value for the first
chapter etc.
\def\zeronumberconversion#1{\number\numexpr#1-1\relax}
\defineconversion [zero] [\zeronumberconversion]
\defineconversionset [zero] [n,zero] [n]
\setuphead [sectionconversionset=zero]
\starttext
\startchapter [title=Introduction]
\startsection [title=First topic]
\stopsection
\startsection [title=Second topic]
\stopsection
\stopchapter
\stoptext
Wolfgang
___
dev-context mailing list
dev-context@ntg.nl
https://mailman.ntg.nl/mailman/listinfo/dev-context
___
dev-context mailing list
dev-context@ntg.nl
https://mailman.ntg.nl/mailman/listinfo/dev-context