>>>>> "Juergen" == Juergen Spitzmueller <[EMAIL PROTECTED]> writes:

Juergen> Jean-Marc Lasgouttes wrote:
Helge> Numbering of subsubsections are displayed wrong in lyx. I have
Helge> set things up so chapters, sections and subsections are
Helge> numbered, and the output reflects that. But inside lyx, the
Helge> subsubsections are also numbered and that is irritating to look
Helge> at. They should be unnumbered, as they are in the output. It is
Helge> nice that lyx 1.4 shows the correct numbering inside lyx, but
Helge> it is a bit overdone when even unnumbered section levels gets
Helge> numbers.
>>  This is indeed a problem with the new counter code.

Juergen> It works for chapter labels, but not for sectioning labels.

I am currently working on a patch for that.

>> I guess what should be done is to remove the individual entries
>> from the QListView in NumberingModuleBase.ui, and add them by hand
>> _after_ setting sorting to -1.

Juergen> Patch attached. OK?

I like it. However:

- this really feels like you should just iterate over the QListView
  rows to set them to yes/no and not keep track of whih one is
  subparagraph or section. This would be much simpler I think.

- the code should be adapted to work for both book-style and
  article-style sectioning. I do not think that it does right now.

- If we wanted to be really smart, we should get the name of the
  sections for each level from the layout file (LyXLayout::toclevel).
  We could put in the QListView all the layouts that have a nonzero
  toclevel.

JMarc

Reply via email to