I'm using book and have openany set. I'd like to get the chapter titles to by symmetrical--always to the inside or always to the outside of the page. I'm using titlesec. I've looked into an ifthen statement, but failed to get it to work. I know that memoir has an option for this, but if possible I'd like to stay with book so I don't have start over. I'm to the point of thinking this will be more complicated than it's worth and just centering the title.

  • This question could use a MWE to clarify what does not work based on what was tried and more specific clarity as to what is the desired outcome.
    – Leucippus
    Jan 30, 2021 at 6:58

1 Answer 1


First solution

Using the page option of \titleformat. Note that you have to redeclare the chapter "class":

  {\chaptertitlename\ \thechapter:ODD}
  {\chaptertitlename\ \thechapter:EVEN}

Second solution

Using the \ifodd conditional:

  {\chaptertitlename\ \thechapter}
  • The second worked perfectly. Thank you! Jan 31, 2021 at 15:32

You must log in to answer this question.

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