2

I've recently discovered Lyx and am thoroughly impressed by what it can do. I'm writing my thesis in Lyx (using the article class) and would like the table of contents to look like this:

Part I Methods

1.1 Method A

1.2 Method B

1.3 Method C

etc... However, I get something rather different:

Part I Methods

1 Method A

2 Method B

etc...

I had a similar problem for my results section, but managed to solve it by adding ERT after applying the section label to the results heading:

\setcounter{section}{0}

Unfortunately, this didn't work when trying the same for the methods section. How can I get the Lyx output (using PDFlatex) to number the sections correctly?

  • Thanks!! You certainly pointed me in the right direction. Considering that the "Part" was labelled in Roman numerals, your command gave me sections labelled: III.1, III.2, etc... I then tried \renewcommand{\thesection}{\arabic{part}.\arabic{section}} which then gave me the desired result. – Brill Sep 3 '13 at 12:06
3

You should add this line in your preamble:

\renewcommand{\thesection}{\arabic{part}.\arabic{section}}

and the sections will be numbered as you want them to be.

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.