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.

B.1. Chapter stylesB.1.5\renewcommand*{\chaptitlefont}{\huge\rmfamily\raggedright}\renewcommand*{\chapnumfont}{\chaptitlefont}\renewcommand*{\printchaptername}{}\renewcommand*{\chapternamenum}{}\renewcommand*{\afterchapternum}{}\renewcommand*{\printchapternum}{%\begin{minipage}[t][\baselineskip][b]{\beforechapskip}{\vspace{0pt}\chapnumfont%%%\figureversion{lining}\thechapter}\end{minipage}}\renewcommand*{\printchaptertitle}[1]{%\hfill\begin{minipage}[t]{\midchapskip}{\vspace{0pt}\chaptitlefont ##1\par}\end{minipage}}\renewcommand*{\afterchaptertitle}{%\par\vspace{\baselineskip}%\hrulefill \par\nobreak\noindent \vskip\afterchapskip}}<strong>The</strong> resulting style is shown in Figure B.21.VeeloBastiaan Veelo posted the code for a new chapter style to CTT on 2003/07/22 under the title[<strong>memoir</strong>] [contrib] New chapter style. His code, which I have slightly modified and changedthe name to veelo, is below. I have also exercised editorial privilege on his comments.I thought I’d share a new chapter style to be used with the <strong>memoir</strong> <strong>class</strong>. <strong>The</strong>style is tailored for documents that are to be trimmed to a smaller width. Whenthe bound document is bent, black tabs will appear on the fore side at the placeswhere new chapters start as a navigational aid. We are scaling the chapternumber, which most DVI viewers will not display accurately.Bastiaan.In the style as I modified it, \beforechapskip is used as the height of the number and\midchapskip is used as the length of the black bar.\newlength{\numberheight}\newlength{\barlength}\makechapterstyle{veelo}{%\setlength{\afterchapskip}{40pt}\renewcommand*{\chapterheadstart}{\vspace*{40pt}}\renewcommand*{\afterchapternum}{\par\nobreak\vskip 25pt}\renewcommand*{\chapnamefont}{\normalfont\LARGE\flushright}\renewcommand*{\chapnumfont}{\normalfont\HUGE}\renewcommand*{\chaptitlefont}{\normalfont\HUGE\bfseries\flushright}\renewcommand*{\printchaptername}{%\chapnamefont\MakeUppercase{\@chapapp}}\renewcommand*{\chapternamenum}{}\setlength{\beforechapskip}{18mm}\setlength{\midchapskip}{\paperwidth}\addtolength{\midchapskip}{-\textwidth}399

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

Saved successfully!

Ooh no, something went wrong!