diff options
Diffstat (limited to 'Master/texmf-doc/doc/english/MemoirChapStyles/MemoirChapStyles.tex')
-rw-r--r-- | Master/texmf-doc/doc/english/MemoirChapStyles/MemoirChapStyles.tex | 100 |
1 files changed, 86 insertions, 14 deletions
diff --git a/Master/texmf-doc/doc/english/MemoirChapStyles/MemoirChapStyles.tex b/Master/texmf-doc/doc/english/MemoirChapStyles/MemoirChapStyles.tex index dc9b17492db..60a4363ab38 100644 --- a/Master/texmf-doc/doc/english/MemoirChapStyles/MemoirChapStyles.tex +++ b/Master/texmf-doc/doc/english/MemoirChapStyles/MemoirChapStyles.tex @@ -72,7 +72,7 @@ sub compile_file { \end{filecontents*} %$ \documentclass[a4paper,11pt,article]{memoir} -\def\MyFileVersion{Version 1.4b, 2006/04/20} +\def\MyFileVersion{Version 1.4c, 2006/07/28} \setlrmarginsandblock{2.5cm}{*}{1} \setulmarginsandblock{2.5cm}{3.5cm}{*} \setmarginnotes{2.5mm}{2cm}{1em} @@ -82,6 +82,12 @@ sub compile_file { \usepackage[T1]{fontenc} \usepackage{calc,graphicx,url,fancyvrb,multicol,keyval} \usepackage[draft]{fixme} +\usepackage{fourier} +\usepackage[scaled]{luximono} +\newcommand\starbreak{\fancybreak{\decosix\quad\decosix\quad\decosix}} +\usepackage[scaled]{berasans} + + \raggedbottom \fvset{frame=lines,framesep=3mm,fontsize=\small} \newoutputstream{StyleList} @@ -136,7 +142,7 @@ sub compile_file { \protect\documentclass{memoir}^^J% \protect\let\protect\STARTCODE\relax^^J% \protect\let\protect\STOPCODE\relax^^J% - \protect\let\protect\clearforchapter\relax^^J% + \protect\let\protect\clearforchapter\par^^J% \protect\STARTCODE% }% \fi% @@ -251,7 +257,7 @@ please send it with a minimal example to \url{daleif+memoir@imf.au.dk} and I will include it into this document. \bigskip -\fancybreak{$***$} +\starbreak \bigskip @@ -266,7 +272,7 @@ the start of the following text. This \verb+\afterchapskip+-spacing is silently reduced (to \verb+\onelineskip+) in order to save space, the same goes for \verb+\beforechapskip+. -\fancybreak{$***$} +\starbreak In any good chapter style design one should have given a thought at both the normal numbered style as well as the unnumbered @@ -280,7 +286,7 @@ label={chapterexample.tex}, fontsize=\small ]{chapterexample.tex} -\fancybreak{$***$} +\starbreak If you want to use one of the styles presented in this document, then there is no need to start retyping it all your self. Simply @@ -334,7 +340,7 @@ as the \emph{Memoir manual}, \cite{memman}. In general, \LaTeX\ classes use \verb+\@makechapterhead+ to print a chapter title specified my \verb|chapter|, and \verb+\@makeschapterhead+ for \verb+\chapter*+. In memoir Peter Wilson -made these two macros a bit more flexible than usual. The idea is not +made these two macros a bit more flexible than usual. The idea is that for numbered chapters (i.e. \verb+\chapter+ and $\texttt{secnumdepth}\geq 0$) one should think of the chapter title as build by: @@ -410,11 +416,11 @@ Activating a given style is done by simply issuing \cs{chapterstyle}\Arg*{name} \end{syntax} By the way, if you happen to like a given style but wanted to, say, -add color to the chapter title, you could just refined -\verb+\chaptitlefont+ after use issued \verb+\chapterstyle+. (Even +add color to the chapter title, you could just refine +\verb+\chaptitlefont+ after you have issued \verb+\chapterstyle+. (Even simpler to just use \verb+\addtodef\chaptitlefont{}{\color{nicered}}+.) -As a simple example here is the code for the \texttt{section} chapter +As a simple example, here is the code for the \texttt{section} chapter style \begin{Verbatim}[label={Source code for the \textsf{section} chapter style}] \makechapterstyle{section}{% @@ -456,7 +462,7 @@ source code for these can be found in \texttt{memoir.cls}. \bigskip -\fancybreak{$***$} +\starbreak \bigskip @@ -579,6 +585,32 @@ Marks, 1999. \hrule\vskip\onelineskip\centering\chaptitlefont ##1} } \end{showchapterstyle} +The latest version if \cite{memmanadd} is written with a modified +version of \texttt{demo}, according to Peter Wilson (in +\cite{memmanadd}) this one has a better design as the title appears in +the same place, no matter if we are using \cs{chapter} of +\cs{chapter*}. +\begin{showchapterstyle}{demo2} +\makeatletter +\makechapterstyle{demo2}{ + \renewcommand*\printchaptername{\centering} + \renewcommand*\printchapternum{\chapnumfont + \ifanappendix \thechapter \else \numtoName{\c@chapter}\fi} + \renewcommand*{\chaptitlefont}{\normalfont\Huge\sffamily} + \renewcommand*{\printchaptertitle}[1]{% + \hrule\vskip\onelineskip \raggedleft \chaptitlefont ##1} + \renewcommand*{\afterchaptertitle}{% + \vskip\onelineskip \hrule\vskip \afterchapskip} + \setlength{\beforechapskip}{3\baselineskip} + \renewcommand*{\printchapternonum}{% + \vphantom{\chapnumfont One} + \afterchapternum% + \vskip\topskip} + \setlength{\beforechapskip}{2\onelineskip} +} +\makeatother +\end{showchapterstyle} + @@ -735,8 +767,7 @@ First here are are few of my own. } \makeatother \end{showchapterstyle} -This style will be used in the next version of my \LaTeX\ book. This -next style was made one late night for a talk about memoir in the +This next style was made one late night for a talk about memoir in the Danish \TeX\ Users Group. It has later been used in a few master theses. \begin{showchapterstyle}{daleif2} @@ -752,6 +783,46 @@ theses. } \end{showchapterstyle} % +Style build upon \texttt{VZ15b}, see later. +\begin{showchapterstyle}{{daleif3}} +\usepackage{fourier} +\makeatletter +\newif\iffelinenonum +\newcommand\MyNumToName[1]{% + \ifcase#1\relax % case 0 + \or First\or Second\or Third% + \else Not implemented\fi} +\makechapterstyle{daleif3}{ + \renewcommand\chapternamenum{} + \renewcommand\printchaptername{} + \renewcommand\chapnamefont{\small\itshape\centering} + \setlength\midchapskip{7pt} + \renewcommand\printchapternum{% + \par\chapnamefont\decofourleft\enspace% + \ifanappendix + \appendixname\space\thechapter% + \else% + \MyNumToName{\thechapter}\space\chaptername% + \fi% + \/\enspace\decofourright} + \renewcommand\printchapternonum{\par\felinenonumtrue} + \renewcommand\chaptitlefont{\huge\itshape\centering} + \renewcommand\afterchapternum{% + \par\nobreak\vskip-5pt% + } + \renewcommand\afterchaptertitle{% + \par\vskip-2\midchapskip% + \rule\textwidth\normalrulethickness + \felinenonumfalse + \nobreak\vskip\afterchapskip% + } +} +\makeatother +\end{showchapterstyle} + + + + Danie Els contributed the following style along with the BlueBox style on page \pageref{BlueBox}. \begin{showchapterstyle}{GreyNum} @@ -800,7 +871,7 @@ Danie notes: \verb|\renewcommand{\sfdefault}{fmy}%. Sans serif - Myrad (Springer bundle)| \end{adjustwidth} -\fancybreak{$***$} +\starbreak This next style is inspired by a mail I recieved from Erik @@ -1119,7 +1190,8 @@ Style inspired by VZ43 \bibitem{memman} Peter Wilson, \emph{The Memoir Class for Configurable Typesetting -- User Guide}, 2005. \bibitem{memmanadd} Peter Wilson, \emph{ADDENDUM -- The Memoir Class for Configurable - Typesetting -- User Guide}, 2006. + Typesetting -- User Guide}, 2006. Latest version to be released + in August 2006. \bibitem{VZ} Vincent Zoonekynd. On-line list of different chapter styles for \LaTeX. Available at \url{http://zoonek.free.fr/LaTeX/LaTeX_samples_chapter/0.html}. |