From: Guenter M. <mi...@us...> - 2010-09-17 21:55:01
|
On 2010-09-17, Ben Beuchler wrote: > We're working on implementing docutils as our internal documentation > toolchain. Our standard documentation format requires restarting > section numbering at various points as well as re-starting the section > numbering. I don't see an obvious way to do this with the default > parsers. Am I missing something? Do I need to write my own transform > directive? For LaTeX/PDF output, you can use the "--no-section-numbering" option (keeping the .. sectnum:: directive) to let LaTeX do the numbering. Then use raw LaTeX commands to re-set the section counter(s). For HTML output, disable section numbering and add the section numbers via CSS (give a special class to the sections that should re-start the counting). Günter |