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. SHOWCASES\newcommand*{\colorchapnum}{}\newcommand*{\colorchaptitle}{}\makechapterstyle{pedersen}{%\setlength{\beforechapskip}{-20pt}\setlength{\afterchapskip}{10pt}\renewcommand*{\chapnamefont}{\normalfont\LARGE\itshape}\renewcommand*{\chapnumfont}{\normalfont\HUGE\itshape\colorchapnum}\renewcommand*{\chaptitlefont}{\normalfont\huge\itshape\colorchaptitle}\renewcommand*{\afterchapternum}{}\renewcommand*{\printchaptername}{}\setlength{\midchapskip}{20mm}\renewcommand*{\chapternamenum}{}\renewcommand*{\printchapternum}{%\sidebar{\raisebox{0pt}[0pt][0pt]{\makebox[0pt][l]{%\resizebox{!}{\midchapskip}{\chapnumfont\thechapter}}}}}\renewcommand*{\printchaptertitle}[1]{\chaptitlefont ##1}}<strong>The</strong> chapter number is scaled up from its normal size and set in a sidebar.\colorchapnum \colorchaptitle<strong>The</strong> title is set with colorchaptitle and the number with colorchapnum, both of whichdefault to doing nothing. Lars Madsen has suggested an attractive red color for these:\usepackage{color}\definecolor{ared}{rgb}{.647,.129,.149}\renewcommand{\colorchapnum}{\color{ared}}\renewcommand{\colorchaptitle}{\color{ared}}\chapterstyle{pedersen}<strong>The</strong> uncolored version is used for the chaptersyle for this chapter; because of settingthe number in a sidebar it does not display well anywhere other than as a real chapterhead.B.1.4SouthallOn 2006/01/08 Thomas Dye posted his southall chapterstyle on comp.text.tex andkindly gave me permission to include it here. It is based on the headings in a CambridgePress book 1 by Aidan Southall. It produces a simple numbered heading with the title setas a block paragraph, and with a horizontal rule underneath. His original code called forlining figures for the number but I have commented out that bit. I also changed the codeto eliminate the need for the two new lengths that Thomas used.\makechapterstyle{southall}{%\setlength{\afterchapskip}{5\baselineskip}\setlength{\beforechapskip}{36pt}\setlength{\midchapskip}{\textwidth}\addtolength{\midchapskip}{-\beforechapskip}\renewcommand*{\chapterheadstart}{\vspace*{2\baselineskip}}1 Which I haven’t seen398

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

Saved successfully!

Ooh no, something went wrong!