summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/source/latex/quotchap
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2019-07-09 21:10:40 +0000
committerKarl Berry <karl@freefriends.org>2019-07-09 21:10:40 +0000
commit06a479cd423ae5eaa2b52e316cdf4ed6b29e5b56 (patch)
tree5ce66f8f3e0bc0e69dab025d3fc86b6d2aa10293 /Master/texmf-dist/source/latex/quotchap
parent4f76b8e7fd6c1fa04a268a17da4b72992062dc21 (diff)
quotchap (9jul19)
git-svn-id: svn://tug.org/texlive/trunk@51591 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/source/latex/quotchap')
-rw-r--r--Master/texmf-dist/source/latex/quotchap/quotchap.dtx39
1 files changed, 25 insertions, 14 deletions
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 @@
%<driver>\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 @@
%</driver>
% \fi
%
-% \CheckSum{203}
+% \CheckSum{209}
%
% \DoNotIndex{\@M,\@afterindentfalse,%
% \@topnum,\advance,\AtEndOfPackage,\baselineskip,\begin,\bigskip,%
@@ -142,10 +142,19 @@
% |\qsetcnfont{<family>}|. 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.