Debian Codegraph @

texmf-dist/doc/latex/simplesystemtex/sources/preset.code.tex

raw
1 %<*package>
2
3 \NewBlockType {Definition}
4 \NewBlockType {Theorem}
5 \NewBlockType {Corollary}
6 \NewBlockType* {Proof}
7
8 \ExplSyntaxOff
9
10 \SetStyle {TOCTitle} {%
11 \bfseries\LARGE
12 \begin{center}\textbf{Content}\end{center}%
13 \bigskip
14 }
15 \SetStyle {TOCPartTitle} {%
16 \bfseries\Large
17 \par\bigskip\noindent
18 @part%
19 \par\medskip
20 }
21 \SetStyle {TOCSection} {%
22 \bfseries
23 \par\noindent
24 #ifempty @group {%
25 \seclink {@sectionpath} (%
26 \color{black}%
27 \!@sectionname%
28 \cftdotfill{\cftnodots}%
29 \textbf{@sectionpage}%
30 )%
31 } {%
32 #ifempty @subgroup {%
33 \seclink {@sectionpath} (%
34 \color{black}%
35 \!{\footnotesize @group}%
36 \:|\:@sectionname%
37 \cftdotfill{\cftnodots}%
38 \textbf{@sectionpage}%
39 )%
40 } {%
41 \seclink{@sectionpath} (%
42 \color{black}%
43 \!{\footnotesize @group}%
44 \;@subgroup%
45 \:|\:@sectionname%
46 \cftdotfill{\cftnodots}%
47 \textbf{@sectionpage}%
48 )%
49 }%
50 }%
51 \par
52 }
53 \SetStyle {IndexGroup} {%
54 \bfseries\Large
55 \par\medskip\noindent
56 \indlink {@indexgroup/} (%
57 \color{black}%
58 \!@indexgroup%
59 )%
60 \par\medskip
61 }
62 \SetStyle {IndexSubgroup} {%
63 \bfseries
64 \par\medskip\noindent
65 \indlink {@indexgroup/@indexsubgroup/} (%
66 \color{black}%
67 \!{\small @indexgroup}%
68 \ {\large @indexsubgroup}%
69 )%
70 \par\smallskip
71 }
72 \SetStyle {IndexSubsubgroup} {%
73 \bfseries\normalsize
74 \par\smallskip\noindent
75 \indlink {@indexgroup/@indexsubgroup/@indexsubsubgroup/} (%
76 \color{black}%
77 \!@indexsubsubgroup%
78 )%
79 \par
80 }
81 \SetStyle {IndexBlock} {%
82 \bfseries
83 \par\noindent
84 \blclink{@indexblock} (%
85 \color{black}%
86 @indexblockname\quad @indexblockparameter%
87 \cftdotfill{\cftnodots}%
88 \textbf{@indexsectionpage}%
89 )%
90 \par
91 }
92 \SetStyle {SectionHeading} {%
93 \bfseries
94 \par\noindent
95 #ifempty @group {%
96 {\huge @sectionname}%
97 } {%
98 #ifempty @subgroup {%
99 {\Large @group}%
100 {\huge\;|\;@sectionname}%
101 } {%
102 {\Large @group}%
103 \;\;{\huge @subgroup\;|\;@sectionname}%
104 }%
105 }%
106 \par\bigskip
107 }
108 \SetStyle {SectionLink} {%
109 \color{blue}%
110 #ifempty @linktext {%
111 #ifempty @targetgroup {%
112 \,@targetsectionname\,%
113 } {%
114 #ifempty @targetsubgroup {%
115 \,{\footnotesize @targetgroup}%
116 \:|\:@targetsectionname\,%
117 } {%
118 \,{\footnotesize @targetgroup}%
119 \;@targetsubgroup%
120 \:|\:@targetsectionname\,%
121 }%
122 }%
123 } {%
124 \,@linktext\,%
125 }%
126 }
127 \SetStyle {BlockLink} {%
128 \color{blue}%
129 #ifempty @linktext {%
130 \,@targetblockname\,%
131 } {%
132 \,@linktext\,%
133 }%
134 }
135 \SetStyle {IndexLink} {%
136 \color{blue}%
137 #ifempty @linktext {%
138 #ifempty @targetsubgroup {%
139 \,@targetgroup\,%
140 } {%
141 \,{\footnotesize @targetgroup}%
142 \;@targetsubgroup\,%
143 }%
144 } {%
145 \,@linktext\,%
146 }%
147 }
148
149 \SetStyle {Definition} {%
150 \color{purple}%
151 \par\noindent{\bfseries @blockname}%
152 \quad{\itshape @blockcontent}%
153 \par
154 }
155 \SetStyle {Theorem} {%
156 \color{teal}%
157 \par\noindent{\bfseries @blockname}%
158 \quad{\itshape @blockcontent}%
159 \par
160 }
161 \SetStyle {Corollary} {%
162 \color{brown}%
163 \par\noindent{\bfseries @blockname}%
164 \quad{\itshape @blockcontent}%
165 \par
166 }
167 \SetStyle {Proof} {%
168 \color{gray}\itshape
169 \par\noindent
170 @blockname {\scriptsize (@blockparameter)}%
171 \par @blockcontent%
172 \par
173 }
174
175 \ExplSyntaxOn
176
177 %</package>