I am trying to format the appearance of the chapters depending if they appear on an even or odd page. Based on the documentation of titlesec it should work with the option page=even and page=odd. This works for sections but not for chapters. Here is a MWE:
\documentclass[11pt,twoside]{report}
\usepackage[a4paper]{geometry}
\geometry{a4paper, top=22mm, left=45mm, right=25mm, bottom=30mm}
\usepackage{lipsum}
\usepackage[rigidchapters,explicit]{titlesec}
\titleformat{name=\section,page=odd}{}{ODD:}{.5em}{}
\titleformat{name=\section,page=even}{}{EVEN:}{.5em}{}
\begin{document}
\chapter{ChapterA}
\section{Section a} \lipsum[1-2]
\section{Section b} \lipsum[1-2]
\section{Section c} \lipsum[1-2]
\chapter{ChapterB}
\section{Section a} \lipsum[1-2]
\section{Section b} \lipsum[1-2]
\section{Section c} \lipsum[1-2]
\chapter{ChapterC}
\section{Section a} \lipsum[1-2]
\section{Section b} \lipsum[1-2]
\section{Section c} \lipsum[1-2]
\end{document}
If you replace both \chapter in the titlesec command with \section it works.
Is there a reason for that? How can i use a different \titleformat command for odd and even pages?


titlesec, you can either do more easily without or more easily do without. Majority view: it is the only game in town. ;) – cfr Apr 16 '17 at 02:07