Am 13.03.2012 um 12:38 schrieb Hans Hagen:
On 12-3-2012 18:44, Wolfgang Schuster wrote:
Hi Hans,
can add “way=block” to counter which reset the number at the start of each sectionblock, for now it works in the same way as “way=text”.
Actually block is already implemented but not resolved right (due to inheritance resolving). This should do the trick:
\def\thenamedstructurecounterlevel#1% {\xthenamedheadlevel{\structurecounterway{#1}}}
\def\xthenamedheadlevel#1% {\xsectionlevel{#1}{\sectionheadsection{\sectionheadcoupling{#1}}}}
\def\xsectionlevel#1#2% direct indirect {\csname\??headlevel \ifcsname\??headlevel#1\endcsname #1% \else\ifcsname\??headlevel#2\endcsname #2% \else \v!none \fi\fi \endcsname}
Yes, it works. Wolfgang