I am currently adapting the \part command to customize the table of contents as follows [code directly extracted from the book.cls class]:

    \ifnum \c@secnumdepth >-2\relax%

I am not providing the rest of the code which is quite long but the result is shown below: enter image description here

It is quite clear that the accented letter è affects the vertical alignment of the title within its box. Is there a way to avoid that? I would be happy with a vertical alignment that ignores accented letters. Otherwise, the \vphantom command is a possibility.

1 Answer 1


Hard to test without a working example but normally the \strut would be enough to cover the accented letters however you have used \parbox[c] so the text is vertically centred so moves down if accents are added. If you used [b] or [t] (which are the same for a one line box) then the text would align on the baseline so not move when there is an accent.

Alternatively you can hide the vertical size of the content by adding \smash

  • yes, but I want to keep the vertically centred title so the [c] option is fine. I just would like the accent to be ignored by the vertical alignment.
    – pluton
    Mar 30, 2013 at 23:43
  • OK, adding plan b... Mar 30, 2013 at 23:46
  • ok, thanks. I tried but it yields quite unexpected results. It looks to me that the \vphantom{Ép} command associated with a \parbox[b][][b]{...} command aligning at the bottom is a good compromise. I wanted to avoid the \vphantom but it probably cannot be avoided.
    – pluton
    Mar 31, 2013 at 0:13
  • You are using the form of \parbox where you specify the height but not specifying the height, is that intended? Mar 31, 2013 at 0:21
  • good question. I am not sure why I use this version. I thought it was the only one?
    – pluton
    Mar 31, 2013 at 0:27

You must log in to answer this question.

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