From 06a479cd423ae5eaa2b52e316cdf4ed6b29e5b56 Mon Sep 17 00:00:00 2001 From: Karl Berry Date: Tue, 9 Jul 2019 21:10:40 +0000 Subject: quotchap (9jul19) git-svn-id: svn://tug.org/texlive/trunk@51591 c570f23f-e606-0410-a88d-b1316a301751 --- .../texmf-dist/source/latex/quotchap/quotchap.dtx | 39 ++++++++++++++-------- 1 file changed, 25 insertions(+), 14 deletions(-) (limited to 'Master/texmf-dist/source') diff --git a/Master/texmf-dist/source/latex/quotchap/quotchap.dtx b/Master/texmf-dist/source/latex/quotchap/quotchap.dtx index 798198ab1a9..38cb2017dd4 100644 --- a/Master/texmf-dist/source/latex/quotchap/quotchap.dtx +++ b/Master/texmf-dist/source/latex/quotchap/quotchap.dtx @@ -4,10 +4,10 @@ % decorative chapter headings with quotations, a postscript output % device is needed. % Copyright (C) 1998 - 2010 Karsten Tinnefeld. -% Copyright (C) 2011 - 2012 Jan Klever. -% +% Copyright (C) 2011 - 2019 Jan Klever. +% % This file is NOT part of the LaTeX2e system, but intended for use with it. -% +% % This document is free software; you can redistribute it and/or modify it % under the terms of the GNU Library General Public License as published by % the Free Software Foundation; either version 2 of the License, or (at your @@ -42,14 +42,14 @@ %\ProvidesFile{quotchap.drv} % \fi % \ProvidesFile{quotchap.dtx} - [2012/10/20 v1.1 Decorative Chapter Headings with Quotes] + [2019/07/09 v1.2 Decorative Chapter Headings with Quotes] % % \iffalse %<*driver> \documentclass{ltxdoc} -\usepackage{multicol} +\usepackage{multicol} \GetFileInfo{quotchap.dtx} -\newcommand*{\docdate}{2012/10/20} +\newcommand*{\docdate}{2019/07/09} \RecordChanges \begin{document} \DocInput{\filename} @@ -57,7 +57,7 @@ % % \fi % -% \CheckSum{203} +% \CheckSum{209} % % \DoNotIndex{\@M,\@afterindentfalse,% % \@topnum,\advance,\AtEndOfPackage,\baselineskip,\begin,\bigskip,% @@ -142,10 +142,19 @@ % |\qsetcnfont{}|. For example: |\qsetcnfont{pzc}| % to use Zapf Chancery. % +% \DescribeMacro{quotefont} +% The font for quotations can be set globally with |\quotefont|. For +% example: |\renewcommand\quotefont{\sffamily\slshape}|. The default +% is |\slshape|. +% +% \DescribeMacro{qauthorfont} +% The font for the author of the quote can be set globally with +% |\qauthorfont|. For example: |\renewcommand\qauthorfont{\scshape}|. +% The default ist |\upshape|. % \section{Examples} -% +% % Let's take a look at an example:\medskip -% +% % \begin{multicols}{2} % \begin{verbatim} %\begin{savequote}[45mm] @@ -279,7 +288,7 @@ % % If nobody said \textbf{nogrey}, we fetch the |color| package and % define our colour. If the color package is not included until now, -% we define |\color| to do nothing but gobble up its argument. +% we define |\color| to do nothing but gobble up its argument. % An error is issued when \textbf{grey} is turned on and the color % package is nonexistent. When you read the documentation because of % this: \texttt{color.sty} is included in the graphics bundle to be @@ -322,6 +331,8 @@ \providecommand*{\chapterheadstartvskip}{\vspace*{2.3\baselineskip}} \providecommand*{\chapterheadendvskip}{\vspace{1.7\baselineskip}} \providecommand*{\sectfont}{\relax} + \providecommand*{\quotefont}{\slshape} + \providecommand*{\qauthorfont}{\upshape} \@ifundefined{@mainmattertrue}{\newif\if@mainmatter\@mainmattertrue}{}} % \end{macrocode} % @@ -345,7 +356,7 @@ % \begin{macrocode} \newenvironment{savequote}[1][10cm]{% \begin{lrbox}{\@quotebox} - \begin{minipage}[t]{#1}\footnotesize\slshape + \begin{minipage}[t]{#1}\footnotesize\quotefont \ignorespaces}{% \unskip\end{minipage}\end{lrbox} \global\setbox\@quotebox\copy\@quotebox @@ -362,7 +373,7 @@ % \begin{macrocode} \newcommand{\qauthor}[1]{% \par\smallskip - {\raggedleft\upshape #1\qquad\hbox{}\par}\bigskip} + {\raggedleft\qauthorfont #1\qquad\hbox{}\par}\bigskip} % \end{macrocode} % \end{macro} % @@ -376,10 +387,10 @@ % \end{macro} % % \subsection{Making up the chapter heading} -% +% % Here are the modification to the chapter command definitions of % the \textsf{KOMA-Script} document classes. This package was -% originally designed to +% originally designed to % co-operate only with them; therefore we have to provide some % measurement defined only there. We insert the citations (if available) % by calling the insert box or do nothing wrapper. -- cgit v1.2.3