diff options
Diffstat (limited to 'Master/texmf-dist/doc/latex')
-rw-r--r-- | Master/texmf-dist/doc/latex/MemoirChapStyles/MemoirChapStyles.pdf | bin | 906974 -> 1954940 bytes | |||
-rw-r--r-- | Master/texmf-dist/doc/latex/MemoirChapStyles/MemoirChapStyles.tex | 367 | ||||
-rw-r--r-- | Master/texmf-dist/doc/latex/MemoirChapStyles/README | 8 |
3 files changed, 228 insertions, 147 deletions
diff --git a/Master/texmf-dist/doc/latex/MemoirChapStyles/MemoirChapStyles.pdf b/Master/texmf-dist/doc/latex/MemoirChapStyles/MemoirChapStyles.pdf Binary files differindex 34c7c0e65bb..bfa5a27a3c0 100644 --- a/Master/texmf-dist/doc/latex/MemoirChapStyles/MemoirChapStyles.pdf +++ b/Master/texmf-dist/doc/latex/MemoirChapStyles/MemoirChapStyles.pdf diff --git a/Master/texmf-dist/doc/latex/MemoirChapStyles/MemoirChapStyles.tex b/Master/texmf-dist/doc/latex/MemoirChapStyles/MemoirChapStyles.tex index eca1cc5bb06..eee5a821a37 100644 --- a/Master/texmf-dist/doc/latex/MemoirChapStyles/MemoirChapStyles.tex +++ b/Master/texmf-dist/doc/latex/MemoirChapStyles/MemoirChapStyles.tex @@ -11,18 +11,23 @@ %% %% 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 $ +%% $LastChangedDate: 2010-05-08 18:21:22 +0200 (Sat, 08 May 2010) $ +%% $LastChangedRevision: 782 $ %% \begin{filecontents}{chapterexample.tex} +\let\clearforchapter\par % cheating, but saves some space \chapter{A chapter title} -Some text at the beginning of a chapter. And we add a lot of text to -make sure that it spans more than one line. +Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Ut purus +elit, vestibulum ut, placerat ac, adipiscing vitae, felis. Curabitur +dictum gravida mauris. Nam arcu libero, nonummy eget, consectetuer id, +vulputate a, magna. \par\fancybreak{$***$}\par \chapter*{A non-numbered chapter title} -Some text at the beginning of a chapter. And we add a lot of text to -make sure that it spans more than one line. -\thispagestyle{empty} +Nam dui ligula, fringilla a, euismod sodales, sollicitudin vel, +wisi. Morbi auctor lorem non justo. Nam lacus libero, pretium at, +lobortis vitae, ultricies et, tellus. Donec aliquet, tortor sed +accumsan bibendum, erat ligula aliquet magna, vitae ornare odio metus +a mi. \thispagestyle{empty} \end{filecontents} \begin{filecontents*}{process.pl} #!/usr/bin/perl @@ -83,7 +88,7 @@ sub compile_file { \end{filecontents*} %$ \documentclass[a4paper,11pt,openany]{memoir} -\def\MyFileVersion{Version 1.6, 2008/03/25} +\def\MyFileVersion{Version 1.7, 2010/05/08} \setlrmarginsandblock{2.5cm}{*}{1} \setulmarginsandblock{2.5cm}{2.5cm}{*} \setmarginnotes{2.5mm}{2cm}{1em} @@ -91,11 +96,27 @@ sub compile_file { \usepackage[latin1]{inputenc} \usepackage[english]{babel} \usepackage[T1]{fontenc} -\usepackage{calc,graphicx,url,fancyvrb,multicol,keyval} +\usepackage{ + calc, + graphicx, + url, + fancyvrb, + multicol, + kvsetkeys +} +\usepackage[svgnames,dvipsnames]{xcolor} +\definecolor{felinesrcbgcolor}{rgb}{1,1,0.85} +\definecolor{felinesrcbgcolor}{rgb}{0.94,0.97,1} +\definecolor{felineframe}{rgb}{0.79,0.88,1} +\definecolor{myorange}{rgb}{1,0.375,0} + \usepackage[draft]{fixme} \usepackage{fourier} \usepackage[scaled]{luximono} \newcommand\starbreak{\fancybreak{\decosix\quad\decosix\quad\decosix}} + +%\newcommand\starbreak{\fancybreak{$*\quad*\quad*$}} + \usepackage[scaled]{berasans} \chapterstyle{ell} @@ -103,79 +124,68 @@ sub compile_file { \renewcommand\printtoctitle[1]{} \raggedbottom -\fvset{frame=lines,framesep=3mm,fontsize=\small} +\fvset{frame=lines, + framesep=3mm, + framerule=3pt, + fontsize=\small, + rulecolor=\color{myorange}, + formatcom=\color{DarkGreen}, +} \newoutputstream{StyleList} \newoutputstream{OutputStyle}% \openoutputfile{\jobname.styles}{StyleList} \def\OutputStylePostfix{-style} \def\CurrentChapterStyle{} \makeatletter -% a little redefinition of keyval -\def\KV@split#1=#2=#3\relax{% - \KV@@sp@def\@tempa{#1}% - \ifx\@tempa\@empty\else - \expandafter\let\expandafter\@tempc - \csname\KV@prefix\@tempa\endcsname - \ifx\@tempc\relax -% \KV@errx -% {\@tempa\space undefined noget}% - \xdef\CurrentChapterStyle{\@tempa}% - \else - \ifx\@empty#3\@empty - \KV@default - \else - \KV@@sp@def\@tempb{#2}% - \expandafter\@tempc\expandafter{\@tempb}\relax - \fi - \fi - \fi} +\kv@set@family@handler{MCS}{% + \xdef\CurrentChapterStyle{#1}% +} \define@key{MCS}{pages}{%\typeout{xxx: #1} - \global\@namedef{MCS@pages@\CurrentChapterStyle}{#1} + \global\@namedef{MCS@pages@\CurrentChapterStyle}{#1}% } \newif\ifSCS@full \newcounter{MCS} \newenvironment{@showchapterstyle}[1]{% - \setkeys{MCS}{#1}% + \kvsetkeys{MCS}{#1}% \ifSCS@full% -% \gdef\CurrentChapterStyle{#1}% - \edef\hest{\CurrentChapterStyle\OutputStylePostfix\space page \@nameuse{MCS@pages@\CurrentChapterStyle}} - \addtostream{StyleList}{\hest}% + \edef\hest{\CurrentChapterStyle\OutputStylePostfix\space page \@nameuse{MCS@pages@\CurrentChapterStyle}} + \addtostream{StyleList}{\hest}% \else% -% \gdef\CurrentChapterStyle{#1}% - \addtostream{StyleList}{\CurrentChapterStyle\OutputStylePostfix}% + \addtostream{StyleList}{\CurrentChapterStyle\OutputStylePostfix}% \fi% \openoutputfile{\CurrentChapterStyle\OutputStylePostfix.tex}{OutputStyle}% \ifSCS@full% - \addtostream{OutputStyle}{% - \protect\let\protect\STARTCODE\relax^^J% - \protect\let\protect\STOPCODE\relax^^J% - \protect\STARTCODE% - }% + \addtostream{OutputStyle}{% + \protect\let\protect\STARTCODE\relax^^J% + \protect\let\protect\STOPCODE\relax^^J% + \protect\STARTCODE% + }% \else% - \addtostream{OutputStyle}{% - \protect\documentclass{memoir}^^J% - \protect\let\protect\STARTCODE\relax^^J% - \protect\let\protect\STOPCODE\relax^^J% - \protect\let\protect\clearforchapter\par^^J% - \protect\STARTCODE% - }% + \addtostream{OutputStyle}{% + \protect\documentclass{memoir}^^J% + \protect\let\protect\STARTCODE\relax^^J% + \protect\let\protect\STOPCODE\relax^^J% + \protect\STARTCODE% + }% \fi% - \writeverbatim{OutputStyle}}{% + \writeverbatim{OutputStyle}% +}{% \endwriteverbatim\relax% \ifSCS@full% - \addtostream{OutputStyle}{% - \protect\STOPCODE% - } + \addtostream{OutputStyle}{% + \protect\STOPCODE% + } \else% - \addtostream{OutputStyle}{% - \protect\chapterstyle{\CurrentChapterStyle}^^J% - \protect\STOPCODE^^J% - \protect\setlength\afterchapskip{\onelineskip}^^J% - \protect\setlength\beforechapskip{\onelineskip}^^J% - \protect\begin{document}^^J% + \addtostream{OutputStyle}{% + \protect\chapterstyle{\CurrentChapterStyle}^^J% + \protect\STOPCODE^^J% + \protect\setlength\afterchapskip{\onelineskip}^^J% + \protect\setlength\beforechapskip{\onelineskip}^^J% + \protect\usepackage{lipsum}^^J% + \protect\begin{document}^^J% \protect\input{chapterexample.tex}^^J% \protect\end{document}% - }% + }% \fi% \closeoutputstream{OutputStyle}% \edef\FancyVerbStartString{\string\STARTCODE}% @@ -185,35 +195,33 @@ sub compile_file { \vskip\z@\@plus -\bottomsectionskip \phantomsection \addcontentsline{toc}{section}{\CurrentChapterStyle} - \VerbatimInput[ - label=\textnormal{\small Source for the \textsf{\CurrentChapterStyle} style} - ]{\CurrentChapterStyle-style.tex}%% + \VerbatimInput[label={\small Source for the \textsf{\CurrentChapterStyle} style}]{\CurrentChapterStyle-style.tex}%% \par\noindent% \IfFileExists{\CurrentChapterStyle\OutputStylePostfix.pdf}{% \fboxsep=4pt% \begin{adjustwidth}{-\fboxsep-\fboxrule}{-\fboxsep-\fboxrule}% - \begin{framed}% +% \begin{framed}% \@ifundefined{MCS@pages@\CurrentChapterStyle}{% - \includegraphics[width=\textwidth]{\CurrentChapterStyle\OutputStylePostfix}% + \fcolorbox{felineframe}{felinesrcbgcolor}{\includegraphics[width=\textwidth]{\CurrentChapterStyle\OutputStylePostfix}}% }{% \edef\nisse{\@nameuse{MCS@pages@\CurrentChapterStyle}} \@for\ITEM:=\nisse\do{ \ifpdf% - \includegraphics% - [width=\textwidth,page=\ITEM]{\CurrentChapterStyle\OutputStylePostfix}% + \fcolorbox{felineframe}{felinesrcbgcolor}{\includegraphics% + [width=\textwidth,page=\ITEM]{\CurrentChapterStyle\OutputStylePostfix}}% \else% - \includegraphics% - [width=\textwidth]{\CurrentChapterStyle\OutputStylePostfix-\ITEM}% + \fcolorbox{felineframe}{felinesrcbgcolor}{\includegraphics% + [width=\textwidth]{\CurrentChapterStyle\OutputStylePostfix-\ITEM}}% \fi% \bigskip% \fancybreak{$***$}% \bigskip }% }% - \end{framed}% +% \end{framed}% \end{adjustwidth} }{\fbox{File \CurrentChapterStyle-style.* does not exist}} - \vskip1.5\abovedisplayskip\noindent% + \vskip1em plus 1em minus -.5em\noindent% } % the two actual environments, the stared one will let you add entire % documents, while the unstared one will only display sniplets @@ -252,7 +260,6 @@ sub compile_file { \ifpdf \usepackage[colorlinks]{hyperref} -\usepackage{memhfixc} \fi @@ -305,14 +312,22 @@ fontsize=\small 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 download the source for this document (\texttt{\jobname.tex}) from -\url{http://www.imf.au.dk/system/latex/artikler/MemoirChapStyles/} -(where you will find the latest version) or from CTAN, via -\url{http://www.ctan.org/tex-archive/info/MemoirChapStyles/}. Run it +\url{http://mirror.ctan.org/info/MemoirChapStyles/}. Run it once through \LaTeX, then you will get a file called \Arg{Name of style}\texttt{-style.tex}, which is the source code for example displaying that particular style. Then just copy the code from there. +Please note that in the code you will find stuff like +\begin{Verbatim} +\let\STARTCODE\relax +\let\STOPCODE\relax +\STARTCODE +... +\STOPCODE +\end{Verbatim} +This code can just be removed, it is used by this document as an easy +manner to include certain parts of a given source code. \section*{Acknowledgement} @@ -333,6 +348,11 @@ Have a look at the chapter styles offered by \texttt{fncychap} and \texttt{titlesec}. +\newpage + +\chapter*{\contentsname} + + \setlength\columnsep{8mm} \begin{multicols}{2} \tableofcontents* @@ -356,7 +376,7 @@ 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 that for numbered chapters (i.e. \verb+\chapter+ and -$\texttt{secnumdepth}\geq 0$) one should think of the chapter title as +$\texttt{secnumdepth}\geq\nobreak 0$) one should think of the chapter title as build by: \begin{Verbatim} \chapterheadstart @@ -423,7 +443,7 @@ In memoir a new chapter style is defined as \texttt{\}} \end{syntax} Where \Arg{code} is redefinitions of the macros mentioned -above. (Remember that if you redefine \verb+\printchaptertitle+ then +above. (Remember that if you redefine\linebreak \verb+\printchaptertitle+ then you have to use \texttt{\#\#1} to represent the title.) Activating a given style is done by simply issuing \begin{syntax} @@ -450,12 +470,13 @@ style \clearpage -\chapter{Default styles included in memoir} +\chapter{Styles included in memoir} \label{cha:defa-styl-incl} First we have the six default chapterstyles in the memoir class. The source code for these can be found in \texttt{memoir.cls}. + \begin{showchapterstyle}{default} \end{showchapterstyle} @@ -463,75 +484,64 @@ source code for these can be found in \texttt{memoir.cls}. \begin{showchapterstyle}{section} \end{showchapterstyle} - -\begin{showchapterstyle}{hangnum} +\begin{showchapterstyle}{article} \end{showchapterstyle} \newpage -\begin{showchapterstyle}{companion} +\begin{showchapterstyle}{reparticle} \end{showchapterstyle} - - -\begin{showchapterstyle}{article} +\begin{showchapterstyle}{hangnum} \end{showchapterstyle} \newpage +\begin{showchapterstyle}{companion} +\end{showchapterstyle} \begin{showchapterstyle}{demo} \end{showchapterstyle} - - -\chapter{Styles included in mempatch as of version 4.6} -\label{sec:styl-incl-memp} - -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. +If you want to use this in a different lanugage, then that a look at +the implementation in the memoir source. You will need your own +version of \cs{numtoName} \begin{showchapterstyle}{bianchi} \end{showchapterstyle} -\newpage - \begin{showchapterstyle}{bringhurst} \end{showchapterstyle} - \begin{showchapterstyle}{brotherton} \end{showchapterstyle} - \newpage \begin{showchapterstyle}{chappell} \end{showchapterstyle} - - \begin{showchapterstyle}{culver} \end{showchapterstyle} +\begin{showchapterstyle}{dash} +\end{showchapterstyle} \newpage -\begin{showchapterstyle}{dash} +\begin{showchapterstyle}{demo2} \end{showchapterstyle} -\begin{showchapterstyle}{demo2} +\newpage + +\begin{showchapterstyle}{demo3} \end{showchapterstyle} +\newpage + \begin{showchapterstyle}{ell} \end{showchapterstyle} - \newpage - -\noindent -Note that this style is wrongly named in \cite{memmanadd}. -\begin{showchapterstyle}{Ger} +\begin{showchapterstyle}{ger} \end{showchapterstyle} - \newpage \begin{showchapterstyle}{lyhne} @@ -540,21 +550,10 @@ Note that this style is wrongly named in \cite{memmanadd}. \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} \end{showchapterstyle} - \newpage \begin{showchapterstyle}{pedersen} @@ -564,25 +563,47 @@ by adding \renewcommand\colorchaptitle{\color{ared}} \end{showchapterstyle} +\newpage \begin{showchapterstyle}{southall} \end{showchapterstyle} - \begin{showchapterstyle}{thatcher} \end{showchapterstyle} - - \begin{showchapterstyle}{veelo} \usepackage{graphicx} \end{showchapterstyle} +The idea behind \emph{veelo} is that the black marker is printed to +the edge of the page and one is then able to see the star of the +chapter by just looking at the edge of the book. + +\begin{showchapterstyle}{verville} +\end{showchapterstyle} \newpage -\begin{showchapterstyle}{verville} +\begin{showchapterstyle}{crosshead} +\end{showchapterstyle} +\begin{showchapterstyle}{dowding} +\end{showchapterstyle} +\begin{showchapterstyle}{komalike} \end{showchapterstyle} +\begin{showchapterstyle}{ntglike} +\end{showchapterstyle} + +\newpage + +\begin{showchapterstyle}{tandh} +\end{showchapterstyle} +\begin{showchapterstyle}{wilsondob} +\end{showchapterstyle} + -\chapter{Styles found via Google Groups} + + + + +\chapter{Found or contributed styles} Please note that most of the styles that were mentioned here in earlier versions of this document, are now a part of memoir and @@ -608,10 +629,6 @@ By Alexander Grebenkov 2004/11/25, found via Google Groups on fido.ru.tex. \clearpage -\chapter{Contributed styles} -\label{cha:contributed-styles-1} - -First here are are few of my own. \begin{showchapterstyle}{daleif1} \usepackage{color,calc,graphicx,soul,fourier} @@ -648,21 +665,7 @@ First here are are few of my own. } \makeatother \end{showchapterstyle} -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} -\usepackage{graphicx} -\makechapterstyle{daleif2}{ - \renewcommand\chapnamefont{\normalfont\Large\scshape\raggedleft} - \renewcommand\chaptitlefont{\normalfont\Huge\bfseries\sffamily\raggedleft} - \renewcommand\chapternamenum{} - \renewcommand\printchapternum{% - \makebox[0pt][l]{\hspace{0.4em}% - \resizebox{!}{4ex}{\chapnamefont\bfseries\sffamily\thechapter}}} - \renewcommand\afterchapternum{\par\hspace{1.5cm}\hrule\vskip\midchapskip} -} -\end{showchapterstyle} + % Style build upon \texttt{VZ15b}, see later. \begin{showchapterstyle}{{daleif3}} @@ -894,6 +897,85 @@ forum. \end{showchapterstyle} +This next style originates from +\url{http://texblog.net/latex-archive/layout/fancy-chapter-tikz/} and +thus makes this interesting style available for memoir users. +\begin{showchapterstyle*}{texblogtikz,pages={1,3}} +\documentclass{memoir} +\usepackage[svgnames]{xcolor} +\usepackage{tikz} +% helper macros +\newcommand{\ChapWithNumber}[1]{ +\begin{tikzpicture}[remember picture,overlay] + \node[yshift=-3cm] at (current page.north west) + {\begin{tikzpicture}[remember picture, overlay] + \draw[fill=LightSkyBlue] (0,0) rectangle + (\stockwidth,3cm); + \node[anchor=east,xshift=.9\stockwidth,rectangle, + rounded corners=20pt,inner sep=11pt, + fill=MidnightBlue] + {\color{white}\chapnamefont\thechapter\space #1}; + \end{tikzpicture} + }; + \end{tikzpicture} +} +\newcommand{\ChapWithoutNumber}[1]{ + \begin{tikzpicture}[remember picture,overlay] + \node[yshift=-3cm] at (current page.north west) + {\begin{tikzpicture}[remember picture, overlay] + \draw[fill=LightSkyBlue] (0,0) rectangle + (\stockwidth,3cm); + \node[anchor=east,xshift=.9\stockwidth,rectangle, + rounded corners=20pt,inner sep=11pt, + fill=MidnightBlue] + {\color{white}\chapnamefont#1}; + \end{tikzpicture} + }; + \end{tikzpicture} +} +\newif\ifnumberedchap +\numberedchaptrue +\makechapterstyle{texblogtikz}{ + \renewcommand\chapnamefont{\normalfont\sffamily\Huge\bfseries} + \renewcommand\chapnumfont{\normalfont\sffamily\Huge\bfseries} + \renewcommand\chaptitlefont{\normalfont\sffamily\Huge\bfseries} + \renewcommand\chapternamenum{} + \renewcommand{\afterchapternum}{} + \renewcommand\printchaptername{} + \renewcommand\printchapternum{} + \renewcommand\printchapternonum{\global\numberedchapfalse} + \renewcommand\printchaptertitle[1]{% + \ifnumberedchap + \ChapWithNumber{##1} + \else + \ChapWithoutNumber{##1} + \fi + \global\numberedchaptrue + } +} +\chapterstyle{texblogtikz} +\aliaspagestyle{chapter}{empty} % just to save some space +\begin{document} +\chapter{A chapter title} +Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Ut purus +elit, vestibulum ut, placerat ac, adipiscing vitae, felis. Curabitur +dictum gravida mauris. Nam arcu libero, nonummy eget, consectetuer id, +vulputate a, magna. + + +\chapter*{A non-numbered chapter title} +Nam dui ligula, fringilla a, euismod sodales, sollicitudin vel, +wisi. Morbi auctor lorem non justo. Nam lacus libero, pretium at, +lobortis vitae, ultricies et, tellus. Donec aliquet, tortor sed +accumsan bibendum, erat ligula aliquet magna, vitae ornare odio metus +a mi. + +\end{document} +\end{showchapterstyle*} + +In reality, the blue box, covers the with of the paper, but do not +extend to the top op the paper, leaving a white ribbon. + \chapter{Vincent Zoonekynd} \label{sec:vincent-zoonekynd} @@ -1105,10 +1187,7 @@ 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, - released in December 2006. + Typesetting -- User Guide}, 2010. \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-dist/doc/latex/MemoirChapStyles/README b/Master/texmf-dist/doc/latex/MemoirChapStyles/README index 56667752af2..8ded39e8433 100644 --- a/Master/texmf-dist/doc/latex/MemoirChapStyles/README +++ b/Master/texmf-dist/doc/latex/MemoirChapStyles/README @@ -1,4 +1,4 @@ -% (C) Lars Madsen, daleif@imf.au.dk, 2006/12/15 +% (C) Lars Madsen, daleif@imf.au.dk, 2010/05/08 % 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,8 @@ README -- this document Versions --------- +1.7 Back in sync with the current memoir. Also added a TiKz based + style found online. 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. @@ -52,8 +54,8 @@ Requirements: A fairly new LaTeX installation -pdfcrop (comes at least with TeX Live 2005) -pdftops (comes with Xpdf, only for Linux, sorry) +pdfcrop (comes at least with TeX Live 2009) +pdftops (available through TeX Live 2009) perl (see later) |