-
Notifications
You must be signed in to change notification settings - Fork 4
/
ctustyle3.tex
991 lines (840 loc) · 34.7 KB
/
ctustyle3.tex
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
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
% ctustyle3.tex -- the template for typesetting theses at CTU in Prague
% ---------------------------------------------------------------------
% Petr Olsak Aug. 2020, (derived from ctustyle.tex, Jan. 2015)
\useOpTeX % Use OpTeX format
\_def\ctustyleversion{Jul.2024 beta(x)}
\_message{CTUstyle3: Thesis at Czech Technical University in Prague,
<\ctustyleversion>}
\_namespace{ctustyle}
%%% Declaration commands:
\_newtoks\faculty
\_newtoks\department
\_newtoks\title
\_newtoks\subtitle
\_newtoks\author
\_newtoks\supervisor \_let\supervisors=\supervisor
\_newtoks\date
\_newtoks\studyinfo
\_newtoks\authorinfo
\_newtoks\workinfo
\_newtoks\workname
\_newtoks\pagetwo
\_newtoks\titleEN \_newtoks\titleCZ \_newtoks\titleSK
\_newtoks\subtitleEN \_newtoks\subtitleCZ \_newtoks\subtitleSK
\_newtoks\abstractEN \_newtoks\abstractCZ \_newtoks\abstractSK
\_newtoks\keywordsEN \_newtoks\keywordsCZ \_newtoks\keywordsSK
\_newtoks\thanks
\_newtoks\declaration
\_newtoks\specification
\_def\fnumbering{\_def\.pgnum##11{}\_def\_advancepageno{\_incr\_pageno}}
\_let\.pgnum=\_empty
%%% Mandatory declaration commands
\_def\.ERR#1{\_message{ERROR -- #1.}\_ea\_end}
\_def\.mandatorydecl#1{\if&\the#1&%
\.ERR {the mandatory item \string#1 is undeclared or empty}%
\fi
}
\_def\makefront{%
\_ifx\.mainlanguage\_undefined
\.ERR {The \_string\worktype[<type>/<lang>] command
is missing before \_string\makefront}\_fi
\_everypar={}
\.mandatorydecl\faculty
\.mandatorydecl\title
\.mandatorydecl\author
\.mandatorydecl\date
\_ifnum\.worktypenum>0
\.mandatorydecl\abstractEN
\_def\.tmp{EN}\ifx\.mainlanguage\.tmp
\_if&\_the\abstractSK&\.mandatorydecl\abstractCZ \_fi
\_fi
\_def\.tmp{CZ}\_ifx\.mainlanguage\.tmp \.mandatorydecl\abstractCZ \abstractSK={}\_fi
\_def\.tmp{SK}\_ifx\.mainlanguage\.tmp \.mandatorydecl\abstractSK \abstractCZ={}\_fi
\.mandatorydecl\declaration
\_else \.mandatorydecl\workname
\_fi
\_edef\.tmpa{:F1:F2:F3:F4:F5:F6:F7:F8:MUVS:}
\_edef\.tmpb{\_noexpand\_isinlist\_noexpand\.tmpa{:\_the\faculty:}}\.tmpb
\_iftrue \_else
\.ERR {The \_noexpand\faculty {\_the\faculty}
is not in the list F1, F2, ..., F8, MUVS}%
\_fi
}
\_everypar={\.normaltypingdenied}
\_def\.normaltypingdenied{%
\.ERR{Text outside parameters on line \_the\_inputlineno.
Use \_noexpand\makefront first}\_relax}
%%% Automatically generated multilingual texts:
\_def\.mtdef#1#2#3#4{\_sdef{_mt:#1:en}{#2} \_sdef{_mt:#1:cs}{#3}
\_if$#4$\_slet{_mt:#1:sk}{_mt:#1:cs}
\_else \_sdef{_mt:#1:sk}{#4}
\_fi
}
\.mtdef {ctu} {CZECH TECHNICAL\nl UNIVERSITY\nl IN PRAGUE}
{ČESKÉ VYSOKÉ\nl UČENÍ TECHNICKÉ\nl V PRAZE} {}
% The name of University/Faculty is in Czech even if the document is in Slovak
\.mtdef {F1} {Faculty of Civil Engineering}
{Fakulta stavební} {}
\.mtdef {F2} {Faculty of Mechanical Engineering}
{Fakulta strojní} {}
\.mtdef {F3} {Faculty of Electrical Engineering}
{Fakulta elektrotechnická} {}
\.mtdef {F4} {Faculty of Nuclear Sciences and Physical Engineering}
{Fakulta jaderná a fyzikálně inženýrská} {}
\.mtdef {F5} {Faculty of Architecture}
{Fakulta architektury} {}
\.mtdef {F6} {Faculty of Transportation Sciences}
{Fakulta dopravní} {}
\.mtdef {F7} {Faculty of Biomedical Engineering}
{Fakulta biomedicínského inženýrství} {}
\.mtdef {F8} {Faculty of Information Technology}
{Fakulta informačních technologií} {}
\.mtdef {MUVS} {Masaryk Institute of Advanced Studies}
{Masarykův ústav vyšších studií} {}
\.mtdef {abstract} {Abstract} {Abstrakt} {}
\.mtdef {thanks} {Acknowledgement} {Poděkování} {Poďakovanie}
\.mtdef {declaration} {Declaration} {Prohlášení} {Prehlásenie}
\.mtdef {keywords} {Keywords} {Klíčová slova} {Kľúčové slová}
\.mtdef {trans} {Title translation} {Překlad titulu} {Preklad titulu}
\.mtdef {title} {TITLE} {TITUL} {}
\.mtdef {contents} {Contents} {Obsah} {}
\.mtdef {tables} {Tables} {Tabulky} {Tabuľky}
\.mtdef {figures} {Figures} {Obrázky} {}
\.mtdef {supervisor} {Supervisor} {Vedoucí práce} {Vedúci práce}
\.mtdef {supervisorD} {Supervisor} {Školitel} {Školiteľ}
\.mtdef {bibliography} {References} {Literatura} {Literatúra}
\.mtdef {appendix} {Appendix} {Příloha} {Príloha}
\.mtdef {specifi} {Specification} {Zadání} {Zadanie}
\.mtdef {logoctu} {logo_cvut_en} {logo_CVUT} {logo_CVUT}
\.mtdef {B} {Bachelor's Thesis} {Bakalářská práce} {Bakalárska práca}
\.mtdef {M} {Master's Thesis} {Diplomová práce} {Diplomová práca}
\.mtdef {D} {Ph.D. Thesis} {Disertační práce} {Dizertačná práca}
%%% Worktype
\_def\worktype[#1/#2]{%
\_isdefined{wt:#1}\_iftrue \_csname wt:#1\_endcsname \_relax
\_else \.ERR {Unknown \_noexpand\worktype parameter}\_fi
\_isdefined{wl:#2}\_iftrue \_csname wl:#2\_endcsname \_relax
\_else \.ERR {Unknown \_noexpand\worktype parameter}\_fi
}
\_sdef{wt:O}{\_chardef\.worktypenum=0}
\_sdef{wt:B}{\_chardef\.worktypenum=1}
\_sdef{wt:M}{\_chardef\.worktypenum=2}
\_sdef{wt:D}{\_chardef\.worktypenum=3}
\_sdef{wl:EN}{\_def\.mainlanguage{EN}\_enlang}
\_sdef{wl:CZ}{\_def\.mainlanguage{CZ}\_cslang}
\_sdef{wl:SK}{\_def\.mainlanguage{SK}\_sklang}
%%% Typesetting area
\_margins/2 a4 (32,32,30,30)mm
\_typosize[11/13.6]
\_parindent=4.1mm \_iindent=\_parindent
\_headlinedist=27pt
\_footlinedist=30pt
\_emergencystretch=2em
%%% Fonts
\_fontfam[Technika]
\_fontfam[LMfonts]
\_let\bf=\_undefined \_let\bi=\_undefined % newly defined variant selectors
\_famvardef \bf {\.Technikascaled\_bf}
\_addto\bf {\_inmath{\_bsansvariables \_bsansgreek \_bsansdigits}}
\_famvardef \bi {\.Technikascaled\_bi}
\_addto\bi {\_inmath{\_bisansvariables \_bisansgreek \_bsansdigits}}
\_famvardef \ssr {\.Technikascaled\.book\_rm}
\_famvardef \ssi {\.Technikascaled\.book\_it}
\_famvardef \sc {\.caps\_rm}
\_famvardef \sbf {\.Technikascaled\_rm}
\_famvardef \sbi {\.Technikascaled\_it}
\_def\.Technikascaled{\.Technika \_setfontsize{mag.92}\_let\.Technikascaled=\.Technika}
\_nsprivate \book \caps \sc \Technika \bf \bi \ssr \ssi ;
\_fontdef \sevenss {\_setfontsize{mag.65}\.Technika\.book\_rm}
\_nsprivate \sevenss ;
\_let\serifbf = \_bf \_let\serifbi = \_bi
\_def\textit#1{{\_em#1}} \_def\textsc#1{{\.sc#1}}
\_protected\_def \.boldify {%
\_let\it =\.bi \_let\rm =\.bf \_let\_rm=\_bf \_let\_it=\_bi
\_let\_normalmath=\_boldmath
\.bf
\_let \.Technikascaled =\.Technika
\_let\LaTeX = \.bLaTeX
}
\_protected\_def\.bLaTeX{\_tmpdim=.42ex L\_kern-.18em \_kern \_slantcorr
\_raise \_tmpdim \_hbox{\_thefontscale[710]A}%
\_kern-.06em \_kern-\_slantcorr \_TeX}
\_def\.chapfont{\_scalemain\_typoscale[\_magstep3/\_magstep3]\.boldify}
\_def\.secfont{\_scalemain\_typoscale[\_magstep2/\_magstep2]\.boldify}
\_def\.seccfont{\_scalemain\_typoscale[\_magstep1/\_magstep1]\.boldify}
%%% Colors
\_def\Blue{\_setcmykcolor{1 .43 0 0}}
\_def\liBlue{\_setcmykcolor{.2 .08 0 0}}
\_def\liGrey{\_setcmykcolor{0 0 0 0.13}}
\_let\.nBlue=\Blue
\_let\locc=\relax
\_def\blackwhite{\_let\Blue=\Grey \_let\.nBlue=\Black \_let\Red=\Grey \_let\liBlue=\liGrey}
\_let\.trysavetoner=\_relax
\_def\savetoner{\_def\.trysavetoner{%
\_ifx\.drafttext\_empty
\_message{WARNING: final (not \_string\draft) version,
\_noexpand\savetoner ignored}
\_else
\_let\liBlue=\White
\_fi
}}
\_hyperlinks{\Black}{\Black}
\_def\_tocborder{1 .8 0}
\_let\_pgborder\_tocborder
\_let\_citeborder\_tocborder
\_let\_refborder\_tocborder
\_let\_urlborder\_tocborder
%%% Draft
\_newcount\.hours
\_newcount\.minutes
\_def\.drafttext{}
\_def\draft{\_showlabels
\.setminutes
\_def\.drafttext{\_vbox to0pt{\_vss \_llap{
\Grey \.bf\_thefontsize[11] Draft: \_the\_day. \_the\_month.
\_the\_year\_enspace (\_the\.hours:\.Othe\.minutes)\Black}}}}
\_def\.setminutes{%
\.minutes=\_directlua{tex.sprint(\_the\_time\_pcent 60)}\_relax
\.hours=\_directlua{tex.sprint(math.floor(\_the\_time/60))}\_relax
}
\_def\.Othe#1{\_ifnum#1<10 0\_fi\_the#1}
\_def\linespacing=#1#2 {\_def\.thelinespacing{#1#2}}
\linespacing=1
\_def\.setlinespacing{%
\_ifdim\.thelinespacing pt=1pt \_else
\_ifx\.drafttext\_empty
\_message{WARNING: final (not \_string\draft) version,
\_noexpand\linespacing ignored}
\_else
\_baselineskip=\.thelinespacing\_baselineskip
\_fi
\_fi
}
%%% PDF info data
\_def\.pdfinfodata{%
\_def\.infolist{}%
\_def\.addinfo##1##2{\_pdfunidef\.tmpb{##2}\_edef\.infolist{\.infolist ##1\.tmpb}}%
\_ifx\_hexprint\_undefined
\_def\.addinfo##1##2{\_pdfunidef\.tmpb{##2}\_edef\.infolist{\.infolist ##1(\.tmpb)}}%
\_fi
\.addinfo{/Author}{\_the\author}%
\.addinfo{/Creator(OpTeX + CTUstyle)/Title}{\_the\title}%
\.addinfo{/Subject}{\_ifcase\.worktypenum
\_the\workname \_or \_mtext{B}\_or \_mtext{M}\_or \_mtext{D}\_fi}%
\.addinfo{/Keywords}{\_the\keywordsEN}%
\_pdfinfo{\.infolist}%
}
\_addto\makefront{\.pdfinfodata}
%%% Title page
\_def\.titlepage{
\_insertoutline{\_mtext{title}}
\_line{\Blue \_vrule height 230mm width 4mm \Black \_hss
\_vbox to230mm{\_advance\_hsize by-8mm \_parindent=0pt
\_picheight=3cm \_picdir={}\.bf
\_inspic{\_mtext{logoctu}.pdf}
\_vskip8mm
\_line{\_hbox{\Blue\.bf\_thefontsize[32] \.printfaculty}\_hss
\_vbox{\_advance\_hsize by-31.5mm
\Black \_mtext{\_the\faculty}\_par
\_the\department}}
\_vskip5mm
\_ifcase\.worktypenum
\_the\workname \_or \_mtext{B}\_or \_mtext{M}\_or \_mtext{D}\_fi
\_vskip35mm
\_rightskip=0pt plus1fil
{\_typosize[25/30]\.boldify\.nBlue \_the\title \_par}
\_if&\_the\subtitle&\_else \_smallskip \_fi
{\_typosize[15/23]\.boldify\.nBlue \_the\subtitle \_par}
\_vskip15mm
{\.bf\_thefontsize[15]\Black \_the\author \_par}
\_the\studyinfo \_par
\_the\authorinfo \_par
\_vss
\_the\date\_par
\_the\workinfo\_par
\_if&\_the\supervisor&\_else
\_ifnum\.worktypenum=3 \_mtext{supervisorD}%
\_else \_mtext{supervisor}\_fi: \_the\supervisor\_par\_fi
\_kern-\_prevdepth \_kern1pt
}}}
\_addto\makefront{%
\_bgroup \_hbadness=4000
\.pgnum\_pageno=-1
\_footline={\_hss\.drafttext} \.titlepage \_vfil\_break
}
\_def\.printfaculty{\_edef\.tmpa{\_the\faculty}\_def\.tmpb{MUVS}%
\_ifx\.tmpa\.tmpb \_thefontsize[28] MÚVS\_else \_the\faculty \_fi}
%%% Page Two
\_def\.twosidepagetwo{\_null\_vskip0pt plus1fil {\_parindent=0pt \_the\pagetwo\_endgraf}}
\_def\.onesidepagetwo{\_if&\_the\pagetwo&\_else\.twosidepagetwo\_fi}
\_let\.printpagetwo=\.twosidepagetwo
\_addto\makefront{\.printpagetwo \_endgraf\_break}
%%% Specification page
\_def\.specifipage{\_if&\_the\specification&\_else
\_insertoutline{\_mtext{specifi}}
\_the\_ea\specification\_space \nextoddpage \_fi}
\_addto\makefront{\.specifipage}
%%% Common front page
\_newbox\.leftbox \_newbox\.rightbox
\_newdimen\.frontht \.frontht=220mm
\_def\.sethsizefront{\_advance\_hsize by-12mm \_divide\_hsize by2
\_emergencystretch=2em \_righthyphenmin=2 \_hbadness=5000 \_penalty0 }
\_def\.frontpage [#1/#2]{
\_hrule height0pt \_vskip0pt plus 1filll
\_line{\.bf\_thefontsize[19]
\Blue\_hss\_llap{#1}
\_def\.tmp{}\_if$#1$\_else\_def\.tmp{/}\_fi \_if$#2$\_else\_def\.tmp{/}\_fi
\_hbox to10mm{\_hss\.tmp\_hss}\_rlap{#2}\Black\_hss}
\_nobreak\_medskip
\_line{\.sethsizefront
\_vtop to\.frontht{\_hrule width\_hsize height0pt \_unvbox\.leftbox \_vfil}\_hss
\Blue\_vrule height-2pt depth\.frontht width4mm\Black\_hss
\_vtop to\.frontht{\_hrule width\_hsize height0pt \_unvbox\.rightbox \_vfil}}
}
%%% Declaration page
\_splittopskip=12pt plus20pt
\_def\.prepbox#1{\_setbox0=\_vsplit #1to0pt \_relax}
\_def\.declpage{
\_setbox\.leftbox=\_vbox{\.sethsizefront \_the\thanks}
\.prepbox\.leftbox
\_setbox\.rightbox=\_vbox{\.sethsizefront \_the\declaration}
\.prepbox\.rightbox
\_ifvoid\.leftbox \_ifvoid\.rightbox \_let\.declpage=\_relax \_fi\_fi
\_ifx\.declpage\_relax \_else
\_insertoutline{\_if&\_the\thanks&\_else\_mtext{thanks}\_fi/\_mtext{declaration}}
\.frontpage[\_if&\_the\thanks&\_else\_mtext{thanks}\_fi/\_mtext{declaration}]
\_fi
}
\_addto\makefront{%
\_footline={\_hss\.ssr\_thefontsize[11]%
\_ifx\.pgnum\_empty \_ea\_romannumeral\_ea-\_else \_ea\_the \_fi \_pageno\_hss\.drafttext}
\.declpage \_vfil\_break
}
\_def\signature {\_vskip2cm \_indent\.tocdotfill\_null}
\_def\.tocdotfill{\_leaders\_hbox to.4em{\_hss.\_hss}\_hskip 1em plus1fill\_relax}
%%% Abstract page
\_def\.abstractpage{
\_chardef\.orilang=\_language
\_setbox\.leftbox=\_vbox{\.sethsizefront
\_if&\_the\abstractCZ&\_sklang \_the\abstractSK \_par
\_let\.keywords=\keywordsSK
\_let\.titleL=\titleSK
\_let\.subtitleL=\subtitleSK
\_else \_cslang \_the\abstractCZ \_par
\_let\.keywords=\keywordsCZ
\_let\.titleL=\titleCZ
\_let\.subtitleL=\subtitleCZ
\_fi
\_if&\_the\.keywords&\_else{\.bf\_mtext{keywords}:} \_the\.keywords\_par\_fi
\_ifnum\.orilang=\_language \_else
\_if&\_the\.titleL&\_else{\.bf\_mtext{trans}:} \_the\.titleL
\_if&\_the\.subtitleL&\_else \_space(\_the\.subtitleL)\_fi\_fi\_fi
\_vfil}
\_setbox\.rightbox=\_vbox{\.sethsizefront
\_enlang \_the\abstractEN \_par
\_if&\_the\keywordsEN&\_else{\.bf\_mtext{keywords}:} \_the\keywordsEN\_par\_fi
\_ifnum\.orilang=\_language \_else
\_if&\_the\titleEN&\_else{\.bf\_mtext{trans}:} \_the\titleEN
\_if&\_the\subtitleEN&\_else \_space(\_the\subtitleEN)\_fi\_fi\_fi
\_vfil}
\.prepbox\.leftbox \.prepbox\.rightbox
\_ifvoid\.leftbox \_ifvoid\.rightbox \_let\.abstractpage=\_relax \_fi\_fi
\_ifx\.abstractpage\_relax \_else
\_setbox0=\_vsplit\.leftbox to\.frontht
\_ifvoid\.leftbox
\_setbox\.leftbox=\_box0
\_insertoutline{Abstrakt/Abstract}
\.frontpage[Abstrakt/Abstract]
\_else
\_setbox1=\_box\.leftbox % long abstracts, two pages for abstracts
\_setbox\.leftbox=\_box0
\_setbox0=\_box\.rightbox
\_setbox\.rightbox=\_box1
\_insertoutline{Abstrakt}
\.frontpage[Abstrakt/]
\_setbox\.leftbox=\_vsplit0 to\.frontht
\_setbox\.rightbox=\_box0
\_insertoutline{Abstract}
\.frontpage[Abstract/]
\_fi\_fi
}
\_addto\makefront{%
\.abstractpage \_vfil\_break
}
%%% Contents
\_newbox\.tocbox
\_everytocline={\_advance\_rightskip by0pt plus1em}
\_sdef{_tocl:1}#1#2#3{\_nofirst\_smallskip
\.bf\_llaptoclink{#1}{#2}\_nobreak\_hfill\_pgn{#3}\_tocpar}
\_def\.tocpages{
\_setbox\.tocbox=\_vbox{\.sethsizefront \_parskip=0pt \_iindent=7mm \_maketoc\_vfil}
\.prepbox\.tocbox
\_setbox\.rightbox=\_vsplit\.tocbox to\.frontht
\_ifvoid\.tocbox
\_insertoutline{\_mtext{contents}}
\_ifodd\_pageno
\.frontpage[/\_mtext{contents}]
\_else
\_setbox\.leftbox=\_box\.rightbox
\.frontpage[\_mtext{contents}/]
\_fi
\_else
\_setbox\.leftbox=\_box\.rightbox
\_setbox\.rightbox=\_vsplit\.tocbox to\.frontht
\_insertoutline{\_mtext{contents}}
\.frontpage[\_mtext{contents}/]
\_fi
\_loop \_ifvoid\.tocbox \_let\.tmp=\_relax
\_else \_vfil\_break
\_setbox\.leftbox=\_vsplit\.tocbox to\.frontht
\_setbox\.rightbox=\_vsplit\.tocbox to\.frontht
\.frontpage[/]\_let\.tmp=\_span
\_fi
\_ifx\.tmp\_span \_repeat
}
\_addto\makefront{%
\.tocpages \_vfil\_break
}
%%% Tables / Figures
\_newbox\.tofbox \_newbox\.totbox
\_refdecl{%
\_def\.totlist{} \_def\.toflist{}^^J
\_def\.Xtab#1#2#3{\_addto\.totlist{\.totline{#1}{#2}{#3}}}^^J
\_def\.Xfig#1#2#3{\_addto\.toflist{\.tofline{#1}{#2}{#3}}}
}
\_ifx\.totlist\_undefined \_def\.totlist{}\_fi
\_ifx\.toflist\_undefined \_def\.toflist{}\_fi
\_def\.tofpages{
\_setbox\.tofbox=\_vbox{\.sethsizefront \_parskip=0pt \_iindent=9mm \.toflist\_vfil}
\_setbox\.totbox=\_vbox{\.sethsizefront \_parskip=0pt \_iindent=9mm \.totlist\_vfil}
\.prepbox\.tofbox \.prepbox\.totbox
\_let\.tmp=\_do
\_ifvoid\.tofbox \_ifvoid\.totbox \_let\.tmp=\_relax \_fi\_fi
\_ifx\.tmp\_do
\_insertoutline{\_ifvoid\.totbox\_else \_mtext{tables}\_fi/%
\_ifvoid\.tofbox\_else \_mtext{figures}\_fi}
\_setbox\.leftbox=\_vsplit\.totbox to\.frontht
\_setbox\.rightbox=\_vsplit\.tofbox to\.frontht
\.frontpage[\_ifdim\_wd\.leftbox=0pt \_else\_mtext{tables}\_fi/%
\_ifdim\_wd\.rightbox=0pt \_else\_mtext{figures}\_fi]
\_loop \_let\.tmp=\_relax
\_ifvoid\.totbox \_else \_setbox\.leftbox=\_vsplit\.totbox to\.frontht
\_let\.tmp=\_do \_fi
\_ifvoid\.tofbox \_else \_setbox\.rightbox=\_vsplit\.tofbox to\.frontht
\_let\.tmp=\_do \_fi
\_ifx\.tmp\_do \_vfil\_break \.frontpage[/] \_repeat
\_fi
}
\_def\.totfpages{
\_setbox\.totbox=\_vbox{\.sethsizefront \_parskip=0pt \_iindent=9mm
\.totlist
\_bigskip {\Blue \_hrule height 3pt}\_bigskip
\.toflist \_vfill}
\.prepbox\.totbox
\_let\.tmp=\_do
\_ifx\.toflist\_empty \_ifx\.totlist\_empty \_let\.tmp=\_relax \_fi\_fi
\_ifx\.tmp\_do
\_insertoutline{\_ifx\.totlist\_empty \_else \_mtext{tables}\_fi/%
\_ifx\.toflist\_empty \_else \_mtext{figures}\_fi}
\_setbox\.leftbox=\_vsplit\.totbox to\.frontht
\_setbox\.rightbox=\_vsplit\.totbox to\.frontht
\.frontpage[\_ifx\.totlist\_empty \_else\_mtext{tables}\_fi/%
\_ifx\.toflist\_empty \_else\_mtext{figures}\_fi]
\_loop \_let\.tmp=\_relax
\_ifvoid\.totbox \_else \_setbox\.leftbox=\_vsplit\.totbox to\.frontht
\_let\.tmp=\_do \_fi
\_ifvoid\.totbox \_else \_setbox\.rightbox=\_vsplit\.totbox to\.frontht \_fi
\_ifx\.tmp\_do \_vfil\_break \.frontpage[/] \_repeat
\_fi
}
\_addto\makefront{%
\.tofpages \_vfil\_break
}
%%% Typessetting of the document:
\_addto\makefront{%
\_footline={\_hss\.drafttext}
\_ifodd\_pageno\_else \_ifx\.printpagetwo\.twosidepagetwo \_null\_vfil\_break \_fi\_fi
\_pageno=-\_pageno \_advance\_pageno by-1 % page ranges (roman/decimal numeral)
\_ifx\.pgnum\_empty \_pdfcatalog{/PageLabels<</Nums[0<</S/r>>\_the\_pageno<</S/D>>]>>}\_fi
\_egroup
\.setlinespacing
\.trysavetoner
\.pgnum\_pageno=1
\_footline={\_hss\.ssr\_thefontsize[11]\_the\_pageno\_hss\.drafttext}
\_outlines{0}\_pdfcatalog{/PageMode /UseOutlines}
}
%%% Chapter, section
\_def\_printchap#1{\_vfill\_supereject \.myvakat \_vglue1cm
\_headline={\_hfil\.nextheadline}
\_xdef\.headchap{\_ifnonum\_else\_thechapnum.\ \_fi#1}
\_mark{}\_nobreak
\.begitemstest\chap
\_line{\Blue\_vrule height 11mm width4mm depth10mm
\_hss\_vtop{\_parskip=0pt \_advance\_hsize by-8mm
\.chapfont \_noindent
\Black \_ifnonum\_else\_mtext{chap} \_fi
{\.bf\_thefontsize[30]\_printrefnum[@]}\_par\_nobreak
\_noindent\.nBlue #1\_rightskip=0pt plus1fil \_strut\_nbpar}}%
\_nobreak\_vskip-.5\_parskip
\_belowtitle{\_bigskip}
\_firstnoindent
}
\_def\_printsec#1{\_par \_abovetitle{\_goodbreak}
\_bigskip\_medskip\_vskip.5\_parskip
\.begitemstest\sec
\_line{\Blue\_vrule height 6mm width4mm depth1mm
\_hss\_vtop{\_advance\_hsize by-8mm
\.secfont \_noindent \Black\_printrefnum[@\_quad]%
\.nBlue#1\_rightskip=0pt plus1fil \_strut\_nbpar}}%
\_insertmark{#1}%
\_nobreak\_vskip-.5\_parskip
\_belowtitle{\_medskip}
\_firstnoindent
}
\_let\.printsecc=\_printsecc
\_def\_printsecc#1{\_par \_abovetitle{\_goodbreak}
\_smallskip\_medskip\_vskip.5\_parskip
\.begitemstest\secc
\_line{\Blue\_vrule height 3.5mm width4mm depth.3mm\Black
\_hss\_vtop{\_advance\_hsize by-8mm
\.seccfont \_noindent \_printrefnum[@\_quad]%
\.nBlue#1\_rightskip=0pt plus1fil \_strut\_nbpar\_kern-4.5pt}}%
\_nobreak\_vskip-.5\_parskip\_smallskip\_vskip2pt\_relax
\_firstnoindent
}
\_def\.nextheadline{\_global\_headline={\.printheadline}}
\_def\.printheadline{\.ssi\_thefontsize[10]\_ifodd\_pageno
\_hskip-3.7cm\.tecky\_if&\_firstmark&\_else\ \_fi\Grey\_firstmark\Black
\_else\Grey\.headchap\ \.tecky\_hskip-3.7cm\_fi}
\_def\onesideprinting{\_def\.printheadline{\.ssi\_thefontsize[10]
\Grey\_ea\.ignoretospace\.headchap\ \.tecky
\_if&\_firstmark&\_else\ \_fi\Grey\_firstmark\Black}
\_def\nextoddpage{\_vfil\_supereject}\_shiftoffset=0pt
\_let\.printpagetwo=\.onesidepagetwo
}
\_def\.ignoretospace#1\ {}
{\.bf\_thefontsize[25] \_global\_ea\_let\_ea\.bigdotfont\_the\_font}
\_def\.tecky{\liBlue\_xleaders\_hbox to10.5pt{\.bigdotfont\_hss.\_hss}\_hfil\Black}
\_def\.begitemstest#1{\_ifnum\_catcode`\*=13
\_message{WARNING: \_string#1 used in \_string\begitems...\_noexpand\enditems
environment (line: \_the\_inputlineno)}\_fi}
%%% Appendicies
\_newcount\.appnum
\_def\.appletter{\_ifcase\.appnum ?\_or A\_or B\_or C\_or D\_or E\_or F\_or G\_or H\_or
I\_or J\_or K\_or L\_or M\_or N\_or O\_or P\_or Q\_or R\_or S\_or T\_or U\_or V\_or
W\_or X\_or Y\_or Z\_else ?\_fi}
\_optdef\app[]{\_istoksempty\_opt\_iffalse \_label[\_the\_opt]\_fi \.inapp}
\_eoldef\.inapp#1{\_sectionlevel=1
\_global\_advance\.appnum by1
\_def \_savedtitle {#1}% saved to .ref file
\_ifx\chap\.nochap \_else \nextoddpage \_global\_let\chap=\.nochap \_fi
\_secnum=0 \_seccnum=0 \_relax
\_xdef\_therefnum{\.appletter}\_global\_let\_thechapnum=\_therefnum
\_gdef\_thesecnum{\.appletter.\_the\_secnum}
\_gdef\_theseccnum{\.appletter.\_the\_secnum.\_the\_seccnum}
\.printapp{#1}
\_resetnonumnotoc
}
\_eoldef\.nochap#1{\_message{CTUstyle WARNING: \_noexpand\chap inside
Appendices is ignored.}}
\_def\.printapp#1{\_vfill\_supereject \.myvakat \_vglue1cm
\_headline={\_hfil\.nextheadline}
\_xdef\.headchap{\.appletter\ #1}
\_mark{}\_nobreak
\.begitemstest\app
\_line{\Blue\_vrule height 11mm width4mm depth10mm\Black
\_hss\_vtop{\_parskip=0pt\_advance\_hsize by-8mm
\.chapfont \_noindent
\_mtext{appendix} {\.bf\_thefontsize[30]\_relax\_printrefnum[@]}\_par\_nobreak
\_noindent\.nBlue #1\_strut\_nbpar}}%
\_nobreak\_bigskip
\_firstnoindent
}
\_def\bibchap{\_nonum \_inchap{\_mtext{bibliography}}}
%%% Captions
\_def\_thetnum{\_thechapnum.\_the\_tnum}
\_def\_thefnum{\_thechapnum.\_the\_fnum}
\_everycaptiont={%
\_ifx\.clabeltext\_undefined \_else
\_ea\_ifx\_tmpa t\_edef\.tmp{\_noexpand\_wref\_noexpand\.Xtab
{{\_lastlabel}{\_thetnum}{\.clabeltext}}}\.tmp
\_else \_edef\.tmp{\_noexpand\_wref\_noexpand\.Xfig
{{\_lastlabel}{\_thefnum}{\.clabeltext}}}\.tmp
\_fi\_fi
\_global\_let\.clabeltext=\_undefined
\_vskip-\_parskip
}
\_everycaptionf=\_everycaptiont
\_def \_printcaptiont {\_typosize[10/12]
\_noindent \_wlabel\_thecapnum {\.bf\_thecaptitle~\_thecapnum.}\_enspace
\_narrowlastlinecentered\_iindent
}
\_let \_printcaptionf = \_printcaptiont % caption of figures = caption of tables
\_def\clabel[#1]#2{\_xdef\.clabeltext{\_detokenize{#2}}\_label[#1]}
\_def\.tofline#1#2#3{{\_leftskip=\_iindent \_rightskip=\_iindent plus1em
\_noindent\_llap{\.bf\_ref[#1]\_enspace}%
{#3\_unskip}\_nobreak\.tocdotfill\_pgref[#1]\_nobreak\_hskip-\_iindent\_null\_par}}
\_let\.totline=\.tofline
%%% Numbering concept
\addto \_chapx {\_tnum=0 \_fnum=0 \_dnum=0 \_resetABCDE }
\def \_secx {\_seccx \_seccnum=0 }
\_def \_printnumberedpar #1#2{\_par
\_noindent\_wlabel #1% \bf instead \_bf:
{\bf #2 #1\_istoksempty\_opt\_iffalse \_space \_the\_opt \_fi.}\_space
\_ignorespaces
}
\_def\_theAnum {\_thechapnum.\_the\_counterA}
\_def\_theBnum {\_thechapnum.\_the\_counterB}
\_def\_theCnum {\_thechapnum.\_the\_counterC}
\_def\_theDnum {\_thechapnum.\_the\_counterD}
\_def\_theEnum {\_thechapnum.\_the\_counterE}
%%% Blue verbatim
\everytt={\typosize[10.5/13.6]}
\_let\.printverblineori=\_printverbline
\_def\_printverbline#1{\penalty \_ttpenalty \noindent
\rlap{\vbox to0pt{\vss\liBlue
\hrule width\dimexpr\hsize-\leftskip height10pt depth4pt \kern-4pt}}%
\_printverblinenum \hskip 1em #1 \par
}
\_def\_initverblinenum{}
\_def\_printverblinenum{\_llap
{\Blue \.sevenss \_the\_ttline\_kern.9em}}
%%% Blue centered tables
\_def\ctable#1#2{
\_centerline{\_setbox0=\_table{#1}{#2}%
\_rlap{\liBlue \_tmpdim=\_ht0 \_advance\_tmpdim by3pt
\_ifdim\_dp0>3pt \_dimen0=\_dp0 \_advance\_dimen0 by3pt \_else \_dimen0=5pt\_fi
\_vrule width\_wd0 height\_tmpdim depth\_dimen0\Black}\_box0}\_nobreak\_medskip
}
\_def\cinspic#1 {\_centerline{\_inspic #1 }\_nobreak\_medskip}
\_def\endinsert{\_par\_endinsert}
\_tabiteml={\_kern\_iindent} \_tabitemr={\_kern\_iindent}
%%% Golossary (OPmac trick 0051, 0053, 0054
\_newdimen\.maxglosindent
\_def\.gloslist{}
\_def\glos #1#2{%
\_ea\_isinlist\_ea\.gloslist\_csname;\_detokenize{#1}\_endcsname
\_iftrue \_opwarning{Duplicated glossary item `#1'}%
\_else
\_global\_sdef{;\_detokenize{#1}}{{#1}{#2}}%
\_global\_ea\_addto\_ea\.gloslist\_csname;\_detokenize{#1}\_endcsname
\_fi
}
\_def\makeglos{%
\_ifx\.gloslist\_empty \_opwarning{Gossary data unavailable}%
\_else
\_bgroup
\_ifx \dosorting\_relax \_else \_dosorting \.gloslist \_fi
\_ifdim\.maxglosindent=0pt
\_ifx\.glosindent\_undefined \.maxglosindent=2\_parindent
\_edef\.glosindent{\_the\.maxglosindent}\_fi
\_else \_edef\.glosindent{\_the\.maxglosindent}\_fi
\.maxglosindent=0pt
\_def\.act##1{\_ifx##1\_relax \_else\_ea\.printglos##1\_ea\.act\_fi}
\_ea\.act\.gloslist\_relax
\_immediate\_write\_reffile{\_string\_def\_string\.glosindent{\_the\.maxglosindent}}
\_egroup
\_fi
}
\_def\glosref #1#2{\_if^#2^\_else \.glos{#1}{#2}\_fi
\.makegloslink{#1}\_link[glos:\.tmp]{}{#1}}
\_def\glref #1{\.glosref{#1}{}}
\_let\_glosborder=\_tocborder
\_nsprivate \glosref \glos ;
\_def\.printglos#1#2{%
\_setbox0=\_hbox{#1}\_ifdim\_wd0>\.maxglosindent \.maxglosindent=\_wd0 \_fi
\_noindent \_hangindent=\.glosindent \_advance\_hangindent by2em
\_hbox to\.glosindent{\.makegloslink{#1}\_dest[glos:\.tmp]#1\_hss}%
\_hbox to2em{\_hss\.normalitem\_hss}#2\_par}
\_def\.makegloslink#1{\_edef\.tmpb{\_detokenize{#1}}%
\_def\.tmp{}\_ea\.makegloslinkA\.tmpb\_relax}
\_def\.makegloslinkA#1{\_ifx#1\_relax \_else
\_edef\.tmp{\.tmp\_number`#1.}\_ea\.makegloslinkA\_fi}
%%% Requests for corrections (OPmac trick 0056)
\_newcount\.rfcnum
\_def\.rfclist{}
\_def\.rfcactive#1{\_global\_advance\.rfcnum by1
\_dest[rfc:rfc-\_the\.rfcnum]\_global\_addto\.rfclist{\.rfcitem #1}}
\_def\rfc#1{}
\_def\.rfcitem{\_advance\.rfcnum by1
\_medskip\_noindent\_llap{\_link[rfc:rfc-\_the\.rfcnum]{\Red}{[rfc-\_the\.rfcnum]} }}
\_addto\draft{\_let\rfc=\.rfcactive}
\_def\.makerfc{\_ifx\rfc\.rfcactive
\_vfil\_break {\.secfont \_noindent Requests for correction}\_par
\_bgroup\.rfcnum=0 \.rfclist\_egroup\_fi
\_vfil\_break
}
\_let\_rfcborder=\_tocborder
\_ifx\_aheadto\_undefined
\_long\_def \_aheadto #1#2{\_edef#1{\_unexpanded{#2}\_unexpanded\_ea{#1}}}
\_fi
\_aheadto\_byehook{\.makerfc}
%%% Items
\_def\.normalitem{\Blue{\.bf\_thefontsize[30].\_kern-2pt}\Black\_enspace}
\_defaultitem={\.normalitem}
\_sdef{_item:X}{\_raise.1ex\_hbox{\Blue\.bf\_thefontsize[60].\_kern-4pt}\_enspace}
\_sdef{_item:x}{\_raise.4ex\_hbox{\Blue\.bf\_thefontsize[17].\Black} }
\_sdef{_item:n}{\_the\_itemnum.\_kern.25em }
\_addto\_begitems{\_vskip.5\_parskip \_parskip=0pt\_relax}
\_addto\_enditems{\_vskip-.5\_parskip}
%%% BibItems
\_bibtexhook={%
\_def\preurl{}%
\_parindent=2\_iindent
\_def\url#1{\_unskip\_hfil\_break{\_typosize[10/]\_nobreak\_space\_url{#1}}}
}
\_def\_printbib{\_hangindent=2\_iindent
\_ifx\_citelinkA\_empty \_noindent\_hskip2\_iindent \_llap{[\_the\_bibnum] }%
\_else \_noindent \_fi
}
\_addto\_bibskip{\_ifnum\_bibnum>0 \_vskip-\_parskip \_fi}
%%% Slides:
\_def\slides{\_par
\_def\_fontfam[##1]{}
\_let\_onlyrgb=\_relax
\_slides
\_hoffset=12mm
\_addto\wideformat{\_hoffset=12mm \_advance\_hsize by4mm }
\_everypar={}
\_pgbackground={\hbox to\_pdfpagewidth{\.logobox\_hss\.counterslide}}
\_font\.bigdotfont=[lmsans10-bold] at80pt
\_pdfximage width1.62cm {ctulogo-new.pdf}\_mathchardef\.logopic=\_pdflastximage
\_fnotenumpages
\_def \_printfnotemark {\_ifcase 0\_fnotenum\_or
\*\or\*\*\or\*\*\*\or$^\_mathbox{†}$\or$^\_mathbox{‡}$\or$^\_mathbox{††}$\_fi}
\_def\_textindent##1{\_hskip20pt\_llap{##1\_enspace}\_ignorespaces}
\_sdef{_item:X}{\_raise.1ex\_hbox{\Blue\.bigdotfont.\_kern-4pt}\_enspace}
\_sdef{_item:x}{\_raise.3ex\_hbox{\Blue\_fullrectangle{.4em}\Black}\_kern5pt}
\.Technika \_rm
\_def\_titfont{\_typosize[30/39]\_bf}
\_def\_subtitfont{\_typosize[20/30]\_bf\Blue}
\_def\_secfont{\_typoscale[\_magstep2/\_magstep2]\_bf\Blue}
\_def\_seccfont{\_typosize[20/25]\_bf\Blue}
\_let\_ttfont=\_undefined \_famvardef\_ttfont{\_setfontsize{mag1.1}\_tt}
\_public \rm \bf \it \bi ;
\_fontdef\_smallbf{\_setfontsize{at10pt}\_bf}
\_doloadmath \_loadmath {[FiraMath-Regular]}
\_addto\_normalmath{\_loadumathfamily 5 {xitsmath-regular}{} }
\_addto\_boldmath {\_loadumathfamily 5 {xitsmath-bold}{} }
\_addto\frak{\_fam5 }\_addto\cal{\_fam5 }
\_normalmath
\_let\_bsansvariables=\_bfvariables
\_let\_bsansGreek=\_bfGreek
\_let\_bsansgreek=\_bfgreek
\_let\_bsansdigits=\_bfdigits
\_let\_bisansvariables=\_bivariables
\_let\_bisansgreek=\_bigreek
\_def\_printtit ##1{\_vglue 2\_titskip
\_xdef\.titpage{\_the\_pageno}%
\_setbox2=\_vbox{{\_titfont\LightGrey \_noindent \_scantextokens{##1}\_par}}%
\_setbox3=\_vbox{{\_titfont\Blue \_noindent \_scantextokens{##1}\_par}}%
{\_noindent \_puttext 3pt -2pt{\_copy2}%
\_puttext 2pt -1.5pt{\_copy2}%
\_puttext 1pt -1pt{\_box2}}%
\_box3 \_par
\_nobreak\_medskip
}
\_eoldef\_subtit##1{\_vskip0pt{\_subtitfont ##1\_nbpar}}
\_def\.titpage{0}
\_let\_printsecc=\.printseccslides
\_let\_urlborder=\_undefined
\_let\_pgborder=\_undefined
\_hyperlinks\Blue\Blue
\_footline={}
\_everytt={\_typosize[12/15]\_tt \_advance\_hsize by 10mm}
\_let\_printverbline=\.printverblineori
\_protected\_def \LaTeX{\_tmpdim=.42ex L\_kern-.2em \_kern \_slantcorr % slant correction
\_raise \_tmpdim \_hbox{\_thefontscale[710]A}%
\_kern-.1em \_kern-\_slantcorr \_TeX}
\_def\.thispage{0}
\.prepslidepages
\_let\_endslides=\.endslides
}
\_def\.counterslide{%
\_ifnum\_slidelayer=0 \_slidelayer=1 \_fi
\_ifnum\_pageno>\.thispage
\_xdef\.thispage{\_the\_pageno}\_xdef\.maxlayer{\_cs{_p:\.thispage}}\_fi
\_immediate\_wref\_sdef{{_p:\_the\_pageno}{\_the\_slidelayer}}%
\_sxdef{_p:\_the\_pageno}{\_the\_slidelayer}%
\_vtop{\_baselineskip=16pt \_null\.slideslist}%
}
\_def\.prepslidepages{\_openref\_def\.slideslist{}%
\_if?\_lastpage \_else
\_tmpnum=0
\_fornum 1..\_lastpage \_do{%
\_advance\_tmpnum by0\_cs{_p:##1}\_edef\.tmp{\_the\_tmpnum}%
\_addto\.slideslist{\.slidepage{##1}}%
\_ea\_addto\_ea\.slideslist\_ea{\_ea{\.tmp}}%
}%
\_fi
}
\_def\.slidepage#1#2{%
\_hbox{\LightGrey \_ifnum\_pageno=#1 \.printpagenum \Blue \_fi \.pagerectangle{#2}}
}
\_def\.printpagenum{%
\_raise2.4pt\_llap{\_smallbf\_the\_pageno \_ifnum\_slidelayer=0\.maxlayer\_else+\_fi}%
}
\_def\.pagerectangle#1{\_kern-4pt\_let\Blue=\_relax \_let\_ilinkcolor=\_relax
\_ilink[pg:#1]{\.bigdotfont.}\_kern-2pt
}
\_def\.endslides{\_vfil\_break \_decr\_pageno \_edef\_lastpage{\_folio}
\_let\.slideslistA=\.slideslist \.prepslidepages
\_ifx\.slideslistA\.slideslist \_else \_advance \_unresolvedrefs by1 \_fi
\_byehook \_end
}
\_def\.logobox{\_vbox to0pt{
\_hbox{{\Blue\vrule width12pt height46pt}\_kern12pt
\_ifnum\.titpage=\_the\_pageno\_relax \.uniname \_else \_pdfrefximage\.logopic \_fi}
\_ifnum\.titpage=\_the\_pageno\_relax \_kern-1pt{\Blue \_hrule height13.5cm width12pt}\_fi
\_vss
}}
\_def\.uniname{\_kern7pt\_typosize[10/11.3]\_bf
\_picheight=1.62cm \_inspic{\_mtext{logoctu}.pdf}%
\_if^\_the\faculty^\_else \_kern15pt{\_bf\_thefontsize[35]\Blue\.printfaculty}\_kern7pt
\_vbox{\_hbox{\_mtext{\_the\faculty}}
\_if^\_the\department^\_else\_hbox{\_the\department}\_fi}\_fi
}
\_def\.printseccslides#1{\_par
\_abovetitle{\_penalty-400}\_medskip
{\_seccfont \_noindent \_leftskip=0pt plus1fill \_rightskip=\_leftskip #1\_nbpar}%
\_nobreak \_belowtitle{\_smallskip}%
}
%%% Last thinks:
\_def\abbrv[#1]{\_par \_noindent\_llap{#1\_quad}\_ignorespaces}
\_def\urlnote#1{\_fnote{\_url{#1}}}
\_def\nextoddpage{\_vfil\_supereject \.tryvakat}
\_def\.tryvakat{\_ifodd\_pageno \_else \_shipout\_null \_advancepageno \_fi}
\_let\.myvakat=\_relax % by default, chapters 2, 3, ... can start at left pages
\_def\oddchapters{\_let\.myvakat=\.tryvakat} % all chapters start at right pages
\_def\totf{\_let\.tofpages=\.totfpages}
\_let\urllink=\_ulink
\_shortcitations
\_def\dprime{"}
\_activettchar"
\_endnamespace % ctustyle
\_endcode
%%% Versions:
beta(a) Sep.2020 First version CTUstyle3 for OpTeX released
beta(b) Dec.2020 Slides added, little corrections
beta(c) Dec.2020 Shadowed title in slides
beta(d) Jan.2021 \.normalitem in \.printglos, typo corrected
beta(e) Jan.2021 \.clabeltext unexpanded (moe robust)
beta(f) Feb.2021 \_thechapnum in appendixes, bug fix.
beta(g) Feb.2021 \.pdfinfodata re-implemented
beta(h) Apr.2021 \.bLaTeX logo added
beta(i) Apr.2021 \slides: FiraMath corrections added
beta(j) May 2021 \bf, \bi in math mode corrected
beta(k) Jun.2021 \oddchapters added
beta(l) Jul.2021 \_tocl:1 bug fixed (\_nobreak added)
beta(m) Aug.2021 \_clabeltext -> \.clabeltext, bug fixed
beta(n) Jan.2022 colors in slide-titles corrected, \.nochap defined by \eoldef
beta(o) Feb.2022 \.bigdotfont for slides in OTF variant
beta(p) Mar.2022 colors of the slider in slides corrected, bug fix.
beta(q) Apr.2022 \ttline>0 bug fixed.
beta(r) May.2022 \shiftoffset missing: bug fixed.
beta(s) Aug.2022 logoCTU: logotyp added (to comply typo-manual)
beta(t) Feb.2023 \fnumbering added
beta(u) Jul.2023 verbatim frames respects \leftskip
beta(v) Jul.2023 \draft: bug fix when .ref file is closed but last page is added
beta(w) Jun.2024 \draft: hours, minutes added
beta(x) Jul.2024 \totf for comact list of tables+figures added