summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/catechis/catechis.sty
blob: 8d818df11ea6b0b2a5010837ed3a2b25421b01ab (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
%%
%% This is file `catechis.sty',
%% generated with the docstrip utility.
%%
%% The original source files were:
%%
%% catechis.dtx  (with options: `package')
%% This is a generated file.
%% 
%% This document is copyright 2014 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
%% or modified under the terms of that license or, at your option, any
%% later version.
%% 
%% This work has the LPPL maintenance status 'maintained'.
%% 
%% The Current Maintainer of this work is Donald P. Goodman
%% (dgoodmaniii@gmail.com).
%% 
%% This work consists of catechis.dtx, catechis.ins, and
%% derived files catechis.sty and catechis.pdf.

\NeedsTeXFormat{LaTeX2e}[1999/12/01]
\ProvidesPackage{catechis}[2018/07/13 v2.1 Support for writing catechism questions and answers]
\RequirePackage{paralist}
\setdefaultenum{(a)}{(1)}{(i)}{(A)}
\setdefaultleftmargin{3.8em}{}{}{}{}{}
\newlength{\catquesindent}\setlength{\catquesindent}{0em}
\newlength{\catqueshindent}\setlength{\catqueshindent}{2em}
\newlength{\catansindent}\setlength{\catansindent}{2em}
\newlength{\catanshindent}\setlength{\catanshindent}{2em}
\newlength{\catquesnumwd}\setlength{\catquesnumwd}{2em}
\newcounter{catquesnum}\setcounter{catquesnum}{0}
\def\catquesnumsty{\bfseries}
\def\catquessty{\bfseries}
\def\catanssty{}
\renewcommand{\thecatquesnum}{\arabic{catquesnum}.}
\def\catques#1#2{%
\stepcounter{catquesnum}%
{\parindent=\catquesindent\hangindent=\catqueshindent\hangafter=1%
{\par\leavevmode\hbox to\catquesnumwd{\catquesnumsty\thecatquesnum}%
\catquessty #1}\par}%
{\parindent=\catansindent\hangindent=\catanshindent\hangafter=1%
{\par\catanssty #2}\par}%
}%
\def\catcommentsty{\itshape}
\newlength{\commindent}\setlength{\commindent}{2em}
\newlength{\commhindent}\setlength{\commhindent}{2em}
\def\catcomment#1{%
{\parindent=\commindent\hangindent=\commhindent\hangafter=1%
{\par\catcommentsty #1}\par}
}%
\def\catexplicsty{\small}
\newlength{\explicindent}\setlength{\explicindent}{4em}
\newlength{\explichindent}\setlength{\explichindent}{2em}
\long\def\catexplic#1{%
{\par\everypar={\parindent=\explicindent\hangindent=\explichindent\hangafter=1}%
{\par\catexplicsty\  #1}\par}%
}%
\def\restoreindents{%
\par%
\everypar={%
\parindent=\explicindent%
\hangindent=\explichindent%
\hangafter=1%
}%
\par%
}%
\def\catcitetitlesty{\Large\scshape}%
\def\catcitetitleword{Citations}%
\def\catcitetitle{%
\begin{center}%
\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}%
\newlength{\catcitehindent}\setlength{\catcitehindent}{0em}%
\newlength{\catsrcindent}\setlength{\catsrcindent}{2em}%
\newlength{\catsrchindent}\setlength{\catsrchindent}{2em}%
\def\catcite#1#2{%
{\parindent=\catciteindent\hangindent=\catcitehindent\hangafter=1%
{\par\catcitesty #1}\par}%
{\parindent=\catsrcindent\hangindent=\catsrchindent\hangafter=1%
{\par\catsrcsty#2}\par}%
}%
\let\scripture=\catcite
\endinput
%%
%% End of file `catechis.sty'.