[Tex/LaTex] Examples of “styles” for section headings with memoir

memoirsectioning

The memoir class is a popular choice for writing nice looking documents. Memoir gives you a lot of control over how section headings and so on look. Memoir doesn't, however have the nice shortcuts that change all the commands at once, so you have to have, for example:

\setsecheadstyle{\LARGE\scshape\raggedright}
\setsubsecheadstyle{\large\scshape\raggedright}
\setsubsubsecheadstyle{\normalsize\scshape\raggedright}
\setbeforesecskip{-1.5ex plus -.5ex minus -.2ex}
\setaftersecskip{1.3ex plus .2ex}
\setbeforesubsecskip{-1.25ex plus -.5ex minus -.2ex}
\setaftersubsecskip{1ex plus .2ex}

That is, you need a styling command for each level, plus two spacing commands for each level (note even this doesn't change paragraph styling or, in fact, spacing for subsubsec).

So what I'd like, as answers to this question are collections of memoir section styling commands that look nice and are consistent. The idea would then be to collect them, give them names, and offer them as a package, or suggest they be included in a future version of memoir. How exactly the restylings would be called in the document is as yet undetermined (simplest would be just to have each one a macro: \def\makesectionssc{\setsecheadstyle{etc...

For chapter headings, memoir does contain nice quick commands for globally modifying the chapter headings, but it doesn't extend to lower levels. So ideally, I'd like the suggestions below to also have a "serving suggestion" of which chapter styles they fit with.

The titlesec package provides nice package options for a quick way to modify all section commands consistently. So \usepackage[small,compact]{titlesec} makes all the sectioning commands smaller, and shrinks the spacing. Titlesec is sort of compatible with memoir. If you use titlesec, it overwrites all your memoir commands, however. So a memoir only solution is preferred.

Best Answer

From the memoir manual:

As well as the emulated packages memoir provides functions equivalent to those in the following packages, although the class does not prevent you from using them: fancyhdr, framed, geometry, sidecap, subfigure, and titlesec.

So is there evidence that memoir and titlesec don't "play nice"? Yes. Although the following example appears to work, some things do get broken. In particular, memoir allows for two optional arguments in a sectioning command (one for the header and one for the TOC) but this will be lost with titlesec. See the following question for detailed discussion:

\documentclass[oneside]{memoir}
\usepackage[small,sf,compact]{titlesec}
\usepackage{lipsum}
\begin{document}
\chapter{}
\section{A section}
\subsection{A subsection}
\lipsum
\end{document}
Related Question