Wolfgang Schuster
2018-08-11 18:13:59 UTC
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
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