TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. Join them; it only takes a minute:

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

So I am writing a book on AWK, and the first \chapter is called "Line Spacing". In this chapter I a dozen of various line spacing methods, such as

1. Double-space a file.
2. Triple-space a file,

I am wondering how can I apply formatting to these methods so that each one of them looked like sub-title (smaller text, bold and numbered)?

Here is what I mean, so I have a \chapter called "Line Spacing" and then I wish "1. Double-space a file." to be also in bold but smaller font so it looks like a sub-title,

Chapter 1: Line Spacing

... intro about what line spacing is ...

1. Double-space a file.

awk '1; { print "" }'

. . .

share|improve this question
up vote 2 down vote accepted

In your first question, you mentioned that you were going to take a look at the memoir document class. If you are still working with this class, then see Chapeter 6 of the Memoir manual "Document divisions". This chapter explains how to customize the look of all 8 levels of Memoir document divisions from \book to \subparagraph.

share|improve this answer
That's true, I am using memoir. Thanks for pointing me to Chapter 6, reading it right now. – Peteris Krumins Apr 29 '11 at 7:35
Do you know if there are any templates for memoir? It's very hard to understand what commands I should use and how to get it done. I'd rather start with a template and then customize it as I learn to make faster progress. – Peteris Krumins Apr 29 '11 at 8:00
@ Peteris Krumins. Yes there are templates althouth they may not be what you are searching for. They are called headstyles. Look at the manual at section 6.9 Are you sure that you don't mean \section{Double-space a file.}? If that is what you mean check this question – pmav99 Apr 29 '11 at 8:31

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.