Debian Codegraph @

texmf-dist/tex/psizzl/base/lists.Psizzl

raw
1 % LISTS PSIZZL - macros for lists, numbered and unnumbered
2 %
3 \gdef\d@m{.08}%
4 \gdef\sd@m{.13}%
5 \gdef\ssd@m{.195}%
6 %
7 % UNNUMBERED LISTS
8 %
9 % This is similar to the Itemized List Macro except it doesn't
10 % number the items. Instead it allows you to pick a symbol to
11 % highlight the line.
12 %
13 % \itembegin{<symbol>}text You pick the symbol to be used.
14 % It then applies to all following items.
15 %
16 % \item text Each additional item in the series.
17 %
18 % \itemcon text Used to continue an xitem when you have
19 % more than one paragraph in the item:
20 % you get a blank instead of a symbol.
21 %
22 % \sitembegin{<symbol>} Use these as above. The sub-item list
23 % \sitem is indented a bit farther.
24 % \sitemcon
25 %
26 % \ssitembegin{<symbol>} Sub-sub-item list macros
27 % \ssitem
28 % \ssitemcon
29 %
30 % A blank line or a \par will end the item and give you a new paragraph.
31 % If you don't want a new paragraph at the end of the xitem,
32 % type `\par\noindent' to end the item
33 %
34 \def\itemset#1{%
35 \gdef\items@m{#1}%
36 }\itemset{\bull}%
37 \def\itembegin#1{%
38 \itemset{#1}\item
39 }%
40 \def\it@m{%
41 \hangpar\d@m
42 }%
43 \def\item{%
44 \it@m{\items@m\quad}%
45 }%
46 \def\itemcon{%
47 \it@m{}%
48 }%
49 %
50 \def\sitemset#1{%
51 \gdef\sitems@m{#1}%
52 }\sitemset{\astr}%
53 \def\sitembegin#1{%
54 \sitemset{#1}\sitem
55 }%
56 \def\sit@m{%
57 \hangpar\sd@m
58 }%
59 \def\sitem{%
60 \sit@m{\sitems@m\quad}%
61 }%
62 \def\sitemcon{%
63 \sit@m{}%
64 }%
65 %
66 \def\ssitemset#1{%
67 \gdef\ssitems@m{#1}%
68 }\ssitemset{\crcl}%
69 \def\ssitembegin#1{%
70 \ssitemset{#1}\ssitem
71 }%
72 \def\ssit@m{%
73 \hangpar\ssd@m
74 }%
75 \def\ssitem{%
76 \ssit@m{\ssitems@m\quad}%
77 }%
78 \def\ssitemcon{%
79 \ssit@m{}%
80 }%
81 %
82 %
83 % ITEMIZED LIST MACRO
84 %
85 % These commands are used to make xitemized lists, to write
86 % outlines or make points within a body of text.
87 %
88 % \pointbegin text To start a list. The list will be
89 % or numbered in Arabic numerals and
90 % \pointbegin indented. You can begin the text
91 % text after the \pointbegin command -
92 % separated by a space - or you can
93 % begin on the following line.
94 %
95 % \point text Subsequent items in the list.
96 %
97 % \pointcon text If you want a point to contain more
98 % than one paragraph, but you don't want
99 % to generate a new number, use
100 % \pointcon text. This will also work
101 % with \spointcon and \sspointcon.
102 %
103 % \spointbegin text To begin a sub-point list; indented,
104 % lowercase Roman letter, in ( ).
105 %
106 % \spoint text To continue a sub-point list.
107 %
108 % \sspointbegin text To start a sub-sub-point list;
109 % indented, lowercase Roman numerials,
110 % in ( ).
111 %
112 % \sspoint text To continue a sub-sub-point list.
113 %
114 % A blank line or a \par will end the item and give you a new paragraph.
115 % If you don't want a new paragraph at the end of the item,
116 % type `\par\noindent' to end the item
117 %
118 \newcount\p@ntcount
119 \def\p@ntinit{%
120 \p@ntcount\@ne
121 }%
122 \def\p@ntreset{%
123 \sp@ntinit\sp@ntreset
124 }%
125 \def\pointbegin{%
126 \p@ntinit\point
127 }%
128 \def\point{%
129 \p@ntreset\it@m{\p@nttext\p@ntcount.\quad}%
130 \bumpcount\p@ntcount
131 }%
132 \def\pointcon{%
133 \it@m{}%
134 }%
135 \let\p@nttext\numorroman
136 %
137 \newcount\sp@ntcount
138 \def\sp@ntinit{%
139 \sp@ntcount`a
140 }%
141 \def\sp@ntreset{%
142 \ssp@ntinit\ssp@ntreset
143 }%
144 \def\spointbegin{%
145 \sp@ntinit\spoint
146 }%
147 \def\spoint{%
148 \sp@ntreset\sit@m{\sp@nttext\sp@ntcount.\quad}%
149 \bumpcount\sp@ntcount
150 }%
151 \def\spointcon{%
152 \sit@m{}%
153 }%
154 \let\sp@nttext\char%
155 %
156 \newcount\ssp@ntcount
157 \def\ssp@ntinit{%
158 \ssp@ntcount\@ne
159 }%
160 \def\ssp@ntreset{}%
161 \def\sspointbegin{%
162 \ssp@ntinit\sspoint
163 }%
164 \def\sspoint{%
165 \ssp@ntreset\ssit@m{\number\ssp@ntcount.\quad}%
166 \bumpcount\ssp@ntcount
167 }%
168 \def\sspointcon{%
169 \ssit@m{}%
170 }%
171 \let\ssp@nttext\numorroman
172 %