# LyX: how do I renumber a section?

Hi,

I would like, in LyX, to start a “part” section at a certain number,
instead of “1”. Is is possible?

Book (koma script)
part III
chhapter 1

It is not an openSUSE specific question, but someone might know

Cheers / Saludos,

Carlos E. R.
(from 11.4 x86_64 “Celadon” at Telcontar)

I know that adding the LaTeX code
\addtocounter{table}{-1}
reduces the table number; I use this after a longtable because the table counter goes up with a longtable even if it is unnumbered. So try substituting section and the desired decrease.

AFAIK there is no way of doing this using KOMA script commands; so if there is a way it will be a LaTeX command. It might have undesired side-effects in KOMAScript.

The alternative woold be to see if another document class does this as standard.

On 2011-06-16 21:06, john hudson wrote:
>
> I know that adding the LaTeX code
> \addtocounter{table}{-1}
> reduces the table number; I use this after a longtable because the
> table counter goes up with a longtable even if it is unnumbered. So try
> substituting section and the desired decrease.

But I don’t think I can’t decrease the number before declaring the first
section of type “part”, it doesn’t exist yet.

What I want to do is not have part 1 and part 2 and start with part 3
directly. My workaround is to have now:

part 1
(empty section)
part 2
(empty section)
part 3
(contents)

Just tried a hack - invented it, actually:

\setcounter{part}{4}
Part I something

When it prints, it prints as “part V” directly, so that’s it. It works!
Except that it displays incorrectly. One can’t have it all…

Cheers / Saludos,

Carlos E. R.
(from 11.4 x86_64 “Celadon” at Telcontar)

I guessed there might be a way round it - it’s fortunate lots of hacks work in LaTeX even though LyX doesn’t display them.

Using TeX myself, not LaTeX, but when you know the name of the counter variable used for the part this should work:

``````\advance\partcountervariable by 3
``````

You can count back as well when you advance by negative numbers.