[Tex/LaTex] How to change subsection heading (e.g. center it)

horizontal alignmentmemoirsectioning

I'd like to change the styling of \subsection in the memoir class.

The example is:

\documentclass[oneside, 12pt]{memoir}

\begin{document}
\subsection{A subsection - center me!}
\end{document}

This is easy enough with sections, eg

\setsecnumformat{Section \arabic{section}. \space}
\setsecheadstyle{\bfseries\large\centering}

However I wasn't able to find an equivalent for subsections. Is there one, or some alternative?

Best Answer

Using \setsubsecheadstyle{\bfseries\large\centering} seems to do the job:

enter image description here

The geometry package was included only to show the frame of the page for the image capture.

\documentclass[oneside, 12pt]{memoir}
\usepackage[showframe]{geometry}

\begin{document}
\subsection{A subsection - center me!}

\setsubsecheadstyle{\bfseries\large\centering}
\subsection{B subsection - center me!}
\end{document}
Related Question