Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

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.

share|improve this question
    
I've flagged this for mod attention: I think it should be CW –  Seamus Jan 12 '11 at 12:46
1  
You do know the Memoir Chapter style Showcase? But I suppose you want something similar for section? –  Carsten Thiel Jan 12 '11 at 13:08
3  
Kerr-Thump (that's the sound of the wiki-hammer) –  Andrew Stacey Jan 12 '11 at 13:16
1  
Yes, the chapter styles, as the name suggests only play with chapter stylings. This is something similar for sections (and lower levels.) –  Seamus Jan 12 '11 at 13:38
    
@Andrew I always thought the CW hammer was more of a Ding –  Seamus Jan 12 '11 at 14:21
show 2 more comments

1 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"?

\documentclass[oneside]{memoir}
\usepackage[small,sf,compact]{titlesec}
\usepackage{lipsum}
\begin{document}
\chapter{}
\section{A section}
\subsection{A subsection}
\lipsum
\end{document}
enter code here
share|improve this answer
1  
You can't use both titlesec commands and memoir commands, I believe. Add \setsecheadstyle{\bffamily} to your example and it is ignored. Also, since memoir has all the functionality, if we could do it with just memoir, that would save loading a package. –  Seamus Jan 12 '11 at 13:43
1  
@Seamus Fair enough. (But if it's quicker to use titlesec, then you can just use the titlesec commands, which I guess was my point.) The general aim of your question is good, but maybe it would make sense to remove the reference to titlesec altogether, since it's a bit of a red herring. –  Alan Munn Jan 12 '11 at 13:55
    
good point. I'll do that later –  Seamus Jan 12 '11 at 14:21
    
finally updated the question. –  Seamus Jan 24 '11 at 11:40
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.