I am using the daleif1
theme, and I would like to have the \part
's title juste above the \chapter
's title on the same page.
\documentclass{memoir}
\usepackage[explicit]{titlesec}
\usepackage{calc,graphicx,soul}
\usepackage{color}
\begin{document}
\definecolor{nicered}{rgb}{.647,.129,.149}
\makeatletter
\newlength\dlf@normtxtw
\setlength\dlf@normtxtw{\textwidth}
\def\myhelvetfont{\def\sfdefault{mdput}}
\newsavebox{\feline@chapter}
\newcommand\feline@chapter@marker[1][4cm]{%
\sbox\feline@chapter{%
\resizebox{!}{#1}{\fboxsep=1pt%
\colorbox{nicered}{\color{white}\bfseries\sffamily\thechapter}%
}}%
\rotatebox{90}{%position titre "Chapitre"
\resizebox{%
\heightof{\usebox{\feline@chapter}}+\depthof{\usebox{\feline@chapter}}}%
{!}{\scshape\so\@chapapp}}\quad%
\raisebox{\depthof{\usebox{\feline@chapter}}}{\usebox{\feline@chapter}}%
}
\newcommand\feline@chm[1][4cm]{%
\sbox\feline@chapter{\feline@chapter@marker[#1]}%
\makebox[0pt][l]{% aka \rlap
\makebox[18cm][r]{\usebox\feline@chapter}%
}}
\makechapterstyle{daleif1}{
\renewcommand\chapnamefont{\normalfont\Large\scshape\raggedleft\so}
\renewcommand\chaptitlefont{\normalfont\huge\bfseries\scshape\color{nicered}}
\renewcommand\chapternamenum{}
\renewcommand\printchaptername{\color{black}}
\renewcommand\printchapternum{\feline@chm[2.5cm]} % taille de la box
\setlength\beforechapskip{-1cm}
\renewcommand\afterchapternum{\par\vskip\midchapskip}
\renewcommand\printchaptertitle[1]{\chaptitlefont\raggedleft\underline{##1}\par}
}
\makeatother
\chapterstyle{daleif1}
\part{Part ONE}
\chapter{Chapter ONE of PART ONE}
\chapter{Chapter TWO of PART ONE}
\end{document}
I dont have the slighest idea how to do it. I tried to use \printparttitle
but it doesn't work.