File tree Expand file tree Collapse file tree 2 files changed +27
-8
lines changed Expand file tree Collapse file tree 2 files changed +27
-8
lines changed Original file line number Diff line number Diff line change 21
21
\checkandfixthelayout
22
22
23
23
% %--------------------------------------------------
24
- % % Paragraph numbering
24
+ % % Paragraph and bullet numbering
25
+
25
26
\newcounter {Paras}
26
27
\counterwithin {Paras}{chapter}
27
28
\counterwithin {Paras}{section}
28
29
\counterwithin {Paras}{subsection}
29
30
\counterwithin {Paras}{subsubsection}
30
31
\counterwithin {Paras}{paragraph}
31
32
\counterwithin {Paras}{subparagraph}
33
+
34
+ \newcounter {Bullets1}[Paras]
35
+ \newcounter {Bullets2}[Bullets1]
36
+ \newcounter {Bullets3}[Bullets2]
37
+ \newcounter {Bullets4}[Bullets3]
38
+
32
39
\makeatletter
33
- \def\pnum {\addtocounter {Paras}{1}\noindent\llap {{%
34
- \scriptsize\raisebox {.7ex}{\arabic {Paras}}}\hspace {\@totalleftmargin }\quad }}
40
+ \newcommand {\parabullnum }[2]{%
41
+ \stepcounter {#1}%
42
+ \noindent\makebox [0pt][l]{\makebox [#2][r]{%
43
+ \scriptsize\raisebox {.7ex}%
44
+ {\arabic {Paras}%
45
+ \ifnum \value {Bullets1}>0 .\arabic {Bullets1}%
46
+ \ifnum \value {Bullets2}>0 .\arabic {Bullets2}%
47
+ \ifnum \value {Bullets3}>0 .\arabic {Bullets3}%
48
+ \fi\fi\fi }%
49
+ \hspace {\@totalleftmargin }\quad %
50
+ }}}
35
51
\makeatother
36
52
53
+ \def\pnum {\parabullnum {Paras}{0pt}}
54
+
37
55
% Leave more room for section numbers in TOC
38
56
\cftsetindents {section}{1.5em}{3.0em}
39
57
Original file line number Diff line number Diff line change 129
129
}
130
130
131
131
% %--------------------------------------------------
132
- % % change list item markers to em-dash
133
- \renewcommand {\labelitemi }{---}
134
- \renewcommand {\labelitemii }{---}
135
- \renewcommand {\labelitemiii }{---}
136
- \renewcommand {\labelitemiv }{---}
132
+ % % change list item markers to number and em-dash
133
+
134
+ \renewcommand {\labelitemi }{---\parabullnum {Bullets1}{\labelsep }}
135
+ \renewcommand {\labelitemii }{---\parabullnum {Bullets2}{\labelsep }}
136
+ \renewcommand {\labelitemiii }{---\parabullnum {Bullets3}{\labelsep }}
137
+ \renewcommand {\labelitemiv }{---\parabullnum {Bullets4}{\labelsep }}
137
138
138
139
% %--------------------------------------------------
139
140
% % set section numbering limit, toc limit
You can’t perform that action at this time.
0 commit comments