summaryrefslogtreecommitdiff
path: root/Master/texmf-doc
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2008-03-28 23:19:13 +0000
committerKarl Berry <karl@freefriends.org>2008-03-28 23:19:13 +0000
commitabf58e9c15b880fba2f70fcf22dd5271abc05115 (patch)
treeac79ef483937dd0d5326361d76bd4c1d64d69c78 /Master/texmf-doc
parentccc82446897ad1e40dc84d740a0ef737cc75b277 (diff)
MemoirChapStyles update (25mar08)
git-svn-id: svn://tug.org/texlive/trunk@7211 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-doc')
-rw-r--r--Master/texmf-doc/doc/english/MemoirChapStyles/MemoirChapStyles.pdfbin792372 -> 906974 bytes
-rw-r--r--Master/texmf-doc/doc/english/MemoirChapStyles/MemoirChapStyles.tex369
-rw-r--r--Master/texmf-doc/doc/english/MemoirChapStyles/README6
3 files changed, 148 insertions, 227 deletions
diff --git a/Master/texmf-doc/doc/english/MemoirChapStyles/MemoirChapStyles.pdf b/Master/texmf-doc/doc/english/MemoirChapStyles/MemoirChapStyles.pdf
index d3c22ccff0c..34c7c0e65bb 100644
--- a/Master/texmf-doc/doc/english/MemoirChapStyles/MemoirChapStyles.pdf
+++ b/Master/texmf-doc/doc/english/MemoirChapStyles/MemoirChapStyles.pdf
Binary files differ
diff --git a/Master/texmf-doc/doc/english/MemoirChapStyles/MemoirChapStyles.tex b/Master/texmf-doc/doc/english/MemoirChapStyles/MemoirChapStyles.tex
index 60a4363ab38..eca1cc5bb06 100644
--- a/Master/texmf-doc/doc/english/MemoirChapStyles/MemoirChapStyles.tex
+++ b/Master/texmf-doc/doc/english/MemoirChapStyles/MemoirChapStyles.tex
@@ -11,6 +11,9 @@
%%
%% The Current Maintainer of this work is Lars Madsen (daleif@imf.au.dk).
%%
+%% $LastChangedDate: 2008-03-25 11:49:43 +0100 (Tue, 25 Mar 2008) $
+%% $LastChangedRevision: 20 $
+%%
\begin{filecontents}{chapterexample.tex}
\chapter{A chapter title}
Some text at the beginning of a chapter. And we add a lot of text to
@@ -23,7 +26,7 @@ make sure that it spans more than one line.
\end{filecontents}
\begin{filecontents*}{process.pl}
#!/usr/bin/perl
-# licensed under the GPL, by Lars Madsen, 2006/03/24
+# licensed under the GPL, by Lars Madsen, 2008/03/25
use Getopt::Long;
my $f = '';
my $k = '';
@@ -33,6 +36,14 @@ my $postfix = '-style';
GetOptions('f:s' => \$f,'k:s' => \$k,'p:s' => \$p);
my @styles = ();
my %pages = ();
+print <<END if ! $f;
+Usage:
+
+ $0 -f MemoirChapStyles.styles
+
+END
+exit if ! $f;
+
if ( $k ) { compile_file("$k$postfix"); exit ;}
open my $file ,'<', $f or die "Cannot open '$f': $!";
for my $l (<$file>) {
@@ -71,10 +82,10 @@ sub compile_file {
}
\end{filecontents*}
%$
-\documentclass[a4paper,11pt,article]{memoir}
-\def\MyFileVersion{Version 1.4c, 2006/07/28}
+\documentclass[a4paper,11pt,openany]{memoir}
+\def\MyFileVersion{Version 1.6, 2008/03/25}
\setlrmarginsandblock{2.5cm}{*}{1}
-\setulmarginsandblock{2.5cm}{3.5cm}{*}
+\setulmarginsandblock{2.5cm}{2.5cm}{*}
\setmarginnotes{2.5mm}{2cm}{1em}
\checkandfixthelayout
\usepackage[latin1]{inputenc}
@@ -87,6 +98,9 @@ sub compile_file {
\newcommand\starbreak{\fancybreak{\decosix\quad\decosix\quad\decosix}}
\usepackage[scaled]{berasans}
+\chapterstyle{ell}
+\renewcommand\tocheadstart{}
+\renewcommand\printtoctitle[1]{}
\raggedbottom
\fvset{frame=lines,framesep=3mm,fontsize=\small}
@@ -210,7 +224,7 @@ sub compile_file {
\newcommand\@Arg[1]{\textnormal{$\langle$\textit{#1}$\rangle$}}
\newcommand\@Args[1]{\texttt{\{\textnormal{$\langle$\textit{#1}$\rangle$}\}}}
\newcommand\Arg{\@ifstar{\@Args}{\@Arg}}
-\newcommand\cs[1]{\texttt{\textbackslash #1}}
+\renewcommand\cs[1]{\texttt{\textbackslash #1}}
\makeatother
\newenvironment{syntax}{%
\vskip.5\onelineskip%
@@ -445,269 +459,136 @@ source code for these can be found in \texttt{memoir.cls}.
\begin{showchapterstyle}{default}
\end{showchapterstyle}
+\newpage
+
\begin{showchapterstyle}{section}
\end{showchapterstyle}
\begin{showchapterstyle}{hangnum}
\end{showchapterstyle}
+\newpage
+
\begin{showchapterstyle}{companion}
\end{showchapterstyle}
+
\begin{showchapterstyle}{article}
\end{showchapterstyle}
+\newpage
+
\begin{showchapterstyle}{demo}
\end{showchapterstyle}
-\bigskip
-
-\starbreak
-\bigskip
+\chapter{Styles included in mempatch as of version 4.6}
+\label{sec:styl-incl-memp}
-\noindent
-The memoir manual also mentions a style called \textsf{veelo}, by
-Bastiaan Veelo
+These styles are available via \texttt{mempatch.sty} version 4.6,
+released 2006/12/15. The styles are either PWs own designs or designs
+found via CTT. Please see \cite{memmanadd} for further information.
-\begin{showchapterstyle}{veelo}
-\makeatletter
-\usepackage{graphicx}
-\newlength{\numberheight}
-\newlength{\barlength}
-\makechapterstyle{veelo}{%
- \setlength{\beforechapskip}{40pt}
- \setlength{\midchapskip}{25pt}
- \setlength{\afterchapskip}{40pt}
- \renewcommand{\chapnamefont}{\normalfont\LARGE\flushright}
- \renewcommand{\chapnumfont}{\normalfont\HUGE}
- \renewcommand{\chaptitlefont}{\normalfont\HUGE\bfseries\flushright}
- \renewcommand{\printchaptername}{%
- \chapnamefont\MakeUppercase{\@chapapp}}
- \renewcommand{\chapternamenum}{}
- \setlength{\numberheight}{18mm}
- \setlength{\barlength}{\paperwidth}
- \addtolength{\barlength}{-\textwidth}
- \addtolength{\barlength}{-\spinemargin}
- \renewcommand{\printchapternum}{%
- \makebox[0pt][l]{%
- \hspace{.8em}%
- \resizebox{!}{\numberheight}{\chapnumfont \thechapter}%
- \hspace{.8em}%
- \rule{\barlength}{\numberheight}}}
- \makeoddfoot{plain}{}{}{\thepage}
-}
-\makeatother
+\begin{showchapterstyle}{bianchi}
\end{showchapterstyle}
-\bigskip
+\newpage
-\noindent
-Another example from the manual is a style based upon the design used
-in Robert Bringhursts, \emph{The Elements of Typographic Style}.
\begin{showchapterstyle}{bringhurst}
- \makechapterstyle{bringhurst}{%
- \renewcommand{\chapterheadstart}{}
- \renewcommand{\printchaptername}{}
- \renewcommand{\chapternamenum}{}
- \renewcommand{\printchapternum}{}
- \renewcommand{\afterchapternum}{}
- \renewcommand{\printchaptertitle}[1]{%
- \raggedright\Large\scshape\MakeLowercase{##1}}
- \renewcommand{\afterchaptertitle}{%
- \vskip\onelineskip \hrule\vskip\onelineskip}
-}
\end{showchapterstyle}
-Which is a very simple, but nice design. The most radical thing about
-the Bringhurst design is actually the quite odd headers, which are
-placed in the outer margins a bit down the page. See \cite{memman} for
-more information.
+\begin{showchapterstyle}{brotherton}
+\end{showchapterstyle}
-\section*{Styles memtioned in the memoir addendum}
-\label{sec:styl-memt-memo}
+\newpage
-Style to replicate the appearance of \verb+\section+ in the article
-class. The style is currently a part of \texttt{mempath.sty}.
-\begin{showchapterstyle}{reparticle}
+\begin{showchapterstyle}{chappell}
\end{showchapterstyle}
-The difference between this style and the \textsf{section} style is
-the way a long title text is handled.
-Style originally by Thomas Dye, inspired by a style used in a book by
-Aidan Southall.
-\begin{showchapterstyle}{southall}
-%% Thomas Dye's southall chapter style
-\newlength{\headindent}
-\newlength{\rightblock}
-\makechapterstyle{southall}{%
- \setlength{\headindent}{36pt}
- \setlength{\rightblock}{\textwidth}
- \addtolength{\rightblock}{-\headindent}
- \setlength{\beforechapskip}{2\baselineskip}
- \setlength{\afterchapskip}{5\baselineskip}
- \setlength{\midchapskip}{0pt}
- \renewcommand{\chaptitlefont}{\huge\rmfamily\raggedright}
- \renewcommand{\chapnumfont}{\chaptitlefont}
- \renewcommand{\printchaptername}{}
- \renewcommand{\chapternamenum}{}
- \renewcommand{\afterchapternum}{}
- \renewcommand{\printchapternum}{%
- \begin{minipage}[t][\baselineskip][b]{\headindent}
- {\vspace{0pt}\chapnumfont%%%\figureversion{lining}
- \thechapter}
- \end{minipage}}
- \renewcommand{\printchaptertitle}[1]{%
- \hfill\begin{minipage}[t]{\rightblock}
- {\vspace{0pt}\chaptitlefont ##1\par}\end{minipage}}
- \renewcommand{\afterchaptertitle}{%
- \par\vspace{\baselineskip}%
- \hrulefill \par\nobreak\noindent \vskip\afterchapskip}
-}
+
+\begin{showchapterstyle}{culver}
\end{showchapterstyle}
-Style based on the chapter heads found in Warren Chappell and Robert
-Bringhurst: \emph{A Short History of the Printed Word}. Hartley \&
-Marks, 1999.
-\begin{showchapterstyle}{chappell}
-\makechapterstyle{chappell}{
- \setlength\beforechapskip{0pt}
- \renewcommand*\chapnamefont{\large\centering}
- \renewcommand*\chapnumfont{\large}
- \renewcommand*\printchapternonum{%
- \vphantom{\printchaptername}%
- \vphantom{\chapnumfont 1}%
- \afterchapternum
- \vskip -\onelineskip}
- \renewcommand*\chaptitlefont{\Large\itshape}
- \renewcommand*\printchaptertitle[1]{%
- \hrule\vskip\onelineskip\centering\chaptitlefont ##1}
-}
+
+\newpage
+
+\begin{showchapterstyle}{dash}
\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}
+
+\begin{showchapterstyle}{ell}
\end{showchapterstyle}
+\newpage
-\chapter{Styles found via Google Groups}
+\noindent
+Note that this style is wrongly named in \cite{memmanadd}.
+\begin{showchapterstyle}{Ger}
+\end{showchapterstyle}
-\enlargethispage{\onelineskip}
+\newpage
-Style posted on \textsc{ctt} 2006/01/31 by Troels
-Pedersen. I changed the color, and also altered the original
-\verb+\marginpar+ to a \verb+\sidebar+, since the \verb+\marginpar+ is
-a movable float, which might look odd in some cases.
-\begin{showchapterstyle}{TroelsPedersen}
-\usepackage{graphicx,color}
-\definecolor{nicered}{rgb}{.647,.129,.149}
-\makeatletter
-\newlength{\numberheight}
-\makechapterstyle{TroelsPedersen}{%
- \setlength{\beforechapskip}{-20pt}
- \setlength{\midchapskip}{0pt}
- \setlength{\afterchapskip}{10pt}
- \renewcommand{\chapnamefont}{\normalfont\LARGE\itshape}
- \renewcommand{\chapnumfont}{\normalfont\HUGE\itshape\color{nicered}}
- \renewcommand{\chaptitlefont}{\normalfont\huge\itshape\color{nicered}}
- \renewcommand{\afterchapternum}{}
- \renewcommand{\printchaptername}{}
- \setlength{\numberheight}{20mm}
- \renewcommand{\chapternamenum}{}%
- \renewcommand{\printchapternum}{%
- \sidebar{\makebox[0pt][l]{%
- \resizebox{!}{\numberheight}{\chapnumfont\thechapter}}}}%
- \renewcommand\printchaptertitle[1]{\chaptitlefont##1}
-}
-\makeatother
+\begin{showchapterstyle}{lyhne}
+\usepackage{graphicx}
\end{showchapterstyle}
-Posted in a question on \textsc{ctt} 2006/02/09 by Anders Lyhne. (I
-added \verb+\raggedleft+ to the \verb+\chaptitlefont+ and added the
-\verb+\printchapternonum+ line.)
-\begin{showchapterstyle}{AndersLyhne}
+
+\newpage
+
+\noindent Please note that there is an error in this style. The
+unnumbered title should also be typeset raggedleft. This can be done
+by adding
+\begingroup
+\begin{verbatim}
+\renewcommand*{\chaptitlefont}{%
+ \normalfont\Huge\bfseries\sffamily\raggedleft}
+\end{verbatim}
+\endgroup
+\noindent after \verb+\chapterstyle{madsen}+.
+\begin{showchapterstyle}{madsen}
\usepackage{graphicx}
-\makechapterstyle{AndersLyhne}{%
- \newlength{\chapterlineskipx}
- \setlength{\chapterlineskipx}{0.2cm}
- \setlength{\beforechapskip}{1.5cm}
- \setlength{\afterchapskip}{1cm}
- \setlength{\midchapskip}{2cm}
- \renewcommand\chapnamefont{\normalfont\normalsize\scshape\raggedleft}
- \renewcommand\chaptitlefont{\normalfont\normalsize\bfseries\sffamily\raggedleft}
- \renewcommand\chapternamenum{}
- \renewcommand\printchapternum{\makebox[0pt][l]{\hspace{0.2em}%
- \resizebox{!}{2ex}{\chapnamefont\bfseries\sffamily\thechapter}}}
- \renewcommand\afterchapternum{\par\hspace{1.5cm}\hrule\vspace{0.2cm}}
- \renewcommand\printchapternonum{\par}
- \renewcommand\afterchaptertitle{\vskip\chapterlineskipx
- \hrule\vskip\afterchapskip}
-}
\end{showchapterstyle}
-%
-This styles is a modified verion of a style posted by Peter Wilson in
-an answer on \textsc{ctt} on 2005/01/18. I made sure that the chapter
-number disappears in the unnumbered version. I out-commented the
-\verb+\cleardoublepage+ because of space issues for this document.
-\begin{showchapterstyle}{PeterWilson1}
-\newif\ifNoCHapNum
-\makechapterstyle{PeterWilson1}{%
- \setlength{\beforechapskip}{0pt}
- \renewcommand{\printchaptername}{}
- \renewcommand{\printchapternum}{}
- \setlength{\midchapskip}{0pt}
- \renewcommand{\printchaptertitle}[1]{%
- \hrule \vskip 0.5\onelineskip
- \Huge \hspace{0pt}\hfill\ifNoCHapNum\relax\else\thechapter.\ \fi
- ##1 \hfill\hspace{0pt}
- \NoCHapNumfalse%
- \vskip 0.5\onelineskip
- \hrule}
- \renewcommand\printchapternonum{\NoCHapNumtrue}
-% \renewcommand{\afterchaptertitle}{\cleardoublepage}
-}
+
+
+\newpage
+
+\begin{showchapterstyle}{pedersen}
+\usepackage{color,graphicx}
+\definecolor{ared}{rgb}{.647,.129,.149}
+\renewcommand\colorchapnum{\color{ared}}
+\renewcommand\colorchaptitle{\color{ared}}
\end{showchapterstyle}
-%
-Style by Scott Thatcher, posted on \textsc{ctt} 2006/01/18.
-\begin{showchapterstyle}{ScottThatcher}
-\makechapterstyle{ScottThatcher}{%
- \renewcommand{\chapterheadstart}{}
- \renewcommand{\chaptitlefont}{\large}
- \renewcommand{\chapnumfont}{\scshape\MakeLowercase}
- \renewcommand{\printchaptername}{\centerline{\chapnumfont{Chapter
- \thechapter}}}
- \renewcommand{\chapternamenum}{}
- \renewcommand{\printchapternum}{}
- \renewcommand{\afterchapternum}{%
- \par\centerline{\parbox{0.5in}{\hrulefill}}\par}
- \renewcommand{\printchaptertitle}[1]{%
- \centerline{\chaptitlefont\MakeUppercase{##1}}}
-}
+
+
+\begin{showchapterstyle}{southall}
\end{showchapterstyle}
+
+\begin{showchapterstyle}{thatcher}
+\end{showchapterstyle}
+
+
+\begin{showchapterstyle}{veelo}
+\usepackage{graphicx}
+\end{showchapterstyle}
+
+
+\newpage
+
+\begin{showchapterstyle}{verville}
+\end{showchapterstyle}
+
+\chapter{Styles found via Google Groups}
+
+Please note that most of the styles that were mentioned here in
+earlier versions of this document, are now a part of memoir and
+therefore removed.
+
+
%
By Alexander Grebenkov 2004/11/25, found via Google Groups on fido.ru.tex.
\begin{showchapterstyle}{AlexanderGrebenkov}
@@ -873,6 +754,7 @@ Danie notes:
\starbreak
+\newpage
This next style is inspired by a mail I recieved from Erik
Quaeghebeur. It took me a little while to actually get this working as
@@ -975,9 +857,44 @@ make sure that it spans more than one line.
\end{showchapterstyle*}
Remember that the line you see is actually the header.
-
\newpage
+\noindent
+This next style is a modified version of a style requested on a danish
+forum.
+
+\begin{showchapterstyle}{jenor}
+\usepackage{xcolor,fix-cm}
+\definecolor{numbercolor}{gray}{0.7}
+\newif\ifchapternonum
+\makechapterstyle{jenor}{
+ \renewcommand\printchaptername{}
+ \renewcommand\printchapternum{}
+ \renewcommand\printchapternonum{\chapternonumtrue}
+ \renewcommand\chaptitlefont{\fontfamily{pbk}\fontseries{db}%
+ \fontshape{n}\fontsize{25}{35}\selectfont\raggedleft}
+ \renewcommand\chapnumfont{\fontfamily{pbk}\fontseries{m}\fontshape{n}%
+ \fontsize{1in}{0in}\selectfont\color{numbercolor}}
+ \renewcommand\printchaptertitle[1]{%
+ \noindent%
+ \ifchapternonum%
+ \begin{tabularx}{\textwidth}{X}%
+ {\parbox[b]{\linewidth}{\chaptitlefont ##1}%
+ \vphantom{\raisebox{-15pt}{\chapnumfont 1}}}
+ \end{tabularx}%
+ \else
+ \begin{tabularx}{\textwidth}{Xl}
+ {\parbox[b]{\linewidth}{\chaptitlefont ##1}}
+ & \raisebox{-15pt}{\chapnumfont \thechapter}%
+ \end{tabularx}%
+ \fi
+ \par\vskip2mm\hrule
+ }
+}
+\end{showchapterstyle}
+
+
+
\chapter{Vincent Zoonekynd}
\label{sec:vincent-zoonekynd}
@@ -1189,9 +1106,9 @@ Style inspired by VZ43
\begin{thebibliography}{9}
\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. Latest version to be released
- in August 2006.
+\bibitem{memmanadd} Peter Wilson, \emph{ADDENDUM -- The Memoir Class
+ for Configurable Typesetting -- User Guide}, 2006. Latest version,
+ released in December 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}.
diff --git a/Master/texmf-doc/doc/english/MemoirChapStyles/README b/Master/texmf-doc/doc/english/MemoirChapStyles/README
index a93c8f18b33..56667752af2 100644
--- a/Master/texmf-doc/doc/english/MemoirChapStyles/README
+++ b/Master/texmf-doc/doc/english/MemoirChapStyles/README
@@ -1,4 +1,4 @@
-% (C) Lars Madsen, daleif@imf.au.dk, 2006/04/06
+% (C) Lars Madsen, daleif@imf.au.dk, 2006/12/15
% This material is subject to the LaTeX Project Public License.
% See http://www.ctan.org/tex-archive/help/Catalogue/licenses.lppl.html
% for the details of that license.
@@ -31,6 +31,10 @@ README -- this document
Versions
---------
+1.6 Added the jenor style, and prepared for a CTAN release.
+1.5 A new mempatch version has been released including several new
+ chapter styles, this document has been changed acordingly.
+ You can use this as a preview for these styles.
1.4c: Added demo2 from the comming new version of Memoir Addendum, and
also added the the daleif3 style
1.4b: Sample text bugfix, a missing \par after \fancybreak affects