Results 1 to 5 of 5

Thread: LyX: how do I renumber a section?

  1. #1
    Join Date
    Feb 2009
    Location
    Spain
    Posts
    25,547

    Default 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)

  2. #2
    Join Date
    Jun 2008
    Location
    West Yorkshire, UK
    Posts
    3,611

    Default Re: LyX: how do I renumber a section?

    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.

  3. #3
    Join Date
    Feb 2009
    Location
    Spain
    Posts
    25,547

    Default Re: LyX: how do I renumber a section?

    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)

  4. #4
    Join Date
    Jun 2008
    Location
    West Yorkshire, UK
    Posts
    3,611

    Default Re: LyX: how do I renumber a section?

    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.

  5. #5
    Join Date
    Jan 2009
    Location
    Switzerland
    Posts
    1,529

    Default Re: LyX: how do I renumber a section?

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

    Code:
    \advance\partcountervariable by 3
    You can count back as well when you advance by negative numbers.
    Technology is 'stuff that doesn't work yet.' -- Bran Ferren

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •