For changing all heading styles up to paragraph
, I can use the same process in memoir
(seen in MWE below). However, this does not seem to work for paragraph
, and no result is printed! I am not sure why paragraph
is different, but how can I alter the heading style for it?
\documentclass[12pt,a4paper,twoside]{memoir}
\renewcommand{\thechapter}{s. \arabic{chapter}}
\renewcommand{\thesection}{(\arabic{section})}
\renewcommand{\thesubsection}{(\emph{\alph{subsection}})}
\renewcommand{\thesubsubsection}{(\roman{subsubsection})}
\renewcommand{\theparagraph}{(\emph{\alph{paragraph}\alph{paragraph}})}
\setsecnumdepth{subparagraph}
\let\oldsection=\section
\let\oldsubsection=\subsection
\let\oldsubsubsection=\subsubsection
\let\oldparagraph=\paragraph
\renewcommand{\section}[1]{{%
\setsecnumformat{\thechapter\thesection\quad}%
\oldsection{#1}}}
\renewcommand{\subsection}[1]{{%
\setsecnumformat{{\thechapter\thesection\thesubsection\quad}}%
\oldsubsection{#1}}}
\renewcommand{\subsubsection}[1]{{%
\setsecnumformat{{\thechapter\thesection\thesubsection\thesubsubsection\quad}}%
\oldsubsubsection{#1}}}
\renewcommand{\paragraph}[1]{{%
\setsecnumformat{{\thechapter\thesection\thesubsection\thesubsubsection\theparagraph\quad}}%
\oldparagraph{#1}}}
\begin{document}
\mainmatter % Begin numeric (1,2,3...) page numbering
\chapter{Heading}
\section{Heading}
\subsection{Heading}
\subsubsection{Heading}
\paragraph{Heading}
\end{document}