Wouter van Heyst schrieb: > On Mon, Jun 15, 2009 at 06:31:55PM +0200, Georg Brandl wrote: >> >> Guenter Milde schrieb: >> > On 2009-06-12, David Huard wrote: >> > >> >> My sections in the latex output are numbered as 0.1, 0.2, etc, while >> >> I'd like them to be numbered as 1, 2, 3. >> > >> >> I built the sphinx documentation in latex to look for an example on >> >> how to do things properly, but the sections are also numbered as 0.1, >> >> 0.2, ... >> > >> >> Is this a known issue or there is a simple solution ? >> > >> > Sphinx skips the top section level >> > >> > There could be two reasons: >> > >> > a) Mismatch due to faulty handling of title/subtitle >> > >> > b) failure to account for the additional "\chaper" section level in the >> > book, report and derived document classes. >> >> Definitely a bug; and only in the trunk; 0.6 works like before. >> I'll fix this ASAP. > > Did that get fixed, or might it be in 0.6.2?
This particular bug never was in 0.6.x. The logic in trunk is different; it now checks for "howto" and sets the top_sectionlevel to 2 in that case. Georg > I use a custom > documentclass which would like to use chapters, but the code: > > if self.elements['docclass'] == 'manual': > if builder.config.latex_use_parts: > self.top_sectionlevel = 0 > else: > self.top_sectionlevel = 1 > else: > self.top_sectionlevel = 2 > > prevents that. I've appended self.top_sectionlevel = 1 as a temporary > hack but ideal it is not. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "sphinx-dev" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/sphinx-dev?hl=en -~----------~----~----~----~------~----~------~--~---
