Changes

Jump to navigation Jump to search
m
=== Show Section Number ===
The following example writes a counter in a layer, starting with the value of 1:
<texcode>
]
\setnumber[MyCounter][0-1]
\setuphead[section][
\startsetups[MySetup]
\ifnum\rawcountervalue[MyCounter]>0{%
MyCounter = \rawcountervalue[MyCounter]
}\fi
\stopsetups
\stoptext
</texcode>
 
 
The initial value for the counter is set to -1 so that its value is 0 on the first page, then 1 on the second page.
== See Also ==
419

edits

Navigation menu