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 "" }'

. . .


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.

  • That's true, I am using memoir. Thanks for pointing me to Chapter 6, reading it right now. 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. 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 clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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