Debian Codegraph @

texmf-dist/tex/lualatex/tango/tango.cls

raw
1 \NeedsTeXFormat{LaTeX2e}%
2 \ProvidesClass{tango}%
3 [2024/07/15 v0.8.0 tango document class. Michel Bovani]% %
4 %
5 % Ensure luatex engine
6 \RequirePackage{iftex}[2019/10/24]
7 \RequireLuaTeX
8 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
9 \newcommand\TgoTempa{}
10 \newcommand\TgoTempb{}
11 \newcommand\TgoTempc{}
12 \newcommand\TgoSmallerSize{}
13 \newcommand\TgoStatementNumberSuffix{}
14 \newcommand\TgoStatementNumberPrefix{}
15 \newcommand\TgoStatementSuffix{}
16 \newcommand\TgoStatementName{}
17 \newcommand\TgoTheoremName{Theorem}
18 \newcommand\TgoDefinitionName{Definition}
19 \newcommand\TgoPropositionName{Proposition}
20 \newcommand\TgoLemmaName{Lemma}
21 \newcommand\TgoCorollaryName{Corollary}
22 \newcommand\TgoRemarkName{Remark}
23 \newcommand\TgoExampleName{Example}
24 \newcommand\TgoContentsName{Contents}
25 \newcommand\TgoExerciseName{Exercise}
26 \newcommand\TgoExercisesSubsectionName{Exercises}
27 \newcommand\TgoExercisesSectionName{Exercises}
28 \newcommand\TgoPublicationClass{article}
29 \newcommand\TgoStatementIndent{\indent}
30 \newif\ifTgoFrenchLanguage
31 \newif\ifTgoNGermanLanguage
32 \newif\ifTgoGermanLanguage
33 \newif\ifTgoNAustrianLanguage
34 \newif\ifTgoNSwissGermanLanguage
35 \newif\ifTgoItalianLanguage
36 \newif\ifTgoSpanishLanguage
37 \newif\ifTgoEnglishLanguage
38 \newif\ifTgoBritishLanguage
39 \newif\ifTgoAmericanLanguage
40 \newif\ifTgoCanadianLanguage
41 \newif\ifTgoAustralianLanguage
42 \newif\ifTgoNewZealandLanguage
43 \newif\ifTgoNoStatement
44 \newif\ifTgoBook
45 \newif\ifTgoOneSide\TgoOneSidetrue
46 \newif\ifTgoAfourPaperOutput\TgoAfourPaperOutputtrue
47 \newif\ifTgoLetterOutput
48 \newif\ifTgoBigTabletOutput
49 \newif\ifTgoAfivePaperOutput
50 \newif\ifTgoTabletOutput
51 \newif\ifTgoSmallTabletOutput
52 \newif\ifTgoeReaderOutput
53 \newif\ifTgoSmartphoneOutput
54 \newif\ifTgoSmallerSizeCommand
55 \newif\ifTgoTitleIndentZero\TgoTitleIndentZerotrue
56 \newcommand\TgoChapterTitleFont{RobotoCondensedBold}
57 \NewDocumentCommand\TgoStatementNameOffset{}{}
58 \NewDocumentCommand\SetTgoBaseFonts{}{%
59 \setmainfont{erewhon}%
60 \setmathfont{Erewhon Math}%
61 }%
62 \newlength\TgoAfterChapterSkip
63 \newlength\TgoStandardMargin
64 \newlength\TgoStatementParindent
65 \newlength\TgoTitleIndent
66 %%%
67 \AddToHook{package/xcolor/after}
68 {%
69 \definecolor{ColorOne}{rgb}{0.15,0.15,0.15}
70 \definecolor{ColorTwo}{rgb}{0.93,0.93,0.93}
71 }
72 \AddToHook{class/article/after}{%
73 \TgoTenPointsFonts}
74 \AddToHook{class/book/after}{%
75 \TgoTenPointsFonts}
76 %%
77 %
78 %%
79 \DeclareKeys[tango]{
80 %%%%%% languages,%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
81 french.code= {%
82 \TgoFrenchLanguagetrue
83 \TgoTitleIndentZerofalse
84 },
85 ngerman.code= {%
86 \TgoNGermanLanguagetrue
87 },
88 german.code= {%
89 \TgoGermanLanguagetrue
90 },
91 naustrian.code= {%
92 \TgoNAustrianLanguagetrue
93 },
94 nswissgerman.code= {%
95 \TgoNSwissGermanLanguagetrue
96 },
97 italian.code= {%
98 \TgoItalianLanguagetrue
99 },
100 spanish.code= {%
101 \TgoSpanishLanguagetrue
102 },
103 english.code= {%
104 \TgoEnglishLanguagetrue
105 },
106 british.code= {%
107 \TgoBritishLanguagetrue
108 },
109 american.code= {%
110 \TgoAmericanLanguagetrue
111 },
112 canadian.code= {%
113 \TgoCanadianLanguagetrue
114 },
115 australian.code= {%
116 \TgoAustralianLanguagetrue
117 },
118 newzealand.code= {%
119 \TgoNewZealandLanguagetrue
120 },
121 %%%%%% Default Statements %%%%%%%%%%%%%%%%%%%%%%%%
122 no-statement.if = TgoNoStatement,
123 %%%%%% No Hyperref %%%%%%%%%%%%%%%%%%%%%%%%%%%
124 no-hyperref.if = TgoNoHyperref,
125 %%%%%% Parindentzero %%%%%%%%%%%%%%%%%%%%%%%%%%%
126 no-indent.if = TgoParindentZero,
127 indent.ifnot = TgoParindentZero,
128 %%%%%% Parindentzero %%%%%%%%%%%%%%%%%%%%%%%%%%%
129 no-titleindent.if = TgoTitleIndentZero,
130 titleindent.ifnot = TgoTitleIndentZero,
131 %%%%%% ThmNamePos left/right %%%%%%%%%%%%%%%%%%%%%%%
132 ThmNamePos.choice:,
133 ThmNamePos / left.code:n =
134 {
135 \RenewDocumentCommand\TgoStatementNameOffset{}{}
136 },
137 ThmNamePos / right.code:n =
138 {
139 \RenewDocumentCommand\TgoStatementNameOffset{}{\hspace*{\fill}}
140 },
141 %%%% book or article %%%%%%%%%%%%%%%%%%%%%%%%%%%
142 PubliClass.choice:,
143 PubliClass / article.code:n =
144 {%
145 \renewcommand\TgoPublicationClass{article}
146 \TgoBookfalse
147 },
148 PubliClass / book.code:n =
149 {%
150 \renewcommand\TgoPublicationClass{book}
151 \TgoBooktrue
152 },
153 %%%% oneside or two sides %%%%%%%%%%%%%%%%%%%%%%%%
154 oneside.if = TgoOneSide ,
155 twoside.ifnot = TgoOneSide ,
156 %%%% Font Size %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
157 FontSize.choice:,
158 FontSize / 9pt.code:n =
159 {
160 \RemoveFromHook{class/article/after}
161 \AddToHook{class/article/after}{%
162 \TgoNinePointsFonts}
163 \RemoveFromHook{class/book/after}
164 \AddToHook{class/book/after}{%
165 \TgoNinePointsFonts}
166 },
167 FontSize / 10pt.code:n =
168 {
169 \RemoveFromHook{class/article/after}
170 \AddToHook{class/article/after}{%
171 \TgoTenPointsFonts}
172 \RemoveFromHook{class/book/after}
173 \AddToHook{class/book/after}{%
174 \TgoTenPointsFonts}
175 },
176 FontSize / 11pt.code:n =
177 {
178 \RemoveFromHook{class/article/after}
179 \AddToHook{class/article/after}{%
180 \TgoElevenPointsFonts}
181 \RemoveFromHook{class/book/after}
182 \AddToHook{class/book/after}{%
183 \TgoElevenPointsFonts}
184 },
185 FontSize / 12pt.code:n =
186 {
187 \RemoveFromHook{class/article/after}
188 \AddToHook{class/article/after}{%
189 \TgoTwelvePointsFonts}
190 \RemoveFromHook{class/book/after}
191 \AddToHook{class/book/after}{%
192 \TgoTwelvePointsFonts}
193 },
194 FontSize / unknown.code:n =
195 {
196 \ClassWarning{tango}{\MessageBreak Value #1 is unknown \MessageBreak
197 Possible choices are 9pt, 10pt, 11pt and 12pt.
198 \MessageBreak Selecting 10pt.}
199 },
200 %%%% ColorTheme %%%%%%%%%%%%%%%%%%%%%%%%%%%%
201 ColorTheme.choice:,
202 ColorTheme / Blue.code:n =
203 {%
204 \RemoveFromHook{package/xcolor/after}
205 \AddToHook{package/xcolor/after}%
206 { %
207 \definecolor{ColorOne}{rgb}{0.08, 0.05, 0.55}
208 \definecolor{ColorTwo}{rgb}{0.87, 0.94, 0.97}
209 }
210 },
211 ColorTheme / Navy.code:n =
212 {%
213 \RemoveFromHook{package/xcolor/after}
214 \AddToHook{package/xcolor/after}%
215 { %
216 \definecolor{ColorOne}{rgb}{0.07, 0.37, 0.65}
217 \definecolor{ColorTwo}{rgb}{0.87, 0.95, 0.97}
218 }
219 },
220 ColorTheme / USAF.code:n =
221 {%
222 \RemoveFromHook{package/xcolor/after}
223 \AddToHook{package/xcolor/after}%
224 { %
225 \definecolor{ColorOne}{rgb}{0.24, 0.41, 0.54}
226 \definecolor{ColorTwo}{rgb}{0.92, 0.94, 0.96}
227 }
228 },
229 ColorTheme / Azur.code:n =
230 {%
231 \RemoveFromHook{package/xcolor/after}
232 \AddToHook{package/xcolor/after}%
233 { %
234 \definecolor{ColorOne}{rgb}{0.15, 0.32, 0.75}
235 \definecolor{ColorTwo}{rgb}{0.88, 0.94, 0.97}
236 }
237 },
238 ColorTheme / Red.code:n =
239 {%
240 \RemoveFromHook{package/xcolor/after}
241 \AddToHook{package/xcolor/after}%
242 { %
243 \definecolor{ColorOne}{rgb}{0.75,0.05,0.1}
244 \definecolor{ColorTwo}{rgb}{1,0.94,0.9}
245 }
246 },
247 ColorTheme / Framboise.code:n =
248 {%
249 \RemoveFromHook{package/xcolor/after}
250 \AddToHook{package/xcolor/after}%
251 { %
252 \definecolor{ColorOne}{rgb}{0.64, 0.25, 0.45}
253 \definecolor{ColorTwo}{rgb}{1, 0.95, 0.94}
254 }
255 },
256 ColorTheme / Brique.code:n =
257 {%
258 \RemoveFromHook{package/xcolor/after}
259 \AddToHook{package/xcolor/after}%
260 { %
261 \definecolor{ColorOne}{rgb}{0.68, 0.1, 0.0}
262 \definecolor{ColorTwo}{rgb}{1, 0.95, 0.89}
263 }
264 },
265 ColorTheme / Sienne.code:n =
266 {%
267 \RemoveFromHook{package/xcolor/after}
268 \AddToHook{package/xcolor/after}%
269 { %
270 \definecolor{ColorOne}{rgb}{0.55, 0.27, 0.1}
271 \definecolor{ColorTwo}{rgb}{1, 0.95, 0.87}
272 }
273 },
274 ColorTheme / Caramel.code:n =
275 {%
276 \RemoveFromHook{package/xcolor/after}
277 \AddToHook{package/xcolor/after}%
278 { %
279 \definecolor{ColorOne}{rgb}{0.66, 0.26, 0.0}
280 \definecolor{ColorTwo}{rgb}{1, 0.96, 0.86}
281 }
282 },
283 ColorTheme / Olive.code:n =
284 {%
285 \RemoveFromHook{package/xcolor/after}
286 \AddToHook{package/xcolor/after}%
287 { %
288 \definecolor{ColorOne}{rgb}{0.28, 0.43, 0.03}
289 \definecolor{ColorTwo}{rgb}{0.95, 0.98, 0.9}
290 }
291 },
292 ColorTheme / Tannen.code:n =
293 {%
294 \RemoveFromHook{package/xcolor/after}
295 \AddToHook{package/xcolor/after}%
296 { %
297 \definecolor{ColorOne}{rgb}{0.09, 0.44, 0.28}
298 \definecolor{ColorTwo}{rgb}{0.92, 0.97, 0.94}
299 }
300 },
301 ColorTheme / GrayGray.code:n =
302 {%
303 \RemoveFromHook{package/xcolor/after}
304 \AddToHook{package/xcolor/after}%
305 { %
306 \definecolor{ColorOne}{rgb}{0.25,0.25,0.25}
307 \definecolor{ColorTwo}{rgb}{0.95,0.95,0.95}
308 }
309 },
310 ColorTheme / BlackAndWhite.code:n =
311 {%
312 \RemoveFromHook{package/xcolor/after}
313 \AddToHook{package/xcolor/after}%
314 { %
315 \definecolor{ColorOne}{rgb}{0,0,0}
316 \definecolor{ColorTwo}{rgb}{1,1,1}
317 }
318 },
319 ColorTheme / Ink.code:n =
320 {%
321 \RemoveFromHook{package/xcolor/after}
322 \AddToHook{package/xcolor/after}%
323 { %
324 \definecolor{ColorOne}{rgb}{0.25, 0.25, 0.33}
325 \definecolor{ColorTwo}{rgb}{0.94, 0.95, 0.97}
326 }
327 },
328 ColorTheme / Steel.code:n =
329 {%
330 \RemoveFromHook{package/xcolor/after}
331 \AddToHook{package/xcolor/after}%
332 { %
333 \definecolor{ColorOne}{rgb}{0.27, 0.25, 0.2}
334 \definecolor{ColorTwo}{rgb}{0.96, 0.96, 0.93}
335 }
336 },
337 ColorTheme / unknown.code:n =
338 {
339 \ClassWarning{tango}{\MessageBreak “ColorTheme” #1 is unknown!\MessageBreak
340 Possible choices are: \MessageBreak
341 Blue, Navy, USAF, Azur, Red, Framboise, Brique,
342 \MessageBreak Sienne, Caramel, Olive, Tannen, GrayGray, BlackAndWhite, Ink and Steel.
343 \MessageBreak Stay in GrayGray}
344 },
345 %%%% User defined colors %%%%%%%%%%%%%%%%%%%%%%%%
346 ColorOne.code = \AddToHook{package/xcolor/after}{\definecolor{ColorOne}#1},
347 ColorTwo.code = \AddToHook{package/xcolor/after}{\definecolor{ColorTwo}#1},
348 ColorOneNamed.code = \AddToHook{package/xcolor/after}{\colorlet{ColorOne}{#1}},
349 ColorTwoNamed.code = \AddToHook{package/xcolor/after}{\colorlet{ColorTwo}{#1}},
350 %%%% Output %%%%%%%%%%%%%%%%%%%%%%%%%%
351 Output.choice:,
352 Output / A4paper.code:n =
353 {
354 \TgoAfourPaperOutputtrue
355 },
356 Output / Letter.code:n =
357 {
358 \TgoLetterOutputtrue
359 \TgoBigTabletOutputtrue
360 \TgoAfourPaperOutputfalse
361 },
362 Output / BigTablet.code:n =
363 {
364 \TgoBigTabletOutputtrue
365 \TgoAfourPaperOutputfalse
366 },
367 Output / A5paper.code:n =
368 {
369 \TgoAfivePaperOutputtrue
370 \TgoTabletOutputtrue
371 \TgoAfourPaperOutputfalse
372 },
373 Output / Tablet.code:n =
374 {
375 \TgoTabletOutputtrue
376 \TgoAfourPaperOutputfalse
377 },
378 Output / SmallTablet.code:n =
379 {
380 \TgoSmallTabletOutputtrue
381 \TgoAfourPaperOutputfalse
382 },
383 Output / eReader.code:n =
384 {
385 \TgoeReaderOutputtrue
386 \TgoAfourPaperOutputfalse
387 },
388 Output / Smartphone.code:n =
389 {
390 \TgoSmartphoneOutputtrue
391 \TgoAfourPaperOutputfalse
392 },
393 Output / unknown.code:n =
394 {
395 \ClassWarning{tango}{\MessageBreak Value #1 is unknown \MessageBreak
396 Possible choices are A4paper, A5paper, Letter, BigTablet,\MessageBreak
397 Tablet, SmallTablet, eReader and Smartphone.
398 \MessageBreak Selecting A4paper.}
399 \TgoAfourPaperOutputtrue
400 },
401 %%%%% Stylistic Set %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
402 StylisticSet.multichoice:,
403 StylisticSet / upint.code:n =
404 {
405 \AddToHook{package/fontspec/after}%
406 {\defaultfontfeatures+[Erewhon Math]{RawFeature=+ss03}}
407 },
408 StylisticSet / leqslant.code:n =
409 {
410 \AddToHook{package/fontspec/after}%
411 {\defaultfontfeatures+[Erewhon Math]{RawFeature=+ss04}}
412 },
413 StylisticSet / smaller.code:n =
414 {
415 \AddToHook{package/fontspec/after}%
416 {\defaultfontfeatures+[Erewhon Math]{RawFeature=+ss05}}
417 },
418 StylisticSet / subsetneq.code:n =
419 {
420 \AddToHook{package/fontspec/after}%
421 {\defaultfontfeatures+[Erewhon Math]{RawFeature=+ss06}}
422 },
423 StylisticSet / parallelslant.code:n =
424 {
425 \AddToHook{package/fontspec/after}%
426 {\defaultfontfeatures+[Erewhon Math]{RawFeature=+ss07}}
427 },
428 %%%%%%% Character Variants %%%%%%%%%%%%%%%%%%%%%%%%%%
429 CharacterVariant.multichoice:,
430 CharacterVariant / zero.code:n =
431 {
432 \AddToHook{package/fontspec/after}%
433 { \defaultfontfeatures+[Erewhon Math]{CharacterVariant=0}}
434 },
435 CharacterVariant / hslash.code:n =
436 {
437 \AddToHook{package/fontspec/after}%
438 {\defaultfontfeatures+[Erewhon Math]{CharacterVariant=1}}
439 },
440 CharacterVariant / emptyset.code:n =
441 {
442 \AddToHook{package/fontspec/after}%
443 {\defaultfontfeatures+[Erewhon Math]{CharacterVariant=2}}
444 },
445 CharacterVariant / epsilon.code:n =
446 {
447 \AddToHook{package/fontspec/after}%
448 { \defaultfontfeatures+[Erewhon Math]{CharacterVariant=3}}
449 },
450 CharacterVariant / kappa.code:n =
451 {
452 \AddToHook{package/fontspec/after}%
453 { \defaultfontfeatures+[Erewhon Math]{CharacterVariant=4}}
454 },
455 CharacterVariant / pi.code:n =
456 {
457 \AddToHook{package/fontspec/after}%
458 { \defaultfontfeatures+[Erewhon Math]{CharacterVariant=5}}
459 },
460 CharacterVariant / phi.code:n =
461 {
462 \AddToHook{package/fontspec/after}%
463 { \defaultfontfeatures+[Erewhon Math]{CharacterVariant=6}}
464 },
465 CharacterVariant / rho.code:n =
466 {
467 \AddToHook{package/fontspec/after}%
468 { \defaultfontfeatures+[Erewhon Math]{CharacterVariant=7}}
469 },
470 CharacterVariant / sigma.code:n =
471 {
472 \AddToHook{package/fontspec/after}%
473 { \defaultfontfeatures+[Erewhon Math]{CharacterVariant=8}}
474 },
475 CharacterVariant / theta.code:n =
476 {
477 \AddToHook{package/fontspec/after}%
478 { \defaultfontfeatures+[Erewhon Math]{CharacterVariant=9}}
479 },
480 CharacterVariant / Theta.code:n =
481 {
482 \AddToHook{package/fontspec/after}%
483 {\defaultfontfeatures+[Erewhon Math]{CharacterVariant=10}}
484 },
485 CharacterVariant / partial.code:n =
486 {
487 \AddToHook{package/fontspec/after}%
488 {\defaultfontfeatures+[Erewhon Math]{CharacterVariant=11}}
489 },
490 CharacterVariant / Ecal.code:n =
491 {
492 \AddToHook{package/fontspec/after}%
493 { \defaultfontfeatures+[Erewhon Math]{CharacterVariant=20}}
494 },
495 CharacterVariant / Qcal.code:n =
496 {
497 \AddToHook{package/fontspec/after}%
498 { \defaultfontfeatures+[Erewhon Math]{CharacterVariant=21}}
499 },
500 CharacterVariant / Tcal.code:n =
501 {
502 \AddToHook{package/fontspec/after}%
503 { \defaultfontfeatures+[Erewhon Math]{CharacterVariant=22}}
504 },
505 %%%%%%% Numbers %%%%%%%%%%%%%%%%%%%%%%%%%%%%%
506 Numbers.choice:,
507 Numbers / MathOldStyle.code:n =
508 {
509 \AddToHook{package/fontspec/after}%
510 {\defaultfontfeatures+[Erewhon Math]{Numbers=OldStyle}}
511 },
512 Numbers / TextOldStyle.code:n =
513 {
514 \AddToHook{package/fontspec/after}%
515 { \defaultfontfeatures+[erewhon]{Numbers=OldStyle}}
516 },
517 Numbers / OldStyle.code:n =
518 {
519 \AddToHook{package/fontspec/after}%
520 { \defaultfontfeatures+{Numbers=OldStyle}
521 \defaultfontfeatures+[Erewhon Math]{RawFeature=-onum}}
522 },
523 Numbers / FullOldStyle.code:n =
524 {
525 \AddToHook{package/fontspec/after}%
526 { \defaultfontfeatures+{Numbers=OldStyle}}
527 },
528 %%%% usage
529 french.usage=load,
530 no-statement.usage=load,
531 no-hyperref.usage=load,
532 indent.usage=load,
533 no-indent.usage=load,
534 ThmNamePos.usage=general,
535 oneside.usage=load,
536 twoside.usage=load,
537 PubliClass.usage=load,
538 FontSize.usage=general,
539 ColorTheme.usage=general,
540 ColorOne.usage=general,
541 ColorTwo.usage=general,
542 Output.usage=load,
543 StylisticSet.usage=load,
544 CharacterVariant.usage=load,
545 Numbers.usage=load
546 }
547 %%%%%
548 \ProcessKeyOptions[tango]
549 %%%%%
550 \NewDocumentCommand\tgosetup{}{\SetKeys[tango]}
551 %%%%%%%%
552 %%%%%%% 10pt %%%%%%%%%%%%%
553 \NewDocumentCommand\TgoTenPointsFonts{}{%
554 \renewcommand\TgoSmallerSize{%
555 \TgoSmallerSizeCommandtrue%
556 \tgosetup{FontSize=9pt}%
557 \TgoSmallerSizeCommandfalse%
558 }%
559 \renewcommand\normalsize{%
560 \fontsize{10}{12.7}\selectfont%
561 \setlength\abovedisplayskip{6pt plus 3pt minus 2pt}%
562 \setlength\abovedisplayshortskip{0pt plus 3pt}%
563 \setlength\belowdisplayshortskip{4.5pt plus 2.5pt minus 1.5pt}%
564 \setlength\belowdisplayskip{\abovedisplayskip}%
565 \let\@listi\@listI%
566 }%
567 \normalsize%
568 \ifTgoSmallerSizeCommand%
569 \else%
570 \setlength\TgoStandardMargin{1.5em}%
571 \fi%
572 \ifx\MakeRobust\@undefined \else%
573 \MakeRobust\normalsize%
574 \fi%
575 \DeclareRobustCommand\small{%
576 \fontsize{9}{11.45}\selectfont%
577 \setlength\abovedisplayskip{6pt plus 3pt minus 2pt}%
578 \setlength\abovedisplayshortskip {0pt plus 3pt}%
579 \setlength\belowdisplayshortskip {4pt plus 2pt minus 2pt}%
580 \def\@listi{\leftmargin\leftmargini%
581 \topsep 6\p@ \@plus2\p@ \@minus2\p@%
582 \parsep 2\p@ \@plus2\p@ \@minus\p@%
583 \itemsep \parsep}%
584 \setlength \belowdisplayskip {\abovedisplayskip}%
585 \let\@listi\@listI%
586 }%
587 \DeclareRobustCommand\footnotesize{%
588 \fontsize{8}{10.2}\selectfont%
589 \setlength\abovedisplayskip{6pt plus 2pt minus 4pt}%
590 \setlength\abovedisplayshortskip{0pt plus 1 pt}%
591 \setlength\belowdisplayshortskip{3pt plus 2pt minus 1 pt}%
592 \def\@listi{\leftmargin\leftmargini%
593 \topsep 4\p@ \@plus2\p@ \@minus2\p@%
594 \parsep 2\p@ \@plus\p@ \@minus\p@%
595 \itemsep \parsep}%
596 \setlength \belowdisplayskip {\abovedisplayskip}%
597 }%
598 \DeclareRobustCommand\scriptsize{\fontsize{7}{8.9}\selectfont}%
599 \DeclareRobustCommand\tiny{\fontsize{5}{6.4}\selectfont}%
600 \DeclareRobustCommand\large{\fontsize{11.5}{14.6}\selectfont}%
601 \DeclareRobustCommand\Large{\fontsize{14}{17}\selectfont}%
602 \DeclareRobustCommand\LARGE{\fontsize{17}{20}\selectfont}%
603 \DeclareRobustCommand\huge{\fontsize{20}{23}\selectfont}%
604 \DeclareRobustCommand\Huge{\fontsize{24}{27}\selectfont}%
605 \DeclareRobustCommand\HUGE{\fontsize{58}{58}\selectfont}%
606 }%
607 %%%%%%%%%%%%%% 11pt %%%%%%%%%%%%%%%%%%%%%%
608 \NewDocumentCommand\TgoElevenPointsFonts{}{%
609 \renewcommand\TgoSmallerSize{%
610 \TgoSmallerSizeCommandtrue%
611 \tgosetup{FontSize=10pt}%
612 \TgoSmallerSizeCommandfalse%
613 }%
614 \renewcommand\normalsize{%
615 \fontsize{11}{13.9}\selectfont%
616 \setlength\abovedisplayskip {6pt plus 3pt minus 2pt}%
617 \setlength\abovedisplayshortskip{0pt plus 3pt}%
618 \setlength\belowdisplayshortskip {4.5pt plus 2.5pt minus 2 pt}%
619 \setlength\belowdisplayskip{\abovedisplayskip}%
620 \let\@listi\@listI}%
621 \normalsize%
622 \ifTgoSmallerSizeCommand%
623 \else%
624 \setlength\TgoStandardMargin{1.5em}%
625 \fi%
626 \ifx\MakeRobust\@undefined \else%
627 \MakeRobust\normalsize%
628 \fi%
629 \DeclareRobustCommand\small{%
630 \fontsize{10}{12.7}\selectfont%
631 \setlength\abovedisplayskip{6pt plus 3pt minus 2pt}%
632 \setlength\abovedisplayshortskip{0pt plus 3pt}%
633 \setlength\belowdisplayshortskip {4pt plus 2 pt minus 2pt}%
634 \def\@listi{\leftmargin\leftmargini%
635 \topsep 6\p@ \@plus2\p@ \@minus2\p@%
636 \parsep 2\p@ \@plus2\p@ \@minus\p@%
637 \itemsep \parsep}%
638 \setlength\belowdisplayskip{\abovedisplayskip}%
639 \let\@listi\@listI%
640 }%
641 \DeclareRobustCommand\footnotesize{%
642 \fontsize{9}{11.35}\selectfont%
643 \setlength\abovedisplayskip{6pt plus 2pt minus 4pt}%
644 \setlength\abovedisplayshortskip{0pt plus 1pt}%
645 \setlength\belowdisplayshortskip{3pt plus 2pt minus 1pt}%
646 \def\@listi{\leftmargin\leftmargini%
647 \topsep 4\p@ \@plus2\p@ \@minus2\p@%
648 \parsep 2\p@ \@plus\p@ \@minus\p@%
649 \itemsep \parsep}%
650 \setlength\belowdisplayskip{\abovedisplayskip}%
651 }%
652 \DeclareRobustCommand\scriptsize{\fontsize{8}{10.2}\selectfont}%
653 \DeclareRobustCommand\tiny{\fontsize{6}{7.6}\selectfont}%
654 \DeclareRobustCommand\large{\fontsize{13}{15.85}\selectfont}%
655 \DeclareRobustCommand\Large{\fontsize{15}{18}\selectfont}%
656 \DeclareRobustCommand\LARGE{\fontsize{18}{21}\selectfont}%
657 \DeclareRobustCommand\huge{\fontsize{21}{24}\selectfont}%
658 \DeclareRobustCommand\Huge{\fontsize{24}{27}\selectfont}%
659 \DeclareRobustCommand\HUGE{\fontsize{60}{60}\selectfont}%
660 }%
661 %%%%%%% 12pt %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
662 \NewDocumentCommand\TgoTwelvePointsFonts{}{%
663 \renewcommand\TgoSmallerSize{%
664 \TgoSmallerSizeCommandtrue%
665 \tgosetup{FontSize=11pt}%
666 \TgoSmallerSizeCommandfalse%
667 }%
668 \renewcommand\normalsize{%
669 \fontsize{12}{15.1}\selectfont%
670 \setlength\abovedisplayskip{6pt plus 3pt minus 2pt}%
671 \setlength\abovedisplayshortskip{0pt plus 3pt}%
672 \setlength\belowdisplayshortskip {4.5pt plus 2.5pt minus2pt}%
673 \setlength\belowdisplayskip{\abovedisplayskip}%
674 \let\@listi\@listI}%
675 \normalsize%
676 \ifTgoSmallerSizeCommand%
677 \else%
678 \setlength\TgoStandardMargin{1.5em}%
679 \fi%
680 \ifx\MakeRobust\@undefined \else%
681 \MakeRobust\normalsize%
682 \fi%
683 \DeclareRobustCommand\small{%
684 \fontsize{11}{13.9}\selectfont%
685 \setlength\abovedisplayskip{6pt plus 3pt minus 2pt}%
686 \setlength\abovedisplayshortskip{0pt plus 3pt}%
687 \setlength\belowdisplayshortskip{4pt plus 2pt minus 2pt}%
688 \def\@listi{\leftmargin\leftmargini%
689 \topsep 6\p@ \@plus2\p@ \@minus2\p@%
690 \parsep 2\p@ \@plus2\p@ \@minus\p@%
691 \itemsep \parsep}%
692 \setlength\belowdisplayskip{\abovedisplayskip}%
693 \let\@listi\@listI%
694 }%
695 \DeclareRobustCommand\footnotesize{%
696 \fontsize{10}{12.7}\selectfont%
697 \setlength\abovedisplayskip {6pt plus 2pt minus 4pt}%
698 \setlength\abovedisplayshortskip{0pt plus 1pt}%
699 \setlength\belowdisplayshortskip{3pt plus 2pt minus 1pt}%
700 \def\@listi{\leftmargin\leftmargini%
701 \topsep 4\p@ \@plus2\p@ \@minus2\p@%
702 \parsep 2\p@ \@plus\p@ \@minus\p@%
703 \itemsep \parsep}%
704 \setlength\belowdisplayskip{\abovedisplayskip}%
705 }%
706 \DeclareRobustCommand\scriptsize{\fontsize{9}{11.45}\selectfont}%
707 \DeclareRobustCommand\tiny{\fontsize{7}{8.9}\selectfont}%
708 \DeclareRobustCommand\large{\fontsize{14.2}{16.85}\selectfont}%
709 \DeclareRobustCommand\Large{\fontsize{16.5}{19.2}\selectfont}%
710 \DeclareRobustCommand\LARGE{\fontsize{19.2}{22}\selectfont}%
711 \DeclareRobustCommand\huge{\fontsize{22}{25}\selectfont}%
712 \DeclareRobustCommand\Huge{\fontsize{25}{28}\selectfont}%
713 \DeclareRobustCommand\HUGE{\fontsize{63}{63}\selectfont}%
714 }%
715 %%
716 %%%%%%% 9pt %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
717 \NewDocumentCommand\TgoNinePointsFonts{}{%
718 \renewcommand\TgoSmallerSize{}
719 \renewcommand\normalsize{%
720 \fontsize{9}{11.45}\selectfont%
721 \setlength\abovedisplayskip{6pt plus 3pt minus 2pt}%
722 \setlength\abovedisplayshortskip{0pt plus 3pt}%
723 \setlength\belowdisplayshortskip{4.5pt plus 2.5pt minus 2pt}%
724 \setlength\belowdisplayskip{\abovedisplayskip}%
725 \let\@listi\@listI}%
726 \normalsize%
727 \setlength\TgoStandardMargin{1.5em}%
728 \ifx\MakeRobust\@undefined\else%
729 \MakeRobust\normalsize%
730 \fi%
731 \DeclareRobustCommand\small{%
732 \fontsize{8}{10.25}\selectfont%
733 \setlength\abovedisplayskip{6pt plus 3pt minus 2pt}%
734 \setlength\abovedisplayshortskip{0pt plus 3pt}%
735 \setlength\belowdisplayshortskip{4pt plus 2pt minus 2pt}%
736 \def\@listi{\leftmargin\leftmargini%
737 \topsep 6\p@ \@plus2\p@ \@minus2\p@%
738 \parsep 2\p@ \@plus2\p@ \@minus\p@%
739 \itemsep \parsep}%
740 \setlength\belowdisplayskip{\abovedisplayskip}%
741 \let\@listi\@listI%
742 }%
743 \DeclareRobustCommand\footnotesize{%
744 \fontsize{7}{9}\selectfont%
745 \setlength\abovedisplayskip{6pt plus 2pt minus 4pt}%
746 \setlength\abovedisplayshortskip{0pt plus 1pt}%
747 \setlength\belowdisplayshortskip{3pt plus 2pt minus 1pt}%
748 \def\@listi{\leftmargin\leftmargini%
749 \topsep 4\p@ \@plus2\p@ \@minus2\p@%
750 \parsep 2\p@ \@plus\p@ \@minus\p@%
751 \itemsep \parsep}%
752 \setlength\belowdisplayskip{\abovedisplayskip}%
753 }%
754 \DeclareRobustCommand\scriptsize{\fontsize{6}{7.7}\selectfont}%
755 \DeclareRobustCommand\tiny{\fontsize{5}{6.4}\selectfont}%
756 \DeclareRobustCommand\large{\fontsize{10.3}{13}\selectfont}%
757 \DeclareRobustCommand\Large{\fontsize{12.7}{15.4}\selectfont}%
758 \DeclareRobustCommand\LARGE{\fontsize{15.2}{17.3}\selectfont}%
759 \DeclareRobustCommand\huge{\fontsize{18}{20}\selectfont}%
760 \DeclareRobustCommand\Huge{\fontsize{20}{24}\selectfont}%
761 \DeclareRobustCommand\HUGE{\fontsize{52}{52}\selectfont}%
762 }%
763 %%
764 %%
765 \ifTgoOneSide%
766 \LoadClass[oneside]{\TgoPublicationClass}%
767 \else%
768 \LoadClass[twoside]{\TgoPublicationClass}%
769 \fi%
770 %%%%%%%%%%%
771 \RequirePackage{xcolor}
772 %%%%
773 \RequirePackage{mathtools}
774 \RequirePackage{amsthm}
775 %%%%
776 \RequirePackage{graphicx,microtype,geometry,enumitem,float,afterpage}
777 %
778 \RequirePackage{titletoc}
779 %
780 \RequirePackage[pagestyles,toctitles,newlinetospace,clearempty,noindentafter]{titlesec}
781 %
782 %
783 \assignpagestyle{\chapter}{empty}
784 \assignpagestyle{\part}{empty}
785 \RequirePackage{ccaption,caption}
786 \DeclareCaptionLabelFormat{tango}{\sffamily\fontseries{sb}\selectfont#1\nobreakspace#2}
787 \captionsetup{font={sf,small},labelformat=tango,labelfont={color=ColorOne}}
788 \newfixedcaption{\tgofigcaption}{figure}
789 \newfixedcaption{\tgotabcaption}{table}
790 %%% Fontes
791 %%
792 \RequirePackage{fontspec}
793 \RequirePackage{unicode-math}[2020/01/31]
794 \defaultfontfeatures+{Ligatures=TeX,RawFeature={+pnum}}
795 %
796 \SetTgoBaseFonts
797 %%
798 \thinmuskip=2.5mu
799 \medmuskip=3mu plus 1mu minus 3mu
800 \thickmuskip=4mu plus 3mu minus 0.5mu
801 %%
802 \setmonofont{Inconsolatazi4}[Scale=MatchLowercase]
803 %
804 \setsansfont{NotoSans}[%
805 Scale=0.9,
806 Ligatures=TeX,
807 UprightFeatures={
808 Font=NotoSansMedium
809 },
810 ItalicFeatures={
811 Font=NotoSansMediumItalic
812 },
813 BoldFeatures={
814 Font=NotoSansBold
815 },
816 BoldItalicFeatures={
817 Font=NotoSansBoldItalic
818 },
819 FontFace={ul}{n}{Font=NotoSansThin},
820 FontFace={ul}{it}{Font=NotoSansThinItalic},
821 FontFace={el}{n}{Font=NotoSansExtraLight},
822 FontFace={el}{it}{Font=NotoSansExtraLightItalic},
823 FontFace={l}{n}{Font=NotoSansLight},
824 FontFace={l}{it}{Font=NotoSansLightItalic},
825 FontFace={sl}{n}{Font=NotoSansRegular},
826 FontFace={sl}{it}{Font=NotoSansItalic},
827 FontFace={sb}{n}{Font=NotoSansSemiBold},
828 FontFace={sb}{it}{Font=NotoSansSemiBoldItalic},
829 FontFace={eb}{n}{Font=NotoSansExtraBold},
830 FontFace={eb}{it}{Font=NotoSansExtraBoldItalic},
831 FontFace={ub}{n}{Font=NotoSansBlack},
832 FontFace={ub}{it}{Font=NotoSansBlackItalic},
833 ]
834 %%
835 \DeclareFontSeriesDefault[sf]{md}{sl}
836 %
837 %
838 \RequirePackage{fourier-orns}%
839 %
840 %% OTF Fonts Commands
841 %%
842 \NewDocumentCommand{\superiors}{}{\addfontfeature{RawFeature=+sups}}
843 \NewDocumentCommand{\scinferiors}{}{\addfontfeature{RawFeature=+sinf}}
844 \NewDocumentCommand{\smartfracs}{}{\addfontfeature{RawFeature=+frac}}
845 \NewDocumentCommand{\fullsc}{m}{{\addfontfeature{RawFeature=+c2sc}\MakeUppercase{#1}}}
846 \DeclareTextFontCommand{\textsup}{\superiors}
847 \DeclareTextFontCommand{\textscinf}{\scinferiors}
848 \DeclareTextFontCommand{\smartfrac}{\smartfracs}
849 \NewDocumentCommand{\olddigits}{}{\addfontfeature{RawFeature={-lnum,+onum}}}
850 \NewDocumentCommand{\propdigits}{}{\addfontfeature{RawFeature={-tnum,+pnum}}}
851 \NewDocumentCommand{\liningdigits}{}{\addfontfeature{RawFeature={-onum,+lnum}}}
852 \NewDocumentCommand{\tabulardigits}{}{\addfontfeature{RawFeature={-pnum,+tnum}}}
853 %
854 %
855 %%%%%%%% My taylor is rich %%%%%%%%%%%
856 %
857 \RequirePackage{iflang}
858 \RequirePackage{babel}
859 \IfLanguageName{nil}{%
860 \ClassError{tango}{No language option is given}
861 {%
862 You *must* pass at least one language\MessageBreak
863 option for babel to the tango class.}
864 }{}
865 %
866 %
867 \ifTgoFrenchLanguage
868 \frenchsetup{StandardLists,og=«, fg=»,PartNameFull=false,
869 SmallCapsFigTabCaptions=false,
870 CustomiseFigTabCaptions=false}
871 \addto\captionsfrench{% DF
872 \renewcommand\TgoTheoremName{Théorème}
873 \renewcommand\TgoDefinitionName{Définition}
874 \renewcommand\TgoPropositionName{Proposition}
875 \renewcommand\TgoLemmaName{Lemme}
876 \renewcommand\TgoCorollaryName{Corollaire}
877 \renewcommand\TgoRemarkName{Remarque}
878 \renewcommand\TgoExampleName{Exemple}
879 \renewcommand\TgoContentsName{Sommaire}
880 \renewcommand\TgoExerciseName{Exercice}
881 \renewcommand\TgoExercisesSubsectionName{Exercices}
882 \renewcommand\TgoExercisesSectionName{Exercices}
883 }
884 \fi
885 %%%
886 \ifTgoNGermanLanguage
887 \addto\captionsngerman{%
888 \renewcommand\TgoTheoremName{Satz}
889 \renewcommand\TgoDefinitionName{Definition}
890 \renewcommand\TgoPropositionName{Proposition}
891 \renewcommand\TgoLemmaName{Lemma}
892 \renewcommand\TgoCorollaryName{Korollar}%% ????
893 \renewcommand\TgoRemarkName{Bemerkung}
894 \renewcommand\TgoExampleName{Beispiel}
895 \renewcommand\TgoContentsName{Inhaltsverzeichnis}
896 \renewcommand\TgoExerciseName{Übung}
897 \renewcommand\TgoExercisesSubsectionName{Übungen}
898 \renewcommand\TgoExercisesSectionName{Übungen}
899 }
900 \fi
901 %
902 %%%
903 \ifTgoGermanLanguage
904 \addto\captionsgerman{%
905 \renewcommand\TgoTheoremName{Satz}
906 \renewcommand\TgoDefinitionName{Definition}
907 \renewcommand\TgoPropositionName{Proposition}
908 \renewcommand\TgoLemmaName{Lemma}
909 \renewcommand\TgoCorollaryName{Korollar}%% ????
910 \renewcommand\TgoRemarkName{Bemerkung}
911 \renewcommand\TgoExampleName{Beispiel}
912 \renewcommand\TgoContentsName{Inhaltsverzeichnis}
913 \renewcommand\TgoExerciseName{Übung}
914 \renewcommand\TgoExercisesSubsectionName{Übungen}
915 \renewcommand\TgoExercisesSectionName{Übungen}
916 }
917 \fi
918 %
919 %%%
920 \ifTgoNAustrianLanguage
921 \addto\captionsnaustrian{%
922 \renewcommand\TgoTheoremName{Satz}
923 \renewcommand\TgoDefinitionName{Definition}
924 \renewcommand\TgoPropositionName{Proposition}
925 \renewcommand\TgoLemmaName{Lemma}
926 \renewcommand\TgoCorollaryName{Korollar}%% ????
927 \renewcommand\TgoRemarkName{Bemerkung}
928 \renewcommand\TgoExampleName{Beispiel}
929 \renewcommand\TgoContentsName{Inhaltsverzeichnis}
930 \renewcommand\TgoExerciseName{Übung}
931 \renewcommand\TgoExercisesSubsectionName{Übungen}
932 \renewcommand\TgoExercisesSectionName{Übungen}
933 }
934 \fi
935 %
936 %%%
937 \ifTgoNSwissGermanLanguage
938 \addto\captionsnswissgerman{%
939 \renewcommand\TgoTheoremName{Satz}
940 \renewcommand\TgoDefinitionName{Definition}
941 \renewcommand\TgoPropositionName{Proposition}
942 \renewcommand\TgoLemmaName{Lemma}
943 \renewcommand\TgoCorollaryName{Korollar}%% ????
944 \renewcommand\TgoRemarkName{Bemerkung}
945 \renewcommand\TgoExampleName{Beispiel}
946 \renewcommand\TgoContentsName{Inhaltsverzeichnis}
947 \renewcommand\TgoExerciseName{Übung}
948 \renewcommand\TgoExercisesSubsectionName{Übungen}
949 \renewcommand\TgoExercisesSectionName{Übungen}
950 }
951 \fi
952 %
953 %%%
954 \ifTgoItalianLanguage
955 \addto\captionsitalian{%
956 \renewcommand\TgoTheoremName{Teorema}
957 \renewcommand\TgoDefinitionName{Definizione}
958 \renewcommand\TgoPropositionName{Proposizione}
959 \renewcommand\TgoLemmaName{Lemma}
960 \renewcommand\TgoCorollaryName{Corollario}
961 \renewcommand\TgoRemarkName{Nota}%%????
962 \renewcommand\TgoExampleName{Esempio}
963 \renewcommand\TgoContentsName{Sommario}%%Contenuti????
964 \renewcommand\TgoExerciseName{Esercizio}
965 \renewcommand\TgoExercisesSubsectionName{Esercizi}
966 \renewcommand\TgoExercisesSectionName{Esercizi}
967 }
968 \fi
969 %
970 %%%
971 \ifTgoSpanishLanguage
972 \addto\captionsspanish{%
973 \renewcommand\TgoTheoremName{Teorema}
974 \renewcommand\TgoDefinitionName{Definición}
975 \renewcommand\TgoPropositionName{Proposición}
976 \renewcommand\TgoLemmaName{Lema}
977 \renewcommand\TgoCorollaryName{Corolario}
978 \renewcommand\TgoRemarkName{Osservación}%%????
979 \renewcommand\TgoExampleName{Ejemplo}
980 \renewcommand\TgoContentsName{Sumario}%%????
981 \renewcommand\TgoExerciseName{Ejercicio}
982 \renewcommand\TgoExercisesSubsectionName{Ejercicios}
983 \renewcommand\TgoExercisesSectionName{Ejercicios}
984 }
985 \fi
986 %
987 %%%
988 \ifTgoEnglishLanguage
989 \addto\captionsenglish{%
990 \renewcommand\TgoTheoremName{Theorem}
991 \renewcommand\TgoDefinitionName{Definition}
992 \renewcommand\TgoPropositionName{Proposition}
993 \renewcommand\TgoLemmaName{Lemma}
994 \renewcommand\TgoCorollaryName{Corollary}
995 \renewcommand\TgoRemarkName{Remark}
996 \renewcommand\TgoExampleName{Example}
997 \renewcommand\TgoContentsName{Contents}
998 \renewcommand\TgoExerciseName{Exercise}
999 \renewcommand\TgoExercisesSubsectionName{Exercises}
1000 \renewcommand\TgoExercisesSectionName{Exercises}
1001 }
1002 \fi
1003 %
1004 %%%
1005 \ifTgoBritishLanguage
1006 \addto\captionsbritish{%
1007 \renewcommand\TgoTheoremName{Theorem}
1008 \renewcommand\TgoDefinitionName{Definition}
1009 \renewcommand\TgoPropositionName{Proposition}
1010 \renewcommand\TgoLemmaName{Lemma}
1011 \renewcommand\TgoCorollaryName{Corollary}
1012 \renewcommand\TgoRemarkName{Remark}
1013 \renewcommand\TgoExampleName{Example}
1014 \renewcommand\TgoContentsName{Contents}
1015 \renewcommand\TgoExerciseName{Exercise}
1016 \renewcommand\TgoExercisesSubsectionName{Exercises}
1017 \renewcommand\TgoExercisesSectionName{Exercises}
1018 }
1019 \fi
1020 %
1021 %%%
1022 \ifTgoAmericanLanguage
1023 \addto\captionsamerican{%
1024 \renewcommand\TgoTheoremName{Theorem}
1025 \renewcommand\TgoDefinitionName{Definition}
1026 \renewcommand\TgoPropositionName{Proposition}
1027 \renewcommand\TgoLemmaName{Lemma}
1028 \renewcommand\TgoCorollaryName{Corollary}
1029 \renewcommand\TgoRemarkName{Remark}
1030 \renewcommand\TgoExampleName{Example}
1031 \renewcommand\TgoContentsName{Contents}
1032 \renewcommand\TgoExerciseName{Exercise}
1033 \renewcommand\TgoExercisesSubsectionName{Exercises}
1034 \renewcommand\TgoExercisesSectionName{Exercises}
1035 }
1036 \fi
1037 %
1038 %%%
1039 \ifTgoCanadianLanguage
1040 \addto\captionscanadian{%
1041 \renewcommand\TgoTheoremName{Theorem}
1042 \renewcommand\TgoDefinitionName{Definition}
1043 \renewcommand\TgoPropositionName{Proposition}
1044 \renewcommand\TgoLemmaName{Lemma}
1045 \renewcommand\TgoCorollaryName{Corollary}
1046 \renewcommand\TgoRemarkName{Remark}
1047 \renewcommand\TgoExampleName{Example}
1048 \renewcommand\TgoContentsName{Contents}
1049 \renewcommand\TgoExerciseName{Exercise}
1050 \renewcommand\TgoExercisesSubsectionName{Exercises}
1051 \renewcommand\TgoExercisesSectionName{Exercises}
1052 }
1053 \fi
1054 %
1055 %%%
1056 \ifTgoAustralianLanguage
1057 \addto\captionsaustralian{%
1058 \renewcommand\TgoTheoremName{Theorem}
1059 \renewcommand\TgoDefinitionName{Definition}
1060 \renewcommand\TgoPropositionName{Proposition}
1061 \renewcommand\TgoLemmaName{Lemma}
1062 \renewcommand\TgoCorollaryName{Corollary}
1063 \renewcommand\TgoRemarkName{Remark}
1064 \renewcommand\TgoExampleName{Example}
1065 \renewcommand\TgoContentsName{Contents}
1066 \renewcommand\TgoExerciseName{Exercise}
1067 \renewcommand\TgoExercisesSubsectionName{Exercises}
1068 \renewcommand\TgoExercisesSectionName{Exercises}
1069 }
1070 \fi
1071 %
1072 %%%
1073 \ifTgoNewZealandLanguage
1074 \addto\captionsnewzealand{%
1075 \renewcommand\TgoTheoremName{Theorem}
1076 \renewcommand\TgoDefinitionName{Definition}
1077 \renewcommand\TgoPropositionName{Proposition}
1078 \renewcommand\TgoLemmaName{Lemma}
1079 \renewcommand\TgoCorollaryName{Corollary}
1080 \renewcommand\TgoRemarkName{Remark}
1081 \renewcommand\TgoExampleName{Example}
1082 \renewcommand\TgoContentsName{Contents}
1083 \renewcommand\TgoExerciseName{Exercise}
1084 \renewcommand\TgoExercisesSubsectionName{Exercises}
1085 \renewcommand\TgoExercisesSectionName{Exercises}
1086 }
1087 \fi
1088 %
1089 %%% Last package
1090 \ifTgoNoHyperref
1091 \else
1092 \RequirePackage[colorlinks,linkcolor=ColorOne,urlcolor=ColorOne]{hyperref}
1093 \fi
1094 %%
1095 %%%
1096 %%%%%%% parindent %%%%%%%%%%%%%%%%%%%%%%%%
1097 \setlength\parindent{\TgoStandardMargin}
1098 \setlength{\parskip}{0pt plus 1pt}
1099 \ifTgoSmartphoneOutput
1100 \setlength{\parindent}{0pt}
1101 \setlength{\parskip}{3pt plus 2pt minus1pt}
1102 \else
1103 \ifTgoParindentZero
1104 \setlength{\parindent}{0pt}
1105 \setlength{\parskip}{3pt plus 1pt}
1106 \fi\fi
1107 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
1108 \newcommand\TgoCurrentLists{}
1109 %\ifTgoFrenchLanguage
1110 %\setlength{\TgoTitleIndent}{\parindent}
1111 %\else
1112 %\setlength{\TgoTitleIndent}{0em}
1113 %\fi
1114 \ifTgoTitleIndentZero
1115 \setlength{\TgoTitleIndent}{0em}
1116 \else
1117 \setlength{\TgoTitleIndent}{\parindent}
1118 \fi
1119 %
1120 %
1121 \renewcommand\labelitemi{\textbullet}
1122 \renewcommand\labelitemii{\textopenbullet}
1123 \renewcommand\labelitemiii{\starredbullet}
1124 \renewcommand\labelitemiv{\textperiodcentered}
1125 %%%%%
1126 \NewDocumentCommand\renewtgolabels{%
1127 s E{1234}{ {} {} {} {} }%
1128 }
1129 {%
1130 \IfBooleanTF{#1}%
1131 {%
1132 \IfBlankTF{#2}%
1133 {\renewcommand\labelitemi{\textbullet}}%
1134 {\renewcommand\labelitemi{#2}}%
1135 \IfBlankTF{#3}%
1136 {\renewcommand\labelitemii{\textopenbullet}}%
1137 {\renewcommand\labelitemii{#3}}%
1138 \IfBlankTF{#4}%
1139 {\renewcommand\labelitemiii{\starredbullet}}%
1140 {\renewcommand\labelitemiii{#4}}%
1141 \IfBlankTF{#5}%
1142 {\renewcommand\labelitemiv{\textperiodcentered}}%
1143 {\renewcommand\labelitemiv{#5}}%
1144 }%
1145 {%
1146 \IfBlankF{#2}{\renewcommand\labelitemi{#2}}%
1147 \IfBlankF{#3}{\renewcommand\labelitemii{#3}}%
1148 \IfBlankF{#4}{\renewcommand\labelitemiii{#4}}%
1149 \IfBlankF{#5}{\renewcommand\labelitemiv{#5}}%
1150 }%
1151 \TgoCurrentLists%
1152 }%
1153 \NewDocumentCommand\tgosmartlists{}
1154 {%
1155 \RenewDocumentCommand\TgoCurrentLists{}{\tgosmartlists}
1156 \setlength{\leftmargini}{\TgoStandardMargin}
1157 \setlength{\leftmarginii}{\TgoStandardMargin}
1158 \setlength{\leftmarginiii}{\TgoStandardMargin}
1159 \setlength{\leftmarginiv}{\TgoStandardMargin}
1160 \setlist{
1161 itemsep=0.3ex plus 0.1ex minus 0.1ex,
1162 parsep=0.3ex plus 0.1ex minus 0.1ex,
1163 topsep=0.3ex plus 0.2ex minus 0.1ex,
1164 partopsep=0.3ex plus 0.1ex minus 0.1ex
1165 }
1166 \setlist[itemize]{nosep, leftmargin=\TgoStandardMargin, align=left, labelsep=0.5em, labelindent=\TgoStandardMargin+\parindent,
1167 itemindent=*}
1168 %
1169 \setlist[itemize,1]{leftmargin=0em, align=left, labelsep=0.5em, labelindent=\parindent, itemindent=* }
1170 %
1171 \setlist[enumerate]{nosep, leftmargin=\TgoStandardMargin, align=left, labelsep=0.5em,
1172 labelindent=\TgoStandardMargin+\parindent,widest=0, itemindent=*}
1173 %
1174 \setlist[enumerate,1]{leftmargin=0em, align=left, labelsep=0.5em, labelindent=\parindent, itemindent=* }
1175 %
1176 }
1177 %%%
1178 \NewDocumentCommand\tgostandardlists{}
1179 {%
1180 \RenewDocumentCommand\TgoCurrentLists{}{\tgostandardlists}
1181 \setlength{\leftmargini}{\TgoStandardMargin}
1182 \setlength{\leftmarginii}{\TgoStandardMargin}
1183 \setlength{\leftmarginiii}{\TgoStandardMargin}
1184 \setlength{\leftmarginiv}{\TgoStandardMargin}
1185 \setlist{
1186 itemsep=0.4ex plus 0.2ex minus 0.2ex,
1187 parsep=0.4ex plus 0.2ex minus 0.2ex,
1188 topsep=0.8ex plus 0.4ex minus 0.4ex,
1189 partopsep=0.4ex plus 0.2ex minus 0.2ex
1190 }
1191 \setlist[itemize]{leftmargin=\TgoStandardMargin, align=left, labelindent=0em,
1192 labelwidth=0.75\TgoStandardMargin, labelsep=0.25\TgoStandardMargin, itemindent=!}
1193 %%
1194 \setlist[itemize,1]{leftmargin=2\TgoStandardMargin, align=left, labelindent=\TgoStandardMargin, labelwidth=0.75\TgoStandardMargin, labelsep=0.25\TgoStandardMargin, itemindent=!}
1195 %
1196 \setlist[enumerate]{leftmargin=\TgoStandardMargin, align=left, labelindent=0em,
1197 labelwidth=0.75\TgoStandardMargin, labelsep=0.25\TgoStandardMargin, itemindent=!}
1198 %
1199 \setlist[enumerate,1]{leftmargin=2\TgoStandardMargin, align=left, labelindent=\TgoStandardMargin, labelwidth=0.75\TgoStandardMargin, labelsep=0.25\TgoStandardMargin, itemindent=!}
1200 }
1201 \renewcommand{\labelenumii}{\alph{enumii}.}
1202
1203 \tgostandardlists
1204 %
1205 %
1206 %\NewDocumentCommand\testlists{}{
1207 %\setlength{\leftmargini}{\TgoStandardMargin}
1208 %\setlength{\leftmarginii}{\TgoStandardMargin}
1209 %\setlength{\leftmarginiii}{\TgoStandardMargin}
1210 %\setlength{\leftmarginiv}{\TgoStandardMargin}
1211 %\setlist{
1212 % itemsep=0.4ex plus 0.2ex minus 0.2ex,
1213 % parsep=0.4ex plus 0.2ex minus 0.2ex,
1214 % topsep=0.8ex plus 0.4ex minus 0.4ex,
1215 % partopsep=0.4ex plus 0.2ex minus 0.2ex
1216 %}
1217 %\setlist[itemize]{nosep, leftmargin=\TgoStandardMargin, align=left, labelsep=0.5em, labelindent=\TgoStandardMargin+\parindent,
1218 %itemindent=*}
1219 %%
1220 %\setlist[itemize,1]{leftmargin=0em, align=left, labelsep=0.5em, labelindent=\parindent, itemindent=* }
1221 %%
1222 %\setlist[enumerate]{nosep, leftmargin=\TgoStandardMargin, align=left, labelsep=0.5em,
1223 %labelindent=\TgoStandardMargin+\parindent,widest=0, itemindent=*}
1224 %%
1225 %\setlist[enumerate,1]{leftmargin=0em, align=left, labelsep=0.5em, labelindent=\parindent, itemindent=* }
1226 %%
1227 %}
1228 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
1229 \newpagestyle{tango}{
1230 \ifTgoOneSide
1231 \ifTgoBook
1232 \sethead {\sffamily\addfontfeature{RawFeature=+c2sc}\MakeUppercase\chaptertitle}{}
1233 {\sffamily\thepage} % all
1234 \else
1235 \sethead{\sffamily\addfontfeature{RawFeature=+c2sc}\MakeUppercase\sectiontitle}{}
1236 {\sffamily\thepage}% all
1237 \fi
1238 \else
1239 \ifTgoBook
1240 \sethead[\sffamily\thepage]
1241 [\sffamily\addfontfeature{RawFeature=+c2sc}\MakeUppercase\chaptertitle][] % even
1242 {}{\sffamily\addfontfeature{RawFeature=+c2sc}\MakeUppercase\sectiontitle}
1243 {\sffamily\thepage} % odd
1244 \else
1245 \sethead[\sffamily\thepage][\sffamily\addfontfeature{RawFeature=+c2sc}\MakeUppercase\sectiontitle][] % even
1246 {}{\sffamily\addfontfeature{RawFeature=+c2sc}\MakeUppercase\sectiontitle}
1247 {\sffamily\thepage}% odd
1248 \fi
1249 \fi}
1250 %%%%%%%%%%%%
1251 \pagestyle{tango}
1252 %%%%%%%%%%%%%%
1253 %%% Mise en forme des titres %%%%%%%%%%%%%%%
1254 \setcounter{secnumdepth}{2}
1255 %%%
1256 \ifTgoBook
1257 \newcommand\TgoChapterBox[1]{%
1258 {\filright\sffamily\addfontfeature{RawFeature=-onum}\fontseries{eb}\selectfont\HUGE\hspace*{-0.06em}\thechapter}%
1259 \quad\parbox{0.75\textwidth}{\filright#1}
1260 }
1261 \titleformat{\part}[display]{\centering\color{ColorOne}\sffamily
1262 \addfontfeature{RawFeature=-onum}\fontseries{eb}\selectfont\Huge}
1263 {\LARGE\partname~\thepart}{\baselineskip}{}
1264 %%
1265 \titleformat{name=\chapter}[block]{\filright\color{ColorOne}\fontspec{\TgoChapterTitleFont}\addfontfeature{RawFeature=-onum}\huge}
1266 {}{0em}{\TgoChapterBox}
1267 %%%
1268 \titleformat{name=\chapter,numberless}[block]{\filright\color{ColorOne}\fontspec{\TgoChapterTitleFont}\addfontfeature{RawFeature=-onum}\huge}
1269 {}{0em}{}
1270 \fi%
1271 \titleformat{\section}{\color{ColorOne}\sffamily\addfontfeature{RawFeature=-onum}%
1272 \fontseries{b}\selectfont\large}{\thesection}{1em}{\uppercase}%
1273 \titleformat{\subsection}{\color{ColorOne}\sffamily\fontseries{sb}\selectfont\large}{\thesubsection}{1em}{}%
1274 \titleformat{\subsubsection}{\color{ColorOne}\sffamily\fontseries{sb}\selectfont}{\thesubsubsection}{0.7em}{}%
1275 \titleformat{\paragraph}[runin]{\itshape}{\theparagraph.}{0.5em}{}[. — ]%
1276 \titleformat{\subparagraph}[runin]{}{\thesubparagraph.}{0.5em}{}[. — ]%
1277 \titlespacing{\chapter}{\TgoTitleIndent}{0pt}{6ex}%
1278 \titlespacing{\section}{\TgoTitleIndent}{12pt plus 5pt minus 4pt}{6pt plus 3pt minus 2pt}%
1279 \titlespacing{\subsection}{\TgoTitleIndent}{12pt plus 5pt minus 4pt}{6pt plus 3pt minus 2pt}%
1280 \titlespacing{\subsubsection}{\TgoTitleIndent}{7pt plus 3pt minus 2pt}{3pt plus 2pt minus 1pt}%
1281 \titlespacing{\paragraph}{\TgoTitleIndent}{7pt plus 3pt minus 2pt}{3pt plus 1pt minus 1pt}%
1282 \titlespacing{\subparagraph}{\TgoTitleIndent}{4pt plus 2pt minus 2pt}{3pt plus 1pt minus 1pt}%
1283 %
1284 \ifTgoBook
1285 \NewCommandCopy{\tgotitle}{\chapter}
1286 \else%%article
1287 \NewDocumentCommand\tgotitle{s m}{%
1288 \IfBooleanTF{#1}{%
1289 \clearpage\thispagestyle{empty}
1290 % \vspace*{5\p@}%
1291 {\parindent=0pt \raggedright
1292 \normalfont
1293 \interlinepenalty\@M
1294 \advance\leftskip by \TgoTitleIndent
1295 \fontspec{\TgoChapterTitleFont}\huge\color{ColorOne}#2
1296 \par} \vspace {\TgoAfterChapterSkip}\par}
1297 {%
1298 \clearpage\thispagestyle{empty}
1299 % \vspace*{5\p@}%
1300 {\parindent=0pt \raggedright
1301 \normalfont
1302 \interlinepenalty\@M
1303 \advance\leftskip by \TgoTitleIndent
1304 \fontspec{\TgoChapterTitleFont}\huge\color{ColorOne}#2
1305 \par} \vspace {\TgoAfterChapterSkip}\par}
1306 }
1307 \fi
1308 %%%%%%%
1309 %%%%%%%Table des matières
1310 %%%%%%%
1311 \ifTgoBook\else
1312 \RenewDocumentCommand\tableofcontents{}{%
1313 {\color{ColorOne}\parskip=0pt%
1314 \noindent\titlerule[1.3pt]%
1315 \vspace{-1\baselineskip}\vspace{1.6pt} \par %
1316 \noindent\titlerule[.5pt]%
1317 }%
1318 \vspace{-10pt}\par%
1319 \section*{\contentsname}
1320 \@starttoc{toc}%
1321 {\color{ColorOne}\parskip=0pt%
1322 \noindent\titlerule[0.5pt]%
1323 \vspace{-1\baselineskip}\vspace{2.4pt} \par %
1324 \noindent\titlerule[1.3pt]%
1325 }%
1326 \par %
1327 \vspace{2\baselineskip}%
1328 \par %
1329 }%
1330 \fi
1331 \IfPackageLoadedTF{hyperref}%
1332 {%
1333 \NewCommandCopy{\TgoOriginalToc}{\tableofcontents}%
1334 \RenewDocumentCommand\tableofcontents{}{{\hypersetup{hidelinks}\TgoOriginalToc}}%
1335 }%
1336 {}
1337 %%
1338 %%
1339 \ifTgoBook
1340 \NewDocumentCommand\tgoshorttoc{}{}
1341 \titlecontents{part}
1342 [50pt] % ie, 1.5em (chapter) + 2.3em
1343 {\large\sffamily\fontseries{sb}\selectfont\color{ColorOne}}
1344 {\contentslabel{50pt}}
1345 {\hspace*{-50pt}}
1346 {\titlerule*[1pc]{}\contentspage}
1347 \titlecontents{chapter}
1348 [16pt] % ie, 1.5em (chapter) + 2.3em
1349 {\sffamily\fontseries{b}\selectfont\color{ColorOne}}
1350 {\contentslabel{16pt}}
1351 {\hspace*{-6pt}}
1352 {\titlerule*[1pc]{}\contentspage}
1353 \titlecontents{section}
1354 [3.6em] % ie, 1.5em (chapter) + 2.3em
1355 {\sffamily\fontseries{m}\selectfont}
1356 {\contentslabel{2.5em}}
1357 {\hspace*{-2.5em}}
1358 {\titlerule*[1pc]{.}\contentspage}
1359 \titlecontents{subsection}
1360 [6.4em] % ie, 1.5em (chapter) + 2.3em
1361 {\sffamily\fontseries{l}\selectfont}
1362 {\contentslabel{3.2em}}
1363 {\hspace*{-3.2em}}
1364 {\titlerule*[1pc]{.}\contentspage}
1365 \else
1366 \NewCommandCopy{\tgoshorttoc}{\tableofcontents}
1367 \RenewDocumentCommand\tableofcontents{}{}
1368 \ifTgoFrenchLanguage
1369 \renewcommand{\frenchcontentsname}{\TgoContentsName}
1370 \fi
1371 \setcounter{tocdepth}{2}
1372 \titlecontents{section}
1373 [1.7em] % ie, 1.5em (chapter) + 2.3em
1374 {\sffamily\fontseries{sb}\selectfont}
1375 {\contentslabel{2.em}}
1376 {\hspace*{-2.em}}
1377 {\titlerule*[1pc]{}\contentspage}
1378 \titlecontents{subsection}
1379 [4em] % ie, 1.5em (chapter) + 2.3em
1380 {\sffamily}
1381 {\contentslabel{2.7em}}
1382 {\hspace*{-2.7em}}
1383 {\titlerule*[1pc]{.}\contentspage}
1384 \titlecontents{subsubsection}
1385 [6em] % ie, 1.5em (chapter) + 2.3em
1386 {\sffamily\fontseries{l}\selectfont}
1387 {\contentslabel{3.5em}}
1388 {\hspace*{-3.5em}}
1389 {\titlerule*[1pc]{.}\contentspage}
1390 \fi
1391 %
1392 %%Init
1393 \NewDocumentCommand\AfourCommand{+m}{}
1394 %
1395 \NewDocumentCommand\LetterCommand{+m}{}
1396 %
1397 \NewDocumentCommand\BigTabletCommand{+m}{}
1398 %
1399 \NewDocumentCommand\TabletCommand{+m}{}
1400 %
1401 \NewDocumentCommand\AfiveCommand{+m}{}
1402 %
1403 \NewDocumentCommand\SmallTabletCommand{+m}{}
1404 %
1405 \NewDocumentCommand\eReaderCommand{+m}{}
1406 %
1407 \NewDocumentCommand\SmartphoneCommand{+m}{}
1408 %
1409 \NewDocumentCommand\XAfourCommand{+m}{}
1410 %
1411 \NewDocumentCommand\XLetterCommand{+m}{}
1412 %
1413 \NewDocumentCommand\XBigTabletCommand{+m}{}
1414 %
1415 \NewDocumentCommand\XTabletCommand{+m}{}
1416 %
1417 \NewDocumentCommand\XAfiveCommand{+m}{}
1418 %
1419 \NewDocumentCommand\XSmallTabletCommand{+m}{}
1420 %
1421 \NewDocumentCommand\XeReaderCommand{+m}{}
1422 %
1423 \NewDocumentCommand\XSmartphoneCommand{+m}{}
1424 %
1425 %%%%%%%%%%%%
1426 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
1427 %%%%%Output Format %%%%%%%%%%%%%%%%%%%%%%%%%%%%
1428 %%
1429 %%%%% Afour %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
1430 %%
1431 \ifTgoAfourPaperOutput
1432 %
1433 \RenewDocumentCommand\AfourCommand{+m}{#1}
1434 %
1435 \RenewDocumentCommand\XLetterCommand{+m}{#1}
1436 %
1437 \RenewDocumentCommand\XBigTabletCommand{+m}{#1}
1438 %
1439 \RenewDocumentCommand\XAfiveCommand{+m}{#1}
1440 %
1441 \RenewDocumentCommand\XTabletCommand{+m}{#1}
1442 %
1443 \RenewDocumentCommand\XSmallTabletCommand{+m}{#1}
1444 %
1445 \RenewDocumentCommand\XeReaderCommand{+m}{#1}
1446 %
1447 \RenewDocumentCommand\XSmartphoneCommand{+m}{#1}
1448 %
1449 %%
1450 %\ifTgoOneSide
1451 \geometry{paperwidth=21cm,paperheight=29.7cm,
1452 heightrounded,top=2cm,inner=2.75cm,outer=2.75cm,bottom=3.6cm,
1453 headheight=16pt,headsep=21pt,footskip=50pt}
1454 %\else
1455 %\geometry{paperwidth=21cm,paperheight=29.7cm,
1456 %heightrounded,top=2cm,inner=2.3cm,outer=3.2cm,bottom=3.6cm,
1457 %headheight=16pt,headsep=21pt,footskip=50pt}
1458 %\fi
1459 %
1460 \setlength{\TgoAfterChapterSkip}{21pt}
1461 %
1462 \NewDocumentCommand\tgocover{O{A4Cover}}{\InputIfFileExists{#1}{}{%
1463 \ClassWarning{tango}{Fichier #1.tex absent}}}
1464 \flushbottom\emergencystretch=2.5em
1465 \tolerance800
1466 \clubpenalty1000
1467 \widowpenalty1000%
1468 %
1469 \fi
1470 %%%%%%%
1471 %%%%%% Big Tablet or Letter %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
1472 \ifTgoBigTabletOutput
1473 %
1474 \ifTgoLetterOutput
1475 %
1476 \RenewDocumentCommand\LetterCommand{+m}{#1}
1477 %
1478 \RenewDocumentCommand\XBigTabletCommand{+m}{#1}
1479 %
1480 \else
1481 %
1482 \RenewDocumentCommand\BigTabletCommand{+m}{#1}
1483 %
1484 \RenewDocumentCommand\XLetterCommand{+m}{#1}
1485 %
1486 \fi
1487 %
1488 \RenewDocumentCommand\XAfourCommand{+m}{#1}
1489 %
1490 \RenewDocumentCommand\XAfiveCommand{+m}{#1}
1491 %
1492 \RenewDocumentCommand\XTabletCommand{+m}{#1}
1493 %
1494 \RenewDocumentCommand\XSmallTabletCommand{+m}{#1}
1495 %
1496 \RenewDocumentCommand\XeReaderCommand{+m}{#1}
1497 %
1498 \RenewDocumentCommand\XSmartphoneCommand{+m}{#1}
1499 %
1500 %%%%%%%%%%%%%%%%%%%%%
1501 %%%%%%%%%%%
1502 %
1503 %%
1504 \ifTgoLetterOutput
1505 %\ifTgoOneSide
1506 \geometry{paperwidth=8.5in,paperheight=11in,
1507 heightrounded,top=1.9cm,inner=2.8cm,outer=2.8cm,bottom=3cm,
1508 headheight=16pt,headsep=20pt,footskip=14pt}
1509 %\else
1510 %\geometry{paperwidth=8.5in,paperheight=11in,
1511 %heightrounded,top=1.9cm,inner=2.4cm,outer=3.2cm,bottom=3.6cm,
1512 %headheight=16pt,headsep=20pt,footskip=14pt}
1513 %\fi
1514 %
1515 \setlength{\TgoAfterChapterSkip}{22pt}
1516 %
1517 \NewDocumentCommand\tgocover{O{LetterCover}}{\InputIfFileExists{#1}{}{%
1518 \ClassWarning{tango}{Fichier #1.tex absent}}}
1519 \flushbottom\emergencystretch=2.5em
1520 \tolerance800
1521 \clubpenalty1000
1522 \widowpenalty1000%
1523 %
1524 \else
1525 %
1526 \setlength{\TgoAfterChapterSkip}{21pt}
1527 %
1528 \geometry{paperwidth=19.8cm,paperheight=26.4cm,
1529 heightrounded,top=1.8cm,inner=2.4cm,outer=2.4cm,bottom=2.7cm,
1530 headheight=16pt,headsep=14pt,footskip=14pt}
1531 %
1532 \NewDocumentCommand\tgocover{O{BigTabletCover}}{\InputIfFileExists{#1}{}{%
1533 \ClassWarning{tango}{Fichier #1.tex absent}}}
1534 \flushbottom\emergencystretch=2.5em
1535 \tolerance800
1536 \clubpenalty1000
1537 \widowpenalty1000%
1538 \fi
1539 \fi
1540 %%%%%%%
1541 %%%%%% Tablet or A5%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
1542 \ifTgoTabletOutput
1543 %
1544 \ifTgoAfivePaperOutput
1545 \RenewDocumentCommand\AfiveCommand{+m}{#1}
1546 %
1547 \RenewDocumentCommand\XTabletCommand{+m}{#1}
1548 %
1549 \else
1550 %
1551 \RenewDocumentCommand\TabletCommand{+m}{#1}
1552 %
1553 \RenewDocumentCommand\XAfiveCommand{+m}{#1}
1554 %
1555 \fi
1556 %
1557 \RenewDocumentCommand\XLetterCommand{+m}{#1}
1558 %
1559 \RenewDocumentCommand\XAfourCommand{+m}{#1}
1560 %
1561 \RenewDocumentCommand\XBigTabletCommand{+m}{#1}
1562 %
1563 \RenewDocumentCommand\XSmallTabletCommand{+m}{#1}
1564 %
1565 \RenewDocumentCommand\XeReaderCommand{+m}{#1}
1566 %
1567 \RenewDocumentCommand\XSmartphoneCommand{+m}{#1}
1568 %
1569 %
1570 %%%%%%%%%%%%%%%%%%%%%
1571 %%%%%%%%%%%
1572 %
1573 %%
1574 \ifTgoAfivePaperOutput
1575 %\ifTgoOneSide
1576 \geometry{paperwidth=14.85cm,paperheight=21cm,
1577 heightrounded,top=1.2cm,inner=1.8cm,outer=1.8cm,bottom=2.4cm,
1578 headheight=16pt,headsep=11pt,footskip=14pt}
1579 %\else
1580 %\geometry{paperwidth=14.85cm,paperheight=21cm,
1581 %heightrounded,top=1.3cm,inner=1.5cm,outer=2.1cm,bottom=2.4cm,
1582 %headheight=16pt,headsep=11pt,footskip=14pt}
1583 %\fi
1584 %
1585 \setlength{\TgoAfterChapterSkip}{15pt}
1586 %
1587 \NewDocumentCommand\tgocover{O{A5Cover}}{\InputIfFileExists{#1}{}{%
1588 \ClassWarning{tango}{Fichier #1.tex absent}}}
1589 \flushbottom\emergencystretch=2.5em
1590 \tolerance800
1591 \clubpenalty1000
1592 \widowpenalty1000%
1593 %%
1594 \else
1595 %%%
1596 \geometry{paperwidth=16cm,paperheight=22.88cm,
1597 heightrounded,top=1.2cm,inner=1.4cm,outer=1.4cm,bottom=1.8cm,
1598 headheight=16pt,headsep=11pt,footskip=14pt}
1599 %
1600 \setlength{\TgoAfterChapterSkip}{18pt}
1601 %
1602 \NewDocumentCommand\tgocover{O{TabletCover}}{\InputIfFileExists{#1}{}{%
1603 \ClassWarning{tango}{Fichier #1.tex absent}}}
1604 \flushbottom\emergencystretch=2.5em
1605 \tolerance800
1606 \clubpenalty1000
1607 \widowpenalty1000%
1608 \fi
1609 \fi
1610 %%%%%% Small Tablet%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
1611 \ifTgoSmallTabletOutput
1612 %
1613 \RenewDocumentCommand\SmallTabletCommand{+m}{#1}
1614 %
1615 \RenewDocumentCommand\XAfourCommand{+m}{#1}
1616 %
1617 \RenewDocumentCommand\XLetterCommand{+m}{#1}
1618 %
1619 \RenewDocumentCommand\XBigTabletCommand{+m}{#1}
1620 %
1621 \RenewDocumentCommand\XAfiveCommand{+m}{#1}
1622 %
1623 \RenewDocumentCommand\XTabletCommand{+m}{#1}
1624 %
1625 \RenewDocumentCommand\XeReaderCommand{+m}{#1}
1626 %
1627 \RenewDocumentCommand\XSmartphoneCommand{+m}{#1}
1628 %
1629 %%%%%%%%%%%%%%%%%%%%%
1630 \setlength{\TgoAfterChapterSkip}{11pt}
1631 %%
1632 \geometry{paperwidth=12cm,paperheight=18.24cm,
1633 heightrounded,top=1.1cm,inner=0.75cm,outer=0.75cm,bottom=1.3cm,
1634 headheight=14pt,headsep=6pt,footskip=13pt}
1635 %
1636 \NewDocumentCommand\tgocover{O{SmallTabletCover}}{\InputIfFileExists{#1}{}{%
1637 \ClassWarning{tango}{Fichier #1.tex absent}}}
1638 \flushbottom\emergencystretch=2.5em
1639 \tolerance800
1640 \clubpenalty1000
1641 \widowpenalty1000%
1642 \fi
1643 %%%%%% eReader %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
1644 \ifTgoeReaderOutput
1645 %
1646 \RenewDocumentCommand\eReaderCommand{+m}{#1}
1647 %
1648 \RenewDocumentCommand\XAfourCommand{+m}{#1}
1649 %
1650 \RenewDocumentCommand\XLetterCommand{+m}{#1}
1651 %
1652 \RenewDocumentCommand\XBigTabletCommand{+m}{#1}
1653 %
1654 \RenewDocumentCommand\XAfiveCommand{+m}{#1}
1655 %
1656 \RenewDocumentCommand\XTabletCommand{+m}{#1}
1657 %
1658 \RenewDocumentCommand\XSmallTabletCommand{+m}{#1}
1659 %
1660 \RenewDocumentCommand\XSmartphoneCommand{+m}{#1}
1661 %
1662 %%%%%%%%%%%%%%%%%%%%%
1663 \setlength{\TgoAfterChapterSkip}{3pt}
1664 %%%%%%%%%%%
1665 %
1666 %
1667 \geometry{paperwidth=10.7cm,paperheight=14.4cm,
1668 heightrounded,top=0.82cm,left=0.5cm,right=0.5cm,bottom=0.8cm,
1669 headheight=18pt,headsep=5pt,footskip=10pt}
1670 %%
1671 %
1672 \NewDocumentCommand\tgocover{O{eReaderCover}}{\InputIfFileExists{#1}{}{%
1673 \ClassWarning{tango}{Fichier #1.tex absent}}}
1674 \flushbottom\sloppy
1675 \fi
1676 %%%%%%%% Smartphone %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
1677 \ifTgoSmartphoneOutput
1678 %
1679 \RenewDocumentCommand\SmartphoneCommand{+m}{#1}
1680 %
1681 \RenewDocumentCommand\XLetterCommand{+m}{#1}
1682 %
1683 \RenewDocumentCommand\XAfourCommand{+m}{#1}
1684 %
1685 \RenewDocumentCommand\XBigTabletCommand{+m}{#1}
1686 %
1687 \RenewDocumentCommand\XAfiveCommand{+m}{#1}
1688 %
1689 \RenewDocumentCommand\XTabletCommand{+m}{#1}
1690 %
1691 \RenewDocumentCommand\XSmallTabletCommand{+m}{#1}
1692 %
1693 \RenewDocumentCommand\XeReaderCommand{+m}{#1}
1694 %
1695 %%%%%%%%%%%%%%%%%%%%%
1696 \setlength{\TgoAfterChapterSkip}{7pt}%
1697 %%%%%%%%%%%
1698 %
1699 %%
1700 \geometry{paperwidth=10cm,paperheight=18cm,
1701 heightrounded,top=1.1cm,inner=0.32cm,outer=0.32cm,bottom=1cm,
1702 headheight=14pt,headsep=10pt,footskip=17pt}
1703 %
1704 \NewDocumentCommand\tgocover{O{SmartphoneCover}}{\InputIfFileExists{#1}{}{%
1705 \ClassWarning{tango}{Fichier #1.tex absent}}}
1706 \flushbottom\sloppy
1707 \fi
1708 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
1709 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
1710 \setlength{\abovecaptionskip}{4pt plus 1pt minus 1pt}
1711 \setlength{\belowcaptionskip}{4pt plus 1 pt minus 1pt}
1712 %
1713 %
1714 \setlength{\textfloatsep}{10pt plus 4 pt minus 3pt}
1715 \setlength{\intextsep}{4pt plus 2pt minus 1 pt}
1716 %
1717 %%%Environnements %%%%%%%%%%%%%%%%%%%
1718 %
1719 %%%%%% Stolen to amsthm %%%%%%%%%%%%%%%
1720 %
1721 \RenewDocumentCommand\qedsymbol{}{{\ensuremath{\color{ColorOne}\rule{7pt}{7pt}}}}%
1722 \RenewDocumentEnvironment{proof}{o}{%
1723 \IfValueTF{#1}%
1724 {\renewcommand\TgoTempa{#1}}
1725 {\renewcommand\TgoTempa{\proofname}}
1726 \pushQED{\qed}%
1727 \par\nobreak\addvspace{6pt plus 3pt minus 2pt}%
1728 {\color{ColorOne}\sffamily\fontseries{m}\selectfont\itshape%
1729 \TgoTempa}\par\nobreak
1730 }%
1731 {\popQED\par\addvspace{6pt plus 3pt minus 2pt}}
1732 %%%%
1733 %%%%
1734 \newcounter{tgoexo}%
1735 %%
1736 \NewDocumentCommand\exo{s d<> o}{%
1737 \IfValueTF{#2}%
1738 {%
1739 \renewcommand\TgoTempa{#2}%
1740 }%
1741 {%
1742 \renewcommand\TgoTempa{\TgoExerciseName}%
1743 }%
1744 \IfBooleanTF{#1}%
1745 {%
1746 \renewcommand\TgoTempb{\TgoTempa}%
1747 }%
1748 {%
1749 \refstepcounter{tgoexo}%
1750 \renewcommand\TgoTempb{\TgoTempa~\thetgoexo}%
1751 }%
1752 \IfValueTF{#3}%
1753 {%
1754 \renewcommand\TgoTempc{\TgoTempb\space(#3)}%
1755 }%
1756 {%
1757 \renewcommand\TgoTempc{\TgoTempb}%
1758 }%
1759 \@afterindenttrue
1760 \vspace{5pt plus 2pt minus 2pt}
1761 \par%
1762 \textsf{\fontseries{sb}\selectfont\TgoTempc}%
1763 \par\nobreak\vspace{0pt plus 1pt}\par%
1764 }%
1765 %
1766 \newsavebox{\TgoBox}
1767 %%%%
1768 %
1769 \NewDocumentCommand\sec@exo{m}{%
1770 \titleformat{\subsection}[block]{\filcenter\color{ColorOne}\sffamily\addfontfeature{RawFeature=-onum}%
1771 \fontseries{b}\selectfont}{\thesubsection}{1em}{\MakeUppercase}%
1772 \titlespacing{\subsection}{0em}{10pt plus 10pt minus 4pt}{8pt plus 5pt minus 3pt}%
1773 \subsection*{#1}
1774 \addcontentsline{toc}{subsection}{\protect\numberline{}#1}
1775 }
1776 %
1777 \NewDocumentCommand\secexo{O{\TgoExercisesSubsectionName}}{%
1778 \sec@exo{#1}
1779 \tgostandardlists
1780 }%
1781 \ExpandArgs{c}\NewDocumentCommand{secexo*}{O{\TgoExercisesSubsectionName}}{%
1782 \sec@exo{#1}
1783 \TgoSmallerSize
1784 \tgostandardlists
1785 }%
1786 \NewDocumentCommand\endsecexo{}
1787 {\renewtgolabels\par\addvspace{10pt plus 3pt minus 2pt}\par}%
1788 %
1789 \ExpandArgs{c}\NewDocumentCommand{endsecexo*}{}
1790 {\renewtgolabels\par\addvspace{10pt plus 3pt minus 2pt}\par}%
1791 %
1792 \NewDocumentCommand\chap@exo{m}{%
1793 \titleformat{\section}[block]{\filcenter\color{ColorOne}\sffamily\addfontfeature{RawFeature=-onum}%
1794 \fontseries{b}\selectfont\large}{\thesection}{1em}{\MakeUppercase}%
1795 \tgostandardlists
1796 \titlespacing{\section}{0em}{18pt plus 10pt minus 4pt}{8pt plus 5pt minus 3pt}%
1797 \section*{#1}
1798 \addcontentsline{toc}{section}{\protect\numberline{}#1}
1799 }
1800 %
1801 \NewDocumentCommand\chapexo{O{\TgoExercisesSectionName}}{%
1802 \chap@exo{#1}
1803 }%
1804 \ExpandArgs{c}\NewDocumentCommand{chapexo*}{O{\TgoExercisesSectionName}}{%
1805 \chap@exo{#1}
1806 \TgoSmallerSize
1807 }%
1808 \NewDocumentCommand\endchapexo{}
1809 {\renewlabelitems\par\addvspace{18pt plus 3pt minus 2pt}\par}%
1810 %
1811 \ExpandArgs{c}\NewDocumentCommand{endchapexo*}{}
1812 {\renewlabelitems\par\addvspace{18pt plus 3pt minus 2pt}\par}%
1813 %%%%
1814 %%
1815 \NewDocumentEnvironment{example}{O{\TgoExampleName}}{%
1816 \par\addvspace{6pt plus 3pt minus 2pt}%
1817 {\sffamily\itshape #1}\par\nobreak%
1818 \@afterheading}%
1819 {\par\addvspace{6pt plus 3pt minus 2pt}\par}
1820 %%%
1821 \NewDocumentEnvironment{remark}{O{\TgoRemarkName}}{%
1822 \par\addvspace{6pt plus 3pt minus 2pt}%
1823 {\sffamily\itshape #1. \textemdash~}\ignorespaces}%
1824 {\par\addvspace{6pt plus 3pt minus 2pt}}
1825 %%%
1826 %%%
1827 \NewDocumentEnvironment{alert}{O{\caution}}{%
1828 \par\addvspace{6pt plus 3pt minus 2pt}\noindent%
1829 {\color{ColorOne}\Large #1}\hspace{1ex}\ignorespaces}%
1830 {\par\addvspace{6pt plus 3pt minus 2pt}}
1831 %
1832 %%
1833 \NewDocumentCommand\newstatement{s m m m o}{%
1834 \setlength\TgoStatementParindent{\parindent}
1835 \ExpandArgs{c}\NewDocumentCommand{#2}{d<> o}%
1836 {% beginning env commands
1837 \refstepcounter{#3}
1838 \IfBooleanTF{#1}
1839 {%
1840 \renewcommand\TgoTempa{#3}
1841 \renewcommand\TgoTempb{subsection}
1842 \ifx\TgoTempa\TgoTempb
1843 \ifTgoTitleIndentZero
1844 \renewcommand\TgoStatementIndent{\noindent}
1845 \setlength\TgoStatementParindent{0em}
1846 \fi
1847 \renewcommand\TgoStatementNumberPrefix{\large\fontseries{sb}\selectfont%
1848 \UseName{the#3}\hspace{1em}}%
1849 \else
1850 \renewcommand\TgoTempb{subsubsection}
1851 \ifx\TgoTempa\TgoTempb
1852 \ifTgoTitleIndentZero
1853 \renewcommand\TgoStatementIndent{\noindent}
1854 \setlength\TgoStatementParindent{0em}
1855 \fi
1856 \fi
1857 \renewcommand\TgoStatementNumberPrefix{\fontseries{sb}\selectfont%
1858 \UseName{the#3}\hspace{1em}}%
1859 \fi
1860 \renewcommand\TgoStatementNumberSuffix{}%
1861 }
1862 {
1863 \renewcommand\TgoStatementNumberSuffix{~\UseName{the#3}}%
1864 \renewcommand\TgoStatementNumberPrefix{}%
1865 }
1866 \IfValueTF{##2}%
1867 {%
1868 \renewcommand\TgoStatementSuffix{~{\normalshape(##2)}}%
1869 }%
1870 {%
1871 \renewcommand\TgoStatementSuffix{}%
1872 }%
1873 \renewcommand\TgoStatementName{#4}
1874 \IfValueT{##1}{%
1875 \renewcommand\TgoStatementName{##1}
1876 }
1877 \par%
1878 \addvspace{8pt plus 3pt minus 2pt}%
1879 \begin{lrbox}{\TgoBox}%
1880 \par%
1881 %\begin{minipage}{\linewidth-\fboxsep-\TgoStatementParindent}\IfValueT{#5}{#5}%
1882 \begin{minipage}{\linewidth-\TgoStatementParindent}\IfValueT{#5}{#5}%
1883 }%
1884 \ExpandArgs{c}\NewDocumentCommand{end#2}{}
1885 {% end env commands
1886 \end{minipage}\end{lrbox}
1887 \TgoStatementIndent\parbox{\linewidth-\TgoStatementParindent}{
1888 {\color{ColorOne}\sffamily\fontseries{m}\selectfont\scshape\TgoStatementNameOffset%
1889 \TgoStatementNumberPrefix\fontseries{sb}\selectfont\TgoStatementName%
1890 \TgoStatementNumberSuffix\TgoStatementSuffix\par\nobreak}%
1891 \vspace{2pt}\par%
1892 \addtolength\leftskip{-\fboxsep}
1893 \addtolength\rightskip{-\fboxsep}
1894 \colorbox{ColorTwo}{%
1895 \usebox{\TgoBox}}}%
1896 \par\addvspace{6pt plus 3pt minus 2pt}\par%
1897 }%
1898 \ExpandArgs{c}\NewDocumentCommand{#2*}{d<> o}%
1899 {% beginning env commands
1900 \IfValueTF{##2}%
1901 {%
1902 \renewcommand\TgoStatementSuffix{~{\normalshape(##2)}}%
1903 }%
1904 {%
1905 \renewcommand\TgoStatementSuffix{}%
1906 }%
1907 \renewcommand\TgoStatementName{#4}
1908 \IfValueT{##1}{%
1909 \renewcommand\TgoStatementName{##1}
1910 }
1911 \par%
1912 \addvspace{8pt plus 3pt minus 2pt}%
1913 \begin{lrbox}{\TgoBox}%
1914 \par%
1915 %\begin{minipage}{\linewidth-\fboxsep-\TgoStatementParindent}\IfValueT{#5}{#5}%
1916 \begin{minipage}{\linewidth-\TgoStatementParindent}\IfValueT{#5}{#5}
1917 }%
1918 \ExpandArgs{c}\NewDocumentCommand{end#2*}{}
1919 {% end env commands
1920 \end{minipage}\end{lrbox}
1921 \TgoStatementIndent\parbox{\linewidth-\TgoStatementParindent}{
1922 {\color{ColorOne}\sffamily\fontseries{m}\selectfont\scshape\TgoStatementNameOffset%
1923 \fontseries{sb}\selectfont\TgoStatementName\TgoStatementSuffix\par\nobreak}%
1924 \vspace{2pt}\par%
1925 \addtolength\leftskip{-\fboxsep}
1926 \addtolength\rightskip{-\fboxsep}
1927 \colorbox{ColorTwo}{%
1928 \usebox{\TgoBox}}}%
1929 \par\addvspace{6pt plus 3pt minus 2pt}\par%
1930 }%
1931 }%%%%
1932 %%%%%%%%%%%%
1933 %%%%%%%%%%%%%
1934 %%%%%%%%%%%%
1935 \NewDocumentCommand\renewstatement{s m m m o}{%
1936 \setlength\TgoStatementParindent{\parindent}
1937 \ExpandArgs{c}\RenewDocumentCommand{#2}{d<> o}%
1938 {% beginning env commands
1939 \refstepcounter{#3}
1940 \IfBooleanTF{#1}
1941 {%
1942 \renewcommand\TgoTempa{#3}
1943 \renewcommand\TgoTempb{subsection}
1944 \ifx\TgoTempa\TgoTempb
1945 \ifTgoTitleIndentZero
1946 \renewcommand\TgoStatementIndent{\noindent}
1947 \setlength\TgoStatementParindent{0em}
1948 \fi
1949 \renewcommand\TgoStatementNumberPrefix{\large\fontseries{sb}\selectfont%
1950 \UseName{the#3}\hspace{1em}}%
1951 \else
1952 \renewcommand\TgoTempb{subsubsection}
1953 \ifx\TgoTempa\TgoTempb
1954 \ifTgoTitleIndentZero
1955 \renewcommand\TgoStatementIndent{\noindent}
1956 \setlength\TgoStatementParindent{0em}
1957 \fi
1958 \fi
1959 \renewcommand\TgoStatementNumberPrefix{\fontseries{sb}\selectfont%
1960 \UseName{the#3}\hspace{1em}}%
1961 \fi
1962 \renewcommand\TgoStatementNumberSuffix{}%
1963 }
1964 {
1965 \renewcommand\TgoStatementNumberSuffix{~\UseName{the#3}}%
1966 \renewcommand\TgoStatementNumberPrefix{}%
1967 }
1968 \IfValueTF{##2}%
1969 {%
1970 \renewcommand\TgoStatementSuffix{~{\normalshape(##2)}}%
1971 }%
1972 {%
1973 \renewcommand\TgoStatementSuffix{}%
1974 }%
1975 \renewcommand\TgoStatementName{#4}
1976 \IfValueT{##1}{%
1977 \renewcommand\TgoStatementName{##1}
1978 }
1979 \par%
1980 \addvspace{8pt plus 3pt minus 2pt}%
1981 \begin{lrbox}{\TgoBox}%
1982 \par%
1983 %\begin{minipage}{\linewidth-\fboxsep-\TgoStatementParindent}\IfValueT{#5}{#5}%
1984 \begin{minipage}{\linewidth-\TgoStatementParindent}\IfValueT{#5}{#5}
1985 }%
1986 \ExpandArgs{c}\RenewDocumentCommand{end#2}{}
1987 {% end env commands
1988 \end{minipage}\end{lrbox}
1989 \TgoStatementIndent\parbox{\linewidth-\TgoStatementParindent}{
1990 {\color{ColorOne}\sffamily\fontseries{m}\selectfont\scshape\TgoStatementNameOffset%
1991 \TgoStatementNumberPrefix\fontseries{sb}\selectfont\TgoStatementName%
1992 \TgoStatementNumberSuffix\TgoStatementSuffix\par\nobreak}%
1993 \vspace{2pt}\par%
1994 \addtolength\leftskip{-\fboxsep}
1995 \addtolength\rightskip{-\fboxsep}
1996 \colorbox{ColorTwo}{%
1997 \usebox{\TgoBox}}}%
1998 \par\addvspace{6pt plus 3pt minus 2pt}\par%
1999 }%
2000 \ExpandArgs{c}\RenewDocumentCommand{#2*}{d<> o}%
2001 {% beginning env commands
2002 \IfValueTF{##2}%
2003 {%
2004 \renewcommand\TgoStatementSuffix{~{\normalshape(##2)}}%
2005 }%
2006 {%
2007 \renewcommand\TgoStatementSuffix{}%
2008 }%
2009 \renewcommand\TgoStatementName{#4}
2010 \IfValueT{##1}{%
2011 \renewcommand\TgoStatementName{##1}
2012 }
2013 \par%
2014 \addvspace{8pt plus 3pt minus 2pt}%
2015 \begin{lrbox}{\TgoBox}%
2016 \par%
2017 %\begin{minipage}{\linewidth-\fboxsep-\TgoStatementParindent}\IfValueT{#5}{#5}%
2018 \begin{minipage}{\linewidth-\TgoStatementParindent}\IfValueT{#5}{#5}
2019 }%
2020 \ExpandArgs{c}\RenewDocumentCommand{end#2*}{}
2021 {% end env commands
2022 \end{minipage}\end{lrbox}
2023 \TgoStatementIndent\parbox{\linewidth-\TgoStatementParindent}{
2024 {\color{ColorOne}\sffamily\fontseries{m}\selectfont\scshape\TgoStatementNameOffset%
2025 \fontseries{sb}\selectfont\TgoStatementName\TgoStatementSuffix\par\nobreak}%
2026 \vspace{2pt}\par%
2027 \addtolength\leftskip{-\fboxsep}
2028 \addtolength\rightskip{-\fboxsep}
2029 \colorbox{ColorTwo}{%
2030 \usebox{\TgoBox}}}%
2031 \par\addvspace{6pt plus 3pt minus 2pt}\par%
2032 }%
2033 }%%%%
2034 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%
2035 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%
2036 \ifTgoNoStatement
2037 \else
2038 \newcounter{thm}
2039 \newstatement{thm}{thm}{\TgoTheoremName}[\itshape]
2040 \newcounter{defin}
2041 \newstatement{defin}{defin}{\TgoDefinitionName}
2042 \newcounter{coro}
2043 \newstatement{coro}{coro}{\TgoCorollaryName}
2044 \newcounter{propo}
2045 \newstatement{propo}{propo}{\TgoPropositionName}[\itshape]
2046 \newcounter{lem}
2047 \newstatement{lem}{lem}{\TgoLemmaName}
2048 \fi
2049 %%%%%%%%%%%%%%%%%%%%%%%%
2050 %%%%%%%%%%%%%%%%%%%%%%%%
2051 %%%%%%%%%%%%%%%%%%%%%%%%
2052 \AtBeginDocument{%
2053 \Umathchardef\Bbbbackslash = 0 0 "E020 \relax
2054 \Umathchardef\varemptyset = 0 0 "E021 \relax
2055 \Umathchardef\mupvarzero = 0 0 "E022 \relax
2056 \Umathchardef\mbfvarzero = 0 0 "E023 \relax
2057 \Umathchardef\mupvarpartial = 0 0 "E030 \relax
2058 \Umathchardef\mupvarvarpi = 0 0 "E032 \relax
2059 \Umathchardef\mbfvarpartial = 0 0 "E040 \relax
2060 \Umathchardef\mbfvarvarrho = 0 0 "E041 \relax
2061 \Umathchardef\mbfvarvarpi = 0 0 "E042 \relax
2062 \Umathchardef\mbfvec = 0 0 "E044 \relax
2063 \Umathchardef\mbfwp = 0 0 "E045 \relax
2064 \Umathchardef\mbfdotlessi = 0 0 "E046 \relax
2065 \Umathchardef\mbfdotlessj = 0 0 "E047 \relax
2066 \Umathchardef\mbfhbar = 0 0 "E048 \relax
2067 \Umathchardef\mbfell = 0 0 "E049 \relax
2068 \Umathchardef\mbftriangleleft = 0 0 "E04E \relax
2069 \Umathchardef\mbftriangleright = 0 0 "E04F \relax
2070 \Umathchardef\mbfitvarpartial = 0 0 "E060 \relax
2071 \Umathchardef\mbfitvarvarrho = 0 0 "E061 \relax
2072 \Umathchardef\mbfitvarvarpi = 0 0 "E062 \relax
2073 \Umathchardef\mbfitwp = 0 0 "E065 \relax
2074 \Umathchardef\mbfimath = 0 0 "E066 \relax
2075 \Umathchardef\mbfjmath = 0 0 "E067 \relax
2076 \Umathchardef\mbfithbar = 0 0 "E068 \relax
2077 \Umathchardef\mbfitell = 0 0 "E069 \relax
2078 \Umathchardef\mitvarpartial = 0 0 "E070 \relax
2079 \Umathchardef\mitvarvarrho = 0 0 "E071 \relax
2080 \Umathchardef\mitvarvarpi = 0 0 "E072 \relax
2081 \Umathchardef\mithbar = 0 0 "E078 \relax
2082 \Umathchardef\mapstochar = 3 0 "E08D \relax
2083 \Umathchardef\lhook = 3 0 "E08E \relax
2084 \Umathchardef\rhook = 3 0 "E08F \relax
2085 \Umathchardef\parallelslant = 3 0 "E090 \relax
2086 \Umathchardef\nparallelslant = 3 0 "E091 \relax
2087 \Umathchardef\shortparallelslant = 3 0 "E092 \relax
2088 \Umathchardef\nshortparallelslant = 3 0 "E093 \relax
2089 \Umathchardef\lesseqslantgtr = 3 0 "E094 \relax
2090 \Umathchardef\gtreqslantless = 3 0 "E095 \relax
2091 \Umathchardef\lesseqqslantgtr = 3 0 "E096 \relax
2092 \Umathchardef\gtreqqslantless = 3 0 "E097 \relax
2093 \Umathchardef\nleqqslant = 3 0 "E098 \relax
2094 \Umathchardef\ngeqqslant = 3 0 "E099 \relax
2095 \Umathchardef\varsymscrE = 0 0 "E07D \relax
2096 \Umathchardef\varsymscrQ = 0 0 "E07E \relax
2097 \Umathchardef\varsymscrT = 0 0 "E07F \relax
2098 \Umathchardef\varsymbfscrE = 0 0 "E06D \relax
2099 \Umathchardef\varsymbfscrQ = 0 0 "E06E \relax
2100 \Umathchardef\varsymbfscrT = 0 0 "E06F \relax
2101 % \widearc and\overrightarc
2102 \newcommand*{\widearc}{\Umathaccent 0 0 "E540 }%
2103 \newcommand*{\overrightarc}{\Umathaccent 0 0 "20D5 }%
2104 % From FourierOrns
2105 \Umathchardef\forbidden = 0 0 "E0B0 \relax
2106 \Umathchardef\beware = 0 0 "E0B1 \relax
2107 \Umathchardef\boom = 0 0 "E0B2 \relax
2108 \Umathchardef\thething = 0 0 "E0B4 \relax
2109 \Umathchardef\xswordsup = 0 0 "E0B5 \relax
2110 \Umathchardef\xswordsdown = 0 0 "E0B6 \relax
2111 % amssymb
2112 \IfPackageLoadedTF{amssymb}%
2113 {\ClassWarning{tango}{%
2114 Tango provides all AMS symbols.\MessageBreak
2115 Loading amssymb.sty is not advisable.\MessageBreak
2116 Reported}%
2117 }%
2118 {% AMS Symbols not referenced in unicode-math-table.tex
2119 % \Umathchardef\<cmd> = <math type> <family> <slot>
2120 % <math type> : \mathord=0 \mathrel=3 ; <family>=0
2121 \Umathchardef\circledR = 0 0 "24C7 \relax
2122 \Umathchardef\circledS = 0 0 "24C8 \relax
2123 \Umathchardef\diagup = 0 0 "27CB \relax
2124 \Umathchardef\diagdown = 0 0 "27CD \relax
2125 \Umathchardef\shortmid = 3 0 "E0A2 \relax
2126 \Umathchardef\shortparallel = 3 0 "E0A3 \relax
2127 \Umathchardef\nshortmid = 3 0 "E0A4 \relax
2128 \Umathchardef\nshortparallel = 3 0 "E0A5 \relax
2129 \Umathchardef\lvertneqq = 3 0 "E0A6 \relax
2130 \Umathchardef\gvertneqq = 3 0 "E0A7 \relax
2131 \Umathchardef\nleqslant = 3 0 "E0A8 \relax
2132 \Umathchardef\ngeqslant = 3 0 "E0A9 \relax
2133 \Umathchardef\nleqq = 3 0 "E0AA \relax
2134 \Umathchardef\ngeqq = 3 0 "E0AB \relax
2135 \Umathchardef\varsubsetneq = 3 0 "E0AC \relax
2136 \Umathchardef\varsupsetneq = 3 0 "E0AD \relax
2137 \Umathchardef\nsubseteqq = 3 0 "E0AE \relax
2138 \Umathchardef\nsupseteqq = 3 0 "E0AF \relax
2139 \Umathchardef\varsubsetneqq = 3 0 "E09C \relax
2140 \Umathchardef\varsupsetneqq = 3 0 "E09D \relax
2141 \Umathchardef\npreceq = 3 0 "E09E \relax
2142 \Umathchardef\nsucceq = 3 0 "E09F \relax
2143 \let\centerdot\cdotp
2144 \let\restriction\upharpoonright
2145 \let\doteqdot\Doteq
2146 \let\doublecup\Cup
2147 \let\doublecap\Cap
2148 \let\llless\lll
2149 \let\gggtr\ggg
2150 \let\circlearrowleft\acwopencirclearrow
2151 \let\circlearrowright\cwopencirclearrow
2152 \let\lozenge\mdlgwhtlozenge
2153 \let\blacklozenge\mdlgblklozenge
2154 \let\square\mdlgwhtsquare
2155 \let\blacksquare\mdlgblksquare
2156 \let\dashleftarrow\leftdasharrow
2157 \let\dashrightarrow\rightdasharrow
2158 \let\ntriangleleft\nvartriangleleft
2159 \let\ntriangleright\nvartriangleright
2160 \let\varpropto\propto
2161 \let\thicksim\sim
2162 \let\thickapprox\approx
2163 \let\smallsmile\smile
2164 \let\smallfrown\frown
2165 }%
2166 % latexsym
2167 \IfPackageLoadedTF{latexsym}%
2168 {\ClassWarning{tango}{%
2169 Tango provides all LaTeX symbols.\MessageBreak
2170 Loading latexsym.sty is not advisable.\MessageBreak
2171 Reported}%
2172 }%
2173 {\let\lhd\vartriangleleft
2174 \let\rhd\vartriangleright
2175 \let\unlhd\trianglelefteq
2176 \let\unrhd\trianglerighteq
2177 \let\leadsto\rightcurvedarrow
2178 \let\Box\lgwhtsquare
2179 \let\Diamond\mdlgwhtdiamond
2180 }%
2181 }
2182 \endinput