12.07.2015 Views

The memoir class - The UK TeX Archive

The memoir class - The UK TeX Archive

The memoir class - The UK TeX Archive

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

A. PACKAGES AND MACROS\end{figure}\begin{figure}\centering\setlayoutscale{1}\drawparameterstrue\runinheadtrue\drawheading{}\caption{Run-in sectional headings} \label{fig:runsechead}\end{figure}<strong>The</strong> package also lets you try experimenting with different layout parameters anddraw diagrams showing what the results would be in a document.<strong>The</strong> version of layouts used for this manual is v2.4 dated 2001/04/30. Earlierversions will fail when attempting to draw some figures ( e.g., to draw Figure 2.3).• fonttable [Wil09a]. I used this for the font tables (e.g., Table 3.2). You must haveat least version 1.3 dated April 2009 for processing the manual (earlier versions arelikely to produce errors in the number formatting area with minor, but odd looking,effect on the printed result).A.2 MACROSOriginally the preamble of the manual contained many macro definitions, probably morethan most documents would because:• I am having to typeset many La<strong>TeX</strong> commands, which require some sort of specialprocessing;• I have tried to minimize the number of external packages needed to La<strong>TeX</strong> this manualsatisfactorily, and so have copied various macros from elsewhere;• I wanted to do some automatic indexing;• I wanted to set off the syntax specifications and the code examples from the maintext.I have since put the majority of these into a package file called memsty.sty. To get thewhole glory you will have to read the preamble, and the memsty package file but I show afew of the macros below as they may be of more general interest.\Ppstyle{〈pagestyle〉} \pstyle{〈pagestyle〉}<strong>The</strong> command \Ppstyle prints its argument in the font used to indicate pagestyles andthe command \pstyle prints its pagestyle argument and also makes a pagestyle entry inthe index. Its definition is\newcommand*{\pstyle}[1]{\Ppstyle{#1}%\index{#1 pages?\Ppstyle{#1} (pagestyle)}%\index{pagestyle!#1?\Ppstyle{#1}}}<strong>The</strong> first part prints the argument in the text and the second adds two entries to the idxfile. <strong>The</strong> fragment #1 pages is what the MakeIndex program will use for sorting entries,and the fragment following the ? character is what will be put into the index.\Pcstyle{〈chapterstyle〉} \cstyle{〈chapterstyle〉}380

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!