I have a pretty huge latex book. And I get an unwanted page number on 1 out of 3 part page. I tried to remove packages one by one, but can't figure out where's the error, and can't make an MWE.

So the file is - https://github.com/marx-in-ua/das-kapital/blob/master/tex/book.ii.tex In style file https://github.com/marx-in-ua/das-kapital/blob/master/tex/style.sty#L48 I set part pages to empty style:


And it works on part 1 and 3, but for some weird reason shows page number on part 2: enter image description here enter image description here enter image description here

  • 2
    Please always post full but minimal examples, not links to external sources that might rot over time
    – daleif
    Jun 19, 2020 at 10:07
  • I mentioned that I was trying hard - but currently my MWE is 500 tex files. Jun 19, 2020 at 10:11
  • We cannot go though your entire project to debug it for you. You need to minimize to the smallest possibile
    – daleif
    Jun 19, 2020 at 10:13
  • 1
    Additionally, it is not really nice to people wanting to help that you redefine \chapter to the \part. So please start over with your question and provide something others can test
    – daleif
    Jun 19, 2020 at 10:22
  • 1
    Found it. I'll do an answer after lunch
    – daleif
    Jun 19, 2020 at 10:47

1 Answer 1


Found it. Your redefinition of \beforepartskip is flawed.

Her is your code:


But the point is, this macro is only meant to control the vertial spacing of the part bare, i.e. the spacing above the title. So the \cleardoublepage is wrong.

The pseudo code for \part is similar to this

If open right: # the default
End If
# an irrelevant two column test
... # the rest of the part formatting

Thus when you also have \cleardoublepage inside \beforepartskip the \thispagetyle{part} is no longer guaranteed to be on the same page as the title.

The default for those three skip commands are

\newcommand{\midpartskip}{\par\vskip 2\onelineskip}

As noted none of them contains \cleardoublepage.

Unrelated: You might want to look up \vspace*.

BTW: here is my cut down MWE, then one just needs kapital.cls, fonts.tex and style.sty. No need for 500 tex files.






  • I've updated my question: added MWE without my classes at all. And now I understand where the error is. Thanks. Jun 19, 2020 at 11:17
  • And is there a way that my parts start on right and chapters on any? Jun 19, 2020 at 11:22
  • 1
    @DenysPotapov Please don't do that, now my answer makes no sense. Please post a new question instead
    – daleif
    Jun 19, 2020 at 11:25
  • Ok, I achieved it with \renewcommand*{\beforepartskip}{\cleardoublepage\thispagestyle{empty}\null\vspace{3cm}} - not that elegant, but works. Thanks again. Jun 19, 2020 at 11:25
  • 1
    @DenysPotapov No roll back this question to what I answered. Then post a new question with the updated question as it is not really related to this one/
    – daleif
    Jun 19, 2020 at 11:33

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .