For example, I want something like:
Code: Select all
\documentclass[english,oldfontcommands]{memoir}
\chapterstyle{hangnum}
\renewcommand\thesection{\arabic{section}}
\setsecheadstyle{\LARGE\bfseries}
\renewcommand\thesubsection{\arabic{subsection}}
\setsubsecheadstyle{\Large\bfseries}
\begin{document}
\pagestyle{companion}
...
\newcommand\mytext{Foo}
\subsection{First}
\subsection{Second}
\renewcommand\mytext{Bar}
\subsection{Third}
\subsection{Fourth}
...
1 First Foo
2 Second Foo
3 Third Bar
4 Fourth Bar
Any help would be much appreciated.
PS. I've read elsewhere that titlesec and memoir do not work well together, so I think I would prefer suggestions/solutions that do not depend on titlesec.