Changes

Jump to navigation Jump to search
223 bytes added ,  17:14, 15 June 2011
m
Changed 'somestructureheadnumber' into somenamedheadnumber
To access the last head number in a document one can use:
<texcode>\somestructureheadnumbersomeheadnumber[…][…]</texcode>
The following example from the mailing list demonstrates how to use it.
\dorecurse {5} {
\chapter{Test \recurselevel}
first: \somestructureheadnumbersomeheadnumber[chapter][first] \par current: \somestructureheadnumbersomeheadnumber[chapter][current] \par last: \somestructureheadnumbersomeheadnumber[chapter][last]
\dorecurse {3} {
\section{Test \recurselevel}
first: \somestructureheadnumbersomeheadnumber[section][first] \par current: \somestructureheadnumbersomeheadnumber[section][current] \par last: \somestructureheadnumbersomeheadnumber[section][last]
}
}
For using inside a Metapost-environment you can use the expandable version:
<texcode>\somenamedheadnumber{…}{…}</texcode>
 
Willi's comment on 15-06-2011:
Sinds Context 13 june 2011 the name <texcode>\somestructureheadnumber</texcode> is replaced by <texcode>\someheadnumber</texcode>. This is in line with Hans' plans to get rid of the 'structure' part inside interface-names dealing with internal counters.
48

edits

Navigation menu