summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/psizzl/base/lists.Psizzl
blob: c0eee0e3356d18560b0016f20bc0df95d8a3c2d3 (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
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
% LISTS PSIZZL - macros for lists, numbered and unnumbered
%
\gdef\d@m{.08}%
\gdef\sd@m{.13}%
\gdef\ssd@m{.195}%
%
% UNNUMBERED LISTS
%
% This is similar to the Itemized List Macro except it doesn't
% number the items.  Instead it allows you to pick a symbol to
% highlight the line.
%
% \itembegin{<symbol>}text   You pick the symbol to be used.
%                            It then applies to all following items.
%
% \item text                 Each additional item in the series.
%
% \itemcon text              Used to continue an xitem when you have
%                            more than one paragraph in the item:
%                            you get a blank instead of a symbol.
%
% \sitembegin{<symbol>}      Use these as above. The sub-item list
% \sitem                     is indented a bit farther.
% \sitemcon
%
% \ssitembegin{<symbol>}     Sub-sub-item list macros
% \ssitem
% \ssitemcon
%
% A blank line or a \par will end the item and give you a new paragraph.
% If you don't want a new paragraph at the end of the xitem,
% type `\par\noindent' to end the item
%
\def\itemset#1{%
   \gdef\items@m{#1}%
   }\itemset{\bull}%
\def\itembegin#1{%
   \itemset{#1}\item
   }%
\def\it@m{%
   \hangpar\d@m
   }%
\def\item{%
   \it@m{\items@m\quad}%
   }%
\def\itemcon{%
   \it@m{}%
   }%
%
\def\sitemset#1{%
   \gdef\sitems@m{#1}%
   }\sitemset{\astr}%
\def\sitembegin#1{%
   \sitemset{#1}\sitem
   }%
\def\sit@m{%
   \hangpar\sd@m
   }%
\def\sitem{%
   \sit@m{\sitems@m\quad}%
   }%
\def\sitemcon{%
   \sit@m{}%
   }%
%
\def\ssitemset#1{%
   \gdef\ssitems@m{#1}%
   }\ssitemset{\crcl}%
\def\ssitembegin#1{%
   \ssitemset{#1}\ssitem
   }%
\def\ssit@m{%
   \hangpar\ssd@m
   }%
\def\ssitem{%
   \ssit@m{\ssitems@m\quad}%
   }%
\def\ssitemcon{%
   \ssit@m{}%
   }%
%
%
% ITEMIZED LIST MACRO
%
% These commands are used to make xitemized lists, to write
% outlines or make points within a body of text.
%
% \pointbegin text           To start a list.  The list will be
%      or                    numbered in Arabic numerals and
% \pointbegin                indented. You can begin the text
% text                       after the \pointbegin command -
%                            separated by a space - or you can
%                            begin on the following line.
%
% \point text                Subsequent items in the list.
%
% \pointcon text             If you want a point to contain more
%                            than one paragraph, but you don't want
%                            to generate a new number, use
%                            \pointcon text.  This will also work
%                            with \spointcon and \sspointcon.
%
% \spointbegin text          To begin a sub-point list; indented,
%                            lowercase Roman letter, in ( ).
%
% \spoint text               To continue a sub-point list.
%
% \sspointbegin text         To start a sub-sub-point list;
%                           indented, lowercase Roman numerials,
%                            in ( ).
%
% \sspoint text              To continue a sub-sub-point list.
%
% A blank line or a \par will end the item and give you a new paragraph.
% If you don't want a new paragraph at the end of the item,
% type `\par\noindent' to end the item
%
\newcount\p@ntcount
\def\p@ntinit{%
   \p@ntcount\@ne
   }%
\def\p@ntreset{%
   \sp@ntinit\sp@ntreset
   }%
\def\pointbegin{%
   \p@ntinit\point
   }%
\def\point{%
   \p@ntreset\it@m{\p@nttext\p@ntcount.\quad}%
   \bumpcount\p@ntcount
   }%
\def\pointcon{%
   \it@m{}%
   }%
\let\p@nttext\numorroman
%
\newcount\sp@ntcount
\def\sp@ntinit{%
   \sp@ntcount`a
   }%
\def\sp@ntreset{%
   \ssp@ntinit\ssp@ntreset
   }%
\def\spointbegin{%
   \sp@ntinit\spoint
   }%
\def\spoint{%
   \sp@ntreset\sit@m{\sp@nttext\sp@ntcount.\quad}%
   \bumpcount\sp@ntcount
   }%
\def\spointcon{%
   \sit@m{}%
   }%
\let\sp@nttext\char%
%
\newcount\ssp@ntcount
\def\ssp@ntinit{%
   \ssp@ntcount\@ne
   }%
\def\ssp@ntreset{}%
\def\sspointbegin{%
   \ssp@ntinit\sspoint
   }%
\def\sspoint{%
   \ssp@ntreset\ssit@m{\number\ssp@ntcount.\quad}%
   \bumpcount\ssp@ntcount
   }%
\def\sspointcon{%
   \ssit@m{}%
   }%
\let\ssp@nttext\numorroman
%