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.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'd like to add letterspacing to the \section commands with \setsecheadstyle in a memoir book.

I tried using soul:

\sodef\soSection{}{.1em}{.5em plus.1em}{.1em plus.1em minus.1em}

Of course this fails to compile because it should be \soSection{...}, but memoir inserts \secheadstyle this way:

  \@startsection{section}{1}%  level 1
      {\secindent}%            heading indent
      {\beforesecskip}%        skip before the heading
      {\aftersecskip}%         skip after the heading
      {\normalfont\secheadstyle}} % font

It's possible to use a quick workaround, but it would be much neater to do this with styling.

\section[Suffering and Self-View]{\soSection{Suffering and Self-View}}

Can one set \setsecheadstyle with a soul command in it somehow?

share|improve this question
up vote 5 down vote accepted

The memoir class uses two optional arguments for the sectioning commands; the first optional argument is used for the ToC and the second one, for the running headers.

With the help of the xparse package you can define a new command behaving like the standard \section from memoir, but adding your \soSection command:


\sodef\soSection{}{.1em}{.5em plus.1em}{.1em plus.1em minus.1em}



\Section[Suffering and Self-View][Test]{Suffering and Self-View}


If you are never going to use the second optional argument for \section, a simpler solution can be given (with no new commands) using the titlesec package and its explicit option:


\sodef\soSection{}{.1em}{.5em plus.1em}{.1em plus.1em minus.1em}



\section[Suffering and Self-View]{Suffering and Self-View}

share|improve this answer
Thanks, I went for an xparse definition. titlesec was rewriting too much of the already defined memoir styles. – Nyiti Jan 8 '12 at 12:53

Your Answer


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.