texlive[48198] Master/texmf-dist: catechis (14jul18)
commits+karl at tug.org
commits+karl at tug.org
Sat Jul 14 23:26:14 CEST 2018
Revision: 48198
http://tug.org/svn/texlive?view=revision&revision=48198
Author: karl
Date: 2018-07-14 23:26:14 +0200 (Sat, 14 Jul 2018)
Log Message:
-----------
catechis (14jul18)
Modified Paths:
--------------
trunk/Master/texmf-dist/doc/latex/catechis/CHANGES
trunk/Master/texmf-dist/doc/latex/catechis/README
trunk/Master/texmf-dist/doc/latex/catechis/catechis.pdf
trunk/Master/texmf-dist/source/latex/catechis/catechis.dtx
trunk/Master/texmf-dist/tex/latex/catechis/catechis.sty
Modified: trunk/Master/texmf-dist/doc/latex/catechis/CHANGES
===================================================================
--- trunk/Master/texmf-dist/doc/latex/catechis/CHANGES 2018-07-14 21:25:53 UTC (rev 48197)
+++ trunk/Master/texmf-dist/doc/latex/catechis/CHANGES 2018-07-14 21:26:14 UTC (rev 48198)
@@ -1,3 +1,9 @@
+11 Jul 1202 (13 Jul 2018): Added the catcitations
+environment, which inserts appropriate spacing before and
+after a citations section. Also added \catcitationsbefskip
+and \catcitationsaftskip, to allow controlling how much
+space will be skipped. Version 2.1.
+
11 Jan 1202 (13 Jan 2018): Complete rewrite of the package;
much simpler and cleaner. Added \catexplic command.
\citetitle was replaced by \catcitetitle, to avoid
Modified: trunk/Master/texmf-dist/doc/latex/catechis/README
===================================================================
--- trunk/Master/texmf-dist/doc/latex/catechis/README 2018-07-14 21:25:53 UTC (rev 48197)
+++ trunk/Master/texmf-dist/doc/latex/catechis/README 2018-07-14 21:26:14 UTC (rev 48198)
@@ -1,15 +1,12 @@
+AMDG
-This readme is for catechis v2.0, uploaded on 11 Jan 1202
-(13 Jan 2018).
-
-This document is copyright 11E4 (2008) by Donald P. Goodman,
+This document is copyright 1202 (2018) by Donald P. Goodman,
and is released publicly under the LaTeX Project Public
License. The distribution and modification of this work is
constrained by the conditions of that license. See
http://www.latex-project.org/lppl.txt
for the text of the license. This document is released
-under version 1.3 of that license, and this work may be distributed
+under version 1.3c of that license, and this work may be distributed
or modified under the terms of that license or, at your option, any
later version.
Modified: trunk/Master/texmf-dist/doc/latex/catechis/catechis.pdf
===================================================================
(Binary files differ)
Modified: trunk/Master/texmf-dist/source/latex/catechis/catechis.dtx
===================================================================
--- trunk/Master/texmf-dist/source/latex/catechis/catechis.dtx 2018-07-14 21:25:53 UTC (rev 48197)
+++ trunk/Master/texmf-dist/source/latex/catechis/catechis.dtx 2018-07-14 21:26:14 UTC (rev 48198)
@@ -25,7 +25,7 @@
% \iffalse
%<package>\NeedsTeXFormat{LaTeX2e}[1999/12/01]
-%<package>\ProvidesPackage{catechis}[2018/01/13 v2.0 Support for writing catechism questions and answers]
+%<package>\ProvidesPackage{catechis}[2018/07/13 v2.1 Support for writing catechism questions and answers]
%<*driver>
\documentclass{ltxdoc}
@@ -57,7 +57,7 @@
\end{document}
%</driver> \fi
%
-% \title{The |catechis| Package, v2.0} \author{Donald P.\
+% \title{The |catechis| Package, v2.1} \author{Donald P.\
% Goodman III} \date{\today}
%
% \maketitle
@@ -301,6 +301,31 @@
% canst not be false to any man.}{Polonius}
% \exline
%
+% Because this will often not result in proper spacing,
+% |catechis| provides an environment,
+% \DescribeMacro{catcitations}|catcitations|, which
+% will insert appropriate spacing before and after the
+% citations. This environment will automatically run
+% |\catcitetitle| for you.
+%
+% \begin{verbatim}
+% \begin{catcitations}
+% \catcite{For the apparel oft proclaims the man.}{Polonius}
+% \catcite{And this above all: to thine own self be true; /
+% and it must follow, as the night the day, / that thou
+% canst not be false to any man.}{Polonius}
+% \end{catcitations}
+% \end{verbatim}
+%
+% \exline
+% \begin{catcitations}
+% \catcite{For the apparel oft proclaims the man.}{Polonius}
+% \catcite{And this above all: to thine own self be true; /
+% and it must follow, as the night the day, / that thou
+% canst not be false to any man.}{Polonius}
+% \end{catcitations}
+% \exline
+%
% Lastly, |catechis| gives some provisions for more
% customary catechetical enumerates. It uses standard
% features from the |paralist| package for this, and simply
@@ -359,7 +384,7 @@
% is defined as |\renewcommand{\thecatquesnum}{\arabic{catquesnum}.}|.
% \vitem|\catquesnumwd| \DescribeMacro{\catquesnumwd} The
% width of the box in which |catechis| typesets the question
-% numbe. By default, |2em|.
+% number. By default, |2em|.
% \vitem|\catquesindent| \DescribeMacro{\catquesindent}
% The indentation of the first line of the question in
% |\catques|. By default, |0em|.
@@ -403,6 +428,12 @@
% \vitem|\catcitetitlesty| \DescribeMacro{\catcitetitlesty}
% The style in which |\catcitetitle| will print its
% contents. By default, |\Large\scshape|.
+% \vitem|\catcitationbefskip| \DescribeMacro{\catcitationbefskip}
+% The distance to skip prior to beginning a |catcitations|
+% environment, before running |\catcitetitle|.
+% \vitem|\catcitationaftskip| \DescribeMacro{\catcitationaftskip}
+% The distance to skip after ending a |catcitations|
+% environment.
% \vitem|\catciteindent| \DescribeMacro{\catciteindent} The
% indentation of the first line of the citation itself
% (that is, the quotation) in a |\catcite|. By default,
@@ -508,7 +539,7 @@
}%
% \end{macrocode}
% Define the commands to produce citation titles, and set
-% sensible defaults.
+% sensible defaults; also for the citation environment.
% \begin{macrocode}
\def\catcitetitlesty{\Large\scshape}%
\def\catcitetitleword{Citations}%
@@ -517,6 +548,17 @@
\catcitetitlesty\catcitetitleword%
\end{center}%
}%
+\newlength\catcitationbefskip\catcitationbefskip=1em%
+\newlength\catcitationaftskip\catcitationaftskip=1em%
+\def\catcitations{%
+ \leavevmode%
+ \vskip\catcitationbefskip%
+ \catcitetitle%
+}%
+\def\endcatcitations{%
+ \leavevmode%
+ \vskip\catcitationaftskip%
+}%
% \end{macrocode}
% Define actual citations macros and lengths.
% \begin{macrocode}
Modified: trunk/Master/texmf-dist/tex/latex/catechis/catechis.sty
===================================================================
--- trunk/Master/texmf-dist/tex/latex/catechis/catechis.sty 2018-07-14 21:25:53 UTC (rev 48197)
+++ trunk/Master/texmf-dist/tex/latex/catechis/catechis.sty 2018-07-14 21:26:14 UTC (rev 48198)
@@ -26,7 +26,7 @@
%% derived files catechis.sty and catechis.pdf.
\NeedsTeXFormat{LaTeX2e}[1999/12/01]
-\ProvidesPackage{catechis}[2018/01/13 v2.0 Support for writing catechism questions and answers]
+\ProvidesPackage{catechis}[2018/07/13 v2.1 Support for writing catechism questions and answers]
\RequirePackage{paralist}
\setdefaultenum{(a)}{(1)}{(i)}{(A)}
\setdefaultleftmargin{3.8em}{}{}{}{}{}
@@ -78,6 +78,17 @@
\catcitetitlesty\catcitetitleword%
\end{center}%
}%
+\newlength\catcitationbefskip\catcitationbefskip=1em%
+\newlength\catcitationaftskip\catcitationaftskip=1em%
+\def\catcitations{%
+\leavevmode%
+\vskip\catcitationbefskip%
+\catcitetitle%
+}%
+\def\endcatcitations{%
+\leavevmode%
+\vskip\catcitationaftskip%
+}%
\def\catcitesty{\itshape}%
\def\catsrcsty{}%
\newlength{\catciteindent}\setlength{\catciteindent}{0em}%
More information about the tex-live-commits
mailing list