-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathFRIteza.cls
2993 lines (2793 loc) · 101 KB
/
FRIteza.cls
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
992
993
994
995
996
997
998
999
1000
%%
%% This is file `FRIteza.cls'
%%
%% (c) 2005-2018 Iztok Lebar Bajec
%%
% Options of the FRI thesis document class:
% - language=english for writing in english as main language [default]
% - language=slovene for writing in slovene as main language
%
% - funding=logo.pdf for a funded doctoral thesis - doktorska disertacija MR iz gospodarstva
%
% - stage=pre-alpha for early drafts - no chapter thumbs, smaller page size, which leads to increased font sizes when printed on A4 fit to page [seeks for images in directories /img_LQ, /img]
% - stage=alpha for first review by advisor - no chapter thumbs, smaller page size, which leads to increased font sizes when printed on A4 fit to page [seeks for images in directories /img_LQ, /img]
% - stage=beta for seminar 5 - no chapter thumbs, smaller page size, which leads to increased font sizes when printed on A4 fit to page [seeks for images in directories /img_LQ, /img]
% - stage=gamma for senate approval - no chapter thumbs, TODO: includes notes showing reviewer comments (and author response) [seeks for images in directories /img_LQ, /img]
% - stage=gold for final approved version - notes not displayed, chapter pages in colour, chapter thumbs [seeks for images in directories /img_LQ, /img]
% - stage=press for print version - gold with trim marks [seeks for images in directories /img_HQ, /img]
\NeedsTeXFormat{LaTeX2e}[1995/12/01]
\ProvidesClass{FRIteza}[v2.20190305
XeLaTeX doctoral dissertation class]
\RequirePackage{ifxetex}
\RequireXeTeX
%\newwrite\finder
%\immediate\openout\finder=\jobname.fnd
%\RequirePackage{filehook,currfile}
%
%\def\searchmacro#1{
% \AtBeginOfEveryFile{%
% \ifdefined#1
% \expandafter\def\csname \currfilename:found\endcsname{}%
% \fi}
% \AtEndOfEveryFile{%
% \ifdefined#1
% \unless\ifcsname \currfilename:found\endcsname
% \immediate\write\finder{found in '\currfilename'}%
% \fi\fi}}
%
%\searchmacro\theabspage
%\let\origRP\RequirePackage
%\def\where#1{
% \renewcommand{\RequirePackage}[1]{
% \origRP{##1}
% \ifcsname #1\endcsname
% \message{^^J#1 is defined in ##1^^J}
% \fi
% }
%}
%
%\where{chaptermark}
%TODO: instructions
%TODO: check \texttt and \textsf for rm, it, bf, bfit
\RequirePackage{xkeyval} % key=value command parameters
\RequirePackage{expl3, xparse} % LaTeX3 code
% enter LaTeX3 code
\ExplSyntaxOn
% switchcase command
\NewDocumentCommand \switchcase { m m m }
{
\str_case_x:nnF { #1 } { #2 } { #3 }
}
\ExplSyntaxOff
% TODO: swap to etoolbox bool definitions
\newif \if@dev \@devfalse
\newif \if@press \@pressfalse
\newif \if@funded \@fundedfalse
\newif \if@slovene \@slovenefalse
\newif \if@mainmatter \@mainmattertrue
\DeclareOptionX{language}{%
\switchcase{#1}
{
{slovene} {\@slovenetrue}
{english} {\@slovenefalse}
}{%
\ClassError{FRIteza}{The FRIteza class supports only the\MessageBreak slovene and english language variant,\MessageBreak supplied "#1"}{}
}
}
\DeclareOptionX{funding}[]{%
\global\@fundedtrue
\gdef\@companyLogo{#1}
}
\DeclareOptionX{stage}{%
\@ifundefined{stage}{
\switchcase{#1}
{
{pre-alpha} {\@devtrue}
{alpha} {\@devtrue}
{beta} {\@devtrue}
{gamma} {\@devtrue}
{gold} {\@devfalse}
{press} {\@devfalse \@presstrue}
}{%
\ClassError{FRIteza}{The FRIteza class supports stages\MessageBreak pre-alpha, alpha, beta, gamma, gold and press,\MessageBreak supplied "#1"}{}
}
}{%
\switchcase{\stage}
{
{pre-alpha} {\@devtrue}
{alpha} {\@devtrue}
{beta} {\@devtrue}
{gamma} {\@devtrue}
{gold} {\@devfalse}
{press} {\@devfalse \@presstrue}
}{%
\ClassError{FRIteza}{The FRIteza class supports stages\MessageBreak pre-alpha, alpha, beta, gamma, gold and press,\MessageBreak supplied "\stage"}{}
}
}
}
\DeclareOptionX*{\ClassWarning{FRIteza}{`\CurrentOption' ignored}}
\ExecuteOptionsX{language=english,stage=pre-alpha}
\ProcessOptionsX*
\@twosidetrue
\@mparswitchtrue
%
\special{pdf:minorversion 7}
%%%%
%% load typography related packages
%%%%
% TODO test with just two font sizes 12 & 8 as optical size, compute best font size based on width of body text; see vaignelli cannon & memoire.pdf
% https://pearsonified.com/2011/12/golden-ratio-typography.php
% http://ftp.math.purdue.edu/mirrors/ctan.org/info/memdesign/memdesign.pdf pg 48
\input{FRIteza.clo} % TODO: font sizes, convert to bp [check use of all fontsizes and declare appropriately, headers, footnotes, captions, etc.]
%\RequirePackage{ebgaramond}
%\RequirePackage{ebgaramond-maths} % should this be included for proper microtype?
\RequirePackage{microtype}
% patch for microtype to stop producing Unknown slot number warnings,
% see discussion at https://tex.stackexchange.com/questions/373594/microtype-producing-dozens-of-unknown-slot-number-warnings/
\@ifpackagelater{microtype}{2017/07/07} %
{
% no need to pach
}
{
\ClassInfo{FRIteza}{Patching microtype pre-v2.7 2017/07/07 to to stop producing Unknown slot number warnings}
\def\MT@is@composite#1#2\relax{%
\ifx\\#2\\\else
\expandafter\def\expandafter\MT@char\expandafter{\csname\expandafter
\string\csname\MT@encoding\endcsname
\MT@detokenize@n{#1}-\MT@detokenize@n{#2}\endcsname}%
% 3 lines added:
\ifx\UnicodeEncodingName\@undefined\else
\expandafter\expandafter\expandafter\MT@is@uni@comp\MT@char\iffontchar\else\fi\relax
\fi
\expandafter\expandafter\expandafter\MT@is@letter\MT@char\relax\relax
\ifnum\MT@char@ < \z@
\ifMT@xunicode
\edef\MT@char{\MT@exp@two@c\MT@strip@prefix\meaning\MT@char>\relax}%
\expandafter\MT@exp@two@c\expandafter\MT@is@charx\expandafter
\MT@char\MT@charxstring\relax\relax\relax\relax\relax
\fi
\fi
\fi
}
% new:
\def\MT@is@uni@comp#1\iffontchar#2\else#3\fi\relax{%
\ifx\\#2\\\else\edef\MT@char{\iffontchar#2\fi}\fi
}
}
\RequirePackage{realscripts} % for textsubscripts and textsuperscripts
\RequirePackage{amsmath} % must be loaded before unicode-math to avoid conflicts
\RequirePackage{amssymb}
% TODO: % add note to documentation about mathbf, mathrm, symbf, symrm;
% see http://mirrors.rit.edu/CTAN/macros/latex/contrib/unicode-math/unicode-math.pdf pg 5
\RequirePackage[math-style=french,bold-style=upright]{unicode-math} % TODO ,mathrm=sym,mathbf=sym ... causes issues with \siunitx [uppercase numerals in text] TODO: sans serif greek!!!
\RequirePackage{ragged2e} % for flushleft justification with hyphenation turned on
\setmainfont{EBGaramond}[ % https://github.com/georgd/EB-Garamond
Path=fonts/EBGaramond/,
Ligatures={TeX,Discretionary},
Extension=.otf,
UprightFont=EBGaramond12-Regular,
UprightFeatures={
SizeFeatures={
{Size=-8, Font={*08-Regular}},% Numbers={Lining}},
{Size= 8-, Font={*12-Regular}}
}
},
ItalicFont=EBGaramond12-Italic,
ItalicFeatures={
SizeFeatures={
{Size=-8, Font={*08-Italic}},% Numbers={Lining}},
{Size= 8-, Font={*12-Italic}}
}
},
% BoldFont={EBGaramond12-Italic.otf},
% BoldFeatures={
% SizeFeatures={
% {Size=-8, Font={EBGaramond08-Italic.otf}},% Numbers={Lining}},
% {Size= 8-, Font={EBGaramond12-Italic.otf}}
% }
% },
Mapping=tex-text,
Numbers={OldStyle},
AutoFakeBold=1.5
]
\setsansfont{SourceSansPro}[ % https://github.com/adobe-fonts/source-sans-pro, 2.020R-ro/1.075R-it
Path=fonts/SourceSansPro/,
Extension=.otf,
Mapping=tex-text,
Ligatures={TeX},
Numbers={OldStyle},
UprightFont=*-Regular,
ItalicFont=*-It,
BoldFont=*-Semibold,
BoldItalicFont=*-SemiboldIt,
Scale=MatchLowercase
]
\setmonofont{SourceCodePro}[ % https://github.com/adobe-fonts/source-code-pro, 2.030R-ro/1.050R-it
Path=fonts/SourceCodePro/,
Extension=.otf,
Mapping=tex-text,
Ligatures={TeX},
UprightFont=*-Regular,
ItalicFont=*-It,
BoldFont=*-Semibold,
BoldItalicFont=*-SemiboldIt,
Numbers={OldStyle},
Scale=MatchLowercase
]
%\setmathfont[Scale=MatchLowercase]{XITS Math} % base math font
%\setmathfont{Asana Math} % base font until v1.2.20170526
%\setmathfont{EB Garamond} % To use in the future?
% TODO: check printed
% base math font to use in the future? [override only bold and bolditalic, greek italic!!]
\setmathfont{Garamond-Math}[ % https://github.com/YuanshengZhao/Garamond-Math
Path=fonts/Garamond-Math/,
Extension=.otf,
StylisticSet={1,4} % Garamond based blackboard, Semibold, SemiboldItalic
]
% override math sans serif fonts
%\setmathfont{SourceSansPro-Regular.otf}[
% Path=./fonts/SourceSansPro/,
% range=\mathsfup/{num,latin,Latin},
% Script=Latin,
% Scale=MatchLowercase,
%]
%\setmathfont{SourceSansPro-It.otf}[
% Path=./fonts/SourceSansPro/,
% range=\mathsfit/{latin,Latin,greek,Greek},
% Script=Latin,
% Scale=MatchLowercase
%]
%\setmathfont{SourceSansPro-Semibold.otf}[
% Path=./fonts/SourceSansPro/,
% range=bfsfup/{num,latin,Latin,greek,Greek},
% Script=Latin,
% Scale=MatchLowercase
%]
%\setmathfont{SourceSansPro-SemiboldIt.otf}[
% Path=./fonts/SourceSansPro/,
% range=bfsfit/{latin,Latin,greek,Greek},
% Script=Latin,
% Scale=MatchLowercase
%]
%
%% override math mono fonts
%\setmathfont{SourceCodePro-Regular.otf}[
% Path=./fonts/SourceCodePro/,
% range=ttup/{num,latin,Latin,greek,Greek},
% Script=Latin,
% Scale=MatchLowercase
%]
%\setmathfont{SourceCodePro-It.otf}[
% Path=./fonts/SourceCodePro/,
% range=ttit/{num,latin,Latin,greek,Greek},
% Script=Latin,
% Scale=MatchLowercase
%]
%\setmathfont{SourceCodePro-Semibold.otf}[
% Path=./fonts/SourceSansPro/,
% range=bfttup/{num,latin,Latin,greek,Greek},
% Script=Latin,
% Scale=MatchLowercase
%]
%\setmathfont{SourceCodePro-SemiboldIt.otf}[
% Path=./fonts/SourceCodePro/,
% range=bfttit/{num,latin,Latin,greek,Greek},
% Script=Latin,
% Scale=MatchLowercase
%]
%\setmathfont{EBGaramond-Medium.otf}[
% Path=fonts/EBGaramond12/,
% range=\mathup/{num,latin,Latin,greek,Greek},
% Numbers={Lining},
% Script=Latin
%]
%\setmathfont{EBGaramond-MediumItalic.otf}[
% Path=fonts/EBGaramond12/,
% range=\mathit/{latin,Latin,greek,Greek},
% Numbers={Lining},
% Script=Latin
%]
%\setmathfont{EBGaramond12-Regular.otf}[
% Path=fonts/EBGaramond/,
% range=\mathup/{num,latin,Latin,greek,Greek},
% Ligatures={TeX},
% Numbers={Lining}, % force lining numbers for math
% Script=Latin, % force the use of Latin script (suppresses fontspec warning 'Math'->'Latin' script)
% SizeFeatures={ % optical sizes, this overrides (s)script-font/-features
% {Size=-8, Font={EBGaramond08-Regular.otf}, Numbers={Lining}}, % force lining numbers for (s)scripts
% {Size= 8-, Font=*}
% }
%]
%\setmathfont{EBGaramond12-Regular.otf}[
% Path=fonts/EBGaramond/,
% range=\mathbfup/{num,latin,Latin,greek,Greek},
% Ligatures={TeX},
% Numbers={Lining},
% Script=Latin,
% version=bold,
% FakeBold=1.5,
% SizeFeatures={
% {Size=-8, Font={EBGaramond08-Regular.otf}, Numbers={Lining}},
% {Size= 8-, Font=*}
% }
%]
%\setmathfont{EBGaramond12-Italic.otf}[
% Path=fonts/EBGaramond/,
% range=\mathit/{latin,Latin,greek,Greek},
% Ligatures={TeX},
% Numbers={Lining},
% Script=Latin,
% SizeFeatures={
% {Size=-8, Font={EBGaramond08-Italic.otf}, Numbers={Lining}},
% {Size= 8-, Font=*}
% }
%]
%\setmathfont{EBGaramond12-Italic.otf}[
% Path=fonts/EBGaramond/,
% range=\mathbfit/{latin,Latin,greek,Greek},
% Ligatures={TeX},
% Numbers={Lining},
% Script=Latin,
% version=bold,
% FakeBold=1.5,
% SizeFeatures={
% {Size=-8, Font={EBGaramond08-Italic.otf}, Numbers={Lining}},
% {Size= 8-, Font=*}
% }
%]
% TODO patch \textbf and \bfseries commands to disable use of bold in body text
%\ClassInfo{FRIteza}{Patching textbf and bfseries to force textit and itshape}
%\let\@textbf\textbf
%\let\@bfseries\bfseries
%\renewcommand{\textbf}{\textit}
%\renewcommand{\bfseries}{\itshape}
% patch MakeUppercase to use lining numbers as uppercase numbers,
% see discussion at https://www.quora.com/Why-don’t-lowercase-and-uppercase-numbers-exist
\ClassInfo{FRIteza}{Patching MakeUppercase to force Uppercase numbers}
\let\@MakeUppercase\MakeUppercase
\renewcommand{\MakeUppercase}[1]{\begingroup\addfontfeature{Numbers=Uppercase}\@MakeUppercase{#1}\endgroup}
% macro for Historic dropcaps
\RequirePackage{lettrine}
\RequirePackage{xstring}
\newcommand{\EBLettrineBackColor}{P1797}
\newcommand{\EBLettrineFrontColor}{black}
\newcommand{\EBLettrineBackFont}{\fontspec{EBGaramond-InitialsF1}[Path=fonts/EBGaramond/, Extension=.otf]}
\newcommand{\EBLettrineFrontFont}{\fontspec{EBGaramond-InitialsF2}[Path=fonts/EBGaramond/, Extension=.otf]}
\newcommand{\EBlettrine}[1]{%
\StrRemoveBraces{#1}[\str]
\StrSplit{\str}{1}{\first}{\rest}
\renewcommand{\LettrineFontHook}{\EBLettrineBackFont}%
\lettrine[lines=4,loversize=-.2,lraise=.25,findent=2pt,nindent=0pt]{%
\rlap{\color{\EBLettrineBackColor} \first}%
{\EBLettrineFrontFont\color{\EBLettrineFrontColor} \first}%
}%
\rest%
}
% load language related packages
\RequirePackage{translator}
\RequirePackage{polyglossia}
\if@slovene
\setmainlanguage{slovenian}
\setotherlanguage[variant=uk]{english}
\RequirePackage[locale=DE,abbreviations]{siunitx} % load siunitx package for printing numers and units
\else
\setmainlanguage[variant=uk]{english}
\setotherlanguage{slovenian}
\RequirePackage[locale=UK,abbreviations]{siunitx} % load siunitx package for printing numers and units
\fi
\sisetup{detect-all, math-rm=\symup, math-sf=\symsf, math-tt=\symtt} % make siunitx detect mode (math, text, sans, typewriter, bold, and force use of symrm instead of mathrm to get uppercase numerals in math mode)
% language specific special keyword translations
\addto\captionsenglish{%
\def\keywordsname{Keywords}
\def\definitionname{Definition}
\def\acknowledgementsname{Acknowledgements}
\def\bbland{\&}
\def\bbletal{et~al.}
\def\bbleds{eds.}
\def\bbled{ed.}
\def\bbledby{edited by}
\def\bbledn{edition}
\def\bblvol{vol.}
\def\bblof{of}
\def\bblno{no.}
\def\bblin{in}
\def\bblpp{pp.}
\def\bblp{p.}
\def\bblchap{ch.}
\def\bbltechrep{Tech Rep}
\def\bblmthesis{Master's thesis}
\def\bblphdthesis{Doctoral dissertation}
\def\bbllecture{Lecture}
\def\bbleidpp{eid}
\def\bblfirsto{\MakeUppercase{1}\textsuperscript{st}}
\def\bblsecondo{\MakeUppercase{2}\textsuperscript{nd}}
\def\bblthirdo{\MakeUppercase{3}\textsuperscript{rd}}
\def\bblfourtho{\MakeUppercase{4}\textsuperscript{th}}
\def\bblfiftho{\MakeUppercase{5}\textsuperscript{th}}
\def\bblst{\textsuperscript{st}}
\def\bblnd{\textsuperscript{nd}}
\def\bblrd{\textsuperscript{rd}}
\def\bblth{\textsuperscript{th}}
\def\bbljan{Jan}
\def\bblfeb{Feb}
\def\bblmar{Mar}
\def\bblapr{Apr}
\def\bblmay{May}
\def\bbljun{Jun}
\def\bbljul{Jul}
\def\bblaug{Aug}
\def\bblsep{Sep}
\def\bbloct{Oct}
\def\bblnov{Nov}
\def\bbldec{Dec}
}
\addto\captionsslovenian{%
\def\keywordsname{Ključne besede}
\def\definitionname{Definicija}
\def\acknowledgementsname{Zahvala}
% http://www.informatika.bf.uni-lj.si/akad_okrajsave.htm
\def\bbland{\&}
\def\bbletal{in sod.}
\def\bbleds{ur.}
\def\bbled{ur.}
\def\bbledby{uredil(i)}
\def\bbledn{izdaja}
\def\bblvol{zv.}
\def\bblof{od}
\def\bblno{št.}
\def\bblin{v}
\def\bblpp{str.}
\def\bblp{s.}
\def\bblchap{ch.}
\def\bbltechrep{Poročilo}
\def\bblmthesis{Magistrsko delo}
\def\bblphdthesis{Doktorska disertacija}
\def\bbllecture{Predavanje}
\def\bbleidpp{eid}
\def\bblfirsto{\MakeUppercase{1}.}
\def\bblsecondo{\MakeUppercase{2}.}
\def\bblthirdo{\MakeUppercase{3}.}
\def\bblfourtho{\MakeUppercase{4}.}
\def\bblfiftho{\MakeUppercase{5}.}
\def\bblst{.}
\def\bblnd{.}
\def\bblrd{.}
\def\bblth{.}
% http://www.lektorsko-drustvo.si/jezikovni-pogovori/pisanje-datumov-v-slovenscini
\def\bbljan{jan.}
\def\bblfeb{feb.}
\def\bblmar{mar.}
\def\bblapr{apr.}
\def\bblmay{maj.}
\def\bbljun{jun.}
\def\bbljul{jul.}
\def\bblaug{avg.}
\def\bblsep{sep.}
\def\bbloct{okt.}
\def\bblnov{nov.}
\def\bbldec{dec.}
}
% command for introducing hyphenation/syllabization patterns
\newcommand{\sethyphenation}[2]{%
\AtBeginDocument{%
\begin{#1}\hyphenation{#2}\end{#1}%
}%
}
% enter LaTeX3 code
\ExplSyntaxOn
% declare macro for vulgar fractions that take advantage of OpenType features
% code copied from xltxtra v0.6, 2016/01/21
\newcommand*\vfrac[2]{
\fontspec_if_fontspec_font:TF
{
\fontspec_if_opentype:TF
{
{\addfontfeature{VerticalPosition=Numerator}#1}
\textfractionsolidus
{\addfontfeature{VerticalPosition=Denominator}#2}
}
{
{\addfontfeature{VerticalPosition=Superior}#1}
\textfractionsolidus
{\addfontfeature{VerticalPosition=Inferior}#2}
}
}
{
\ClassError {FRIteza}
{ \string\vfrac\space~can~only~be~used~with~fontspec~fonts }
{ Nothing~more~to~tell. }
}
}
\AtBeginDocument{ % these patch needs to be called last, after preamble finishes, i.e. at begin document
\ClassInfo{FRIteza}{Patching\space siunitx\space package\space for\space correct\space printing\space of\space minus\space sign}
\@ifpackagelater{siunitx}{2018/05/18}{
\ClassWarning{FRIteza}{Applying\space patch\space developed\space for\space siunitx\space 2018/05/17\space v2.7s,\space
detected\space siunitx\space \csname [email protected] \endcsname}
}{}
% patch for siunitx package so than the minus sign gets printed in math and text mode
\tl_gset:Nn \c__siunitx_minus_tl { \ensuremath{ - } }
\ClassInfo{FRIteza}{Patching\space realscript\space package\space for\space correct\space subscript\space font\space feature\space +sinf}{}
\@ifpackagelater{realscript}{2016/02/14}{
\ClassWarning{FRIteza}{Applying\space patch\space developed\space for\space realscript\space 2016/02/13\space v0.3d,\space
detected\space realscript\space \csname [email protected] \endcsname}
}{}
% patch for realscript package so that proper subscripts get printed with EBGaramond
% EBGaramond (+subs) are closer to (+dnom) than typical subscripts, see also https://glyphsapp.com/tutorials/superscript-and-subscript-figures
\DeclareDocumentCommand \realsubscript {m} {
\fontspec_if_fontspec_font:TF {
\fontspec_if_opentype:TF
{ \fontspec_if_feature:nTF {+sinf}
{ {\addfontfeature{VerticalPosition=ScientificInferior}#1} }
{ \fontspec_if_feature:nTF {+subs}
{ {\addfontfeature{VerticalPosition=Inferior}#1} }
{ \fakesubscript{#1} }
}
}
{ \fontspec_if_aat_feature:nnTF {10} {2}
{ {\addfontfeature{VerticalPosition=Inferior}#1} }
{ \fakesubscript{#1} }
}
}
{ \fakesubscript{#1} }
}
}
\ExplSyntaxOff
% end of LaTeX3 code
% TODO: patch to force superscripts and subscripts to be smaller (closer match to \textsubscript \textsuperscript)
%\def\defaultscriptratio{.56} ??? necessary
%\def\defaultscriptscriptratio{.4} ??? necessary
%\calculate@math@sizes ?? necessary
%\DeclareMathSizes{9bp}{9bp}{5bp}{4bp} [for text font size 9bp choose math 9bp with subscripts of size 5bp and subsubscripts of 4bp]
%\DeclareMathSizes{12bp}{12bp}{7bp}{6bp} %[for text font size 12pt choose math 12pt with subscripts of size 7pt and subsubscripts of 6pt; 1pt in tex = 1/72.27", 1bp = 1/72" ]
%\check@mathfonts
% TODO ?\setkeys{Gin}{width=\figurewidth} to force all figures to \figurewidth
% load graphics and color related packages and setup colors
\RequirePackage{graphicx}
\if@press
\graphicspath{{./img_HQ/}{img/}} % search path for graphics files
\else
\graphicspath{{./img_LQ/}{img/}} % search path for graphics files
\fi
\DeclareGraphicsExtensions{.pdf,.png,.jpg} % graphics file extensions listed in order of preference
\RequirePackage{xcolor} % TODO {colortbl} for color tables, {colorspace} for pantone http://ctan.ijs.si/tex-archive/macros/latex/contrib/colorspace/colorspace.pdf
\RequirePackage{tikz}
\RequirePackage[all]{background} % required for chaptermarks based on TikZ
\definecolor{grey65}{cmyk}{0,0,0,.65}
\definecolor{grey50}{cmyk}{0,0,0,.50}
\definecolor{grey40}{cmyk}{0,0,0,.40}
\definecolor{grey20}{cmyk}{0,0,0,.20}
\definecolor{grey05}{cmyk}{0,0,0,.05}
\definecolor{PCG3M}{cmyk}{.20,.15,.14,0}
\definecolor{PCG9M}{cmyk}{.48,.39,.37,.03}
\definecolor{P654M}{cmyk}{1,.87,.32,.19}
\definecolor{P1797}{cmyk}{0,.94,.94,.06}
\definecolor{gold}{cmyk}{.15,.20,.80,.05}
%P424
%P654M
%P1797U 0, 100, 99, 4
%P1797C 0, 100, 100, 0
%%%%
% setup page layout and page spread graphical elements
%%%%
\RequirePackage{calc} % length calculations
\RequirePackage{scrextend} % required for oddpage checks
\RequirePackage{ifthen} % required for whiledo loops
\RequirePackage{etoolbox} % required for package patches
\newlength{\pageW}\setlength{\pageW}{6.14in}
\newlength{\pageH}\setlength{\pageH}{9.21in}
\newlength{\gridW}\setlength{\gridW}{\pageW/9}
\newlength{\gridH}\setlength{\gridH}{\pageH/9}%\setlength{\pageH}{8\gridH}
\newlength{\marginI}\setlength{\marginI}{\gridW}
\newlength{\marginO}\setlength{\marginO}{2\gridW}
\newlength{\marginT}\setlength{\marginT}{\gridH}
\newlength{\marginB}\setlength{\marginB}{2\gridH}%\setlength{\marginB}{\gridH}
\newlength{\bindingW}\setlength{\bindingW}{0mm}
\newlength{\bleedH}\setlength{\bleedH}{0mm}
\newlength{\bleedW}\setlength{\bleedW}{0mm}
\newlength{\trimMark}\setlength{\trimMark}{0mm}
\if@dev % crop pages so that with fit to page one achieves a larger font size for pre-alpha, alpha, beta, gamma
\setlength{\pageW}{\pageW-\gridW}
\setlength{\pageH}{\pageH-2\gridH}
\setlength{\marginI}{\marginI-.75\gridW}
\setlength{\marginO}{\marginO-.25\gridW}
\setlength{\marginT}{\marginT-\gridH/2}
\setlength{\marginB}{\marginB-3\gridH/2}
\fi
\if@press
\setlength{\bindingW}{16mm} % widden up each page by 7.5mm / 6mm due to binding
\setlength{\bleedH}{5mm}
\setlength{\bleedW}{5mm}
\setlength{\trimMark}{5mm}
\fi
\newlength{\mW}\setlength{\mW}{\trimMark+\bleedW+\bindingW+\pageW+\bleedW+\trimMark} % media width
\newlength{\mH}\setlength{\mH}{\trimMark+\bleedH+\pageH+\bleedH+\trimMark} % media height
\setlength{\columnsep}{\gridW/4} % must be declared as floatrow by default sets capbesidesep=columnsep
\setlength{\columnseprule}{0mm}
\setlength{\marginparsep}{\gridW/4}
\setlength{\marginparwidth}{5\gridW/4}
\setlength{\headheight}{\baselineskip}
\newlength{\gs@dpth}\settodepth{\gs@dpth}{\normalfont\normalsize q} % get font depth (normalsize)
\newlength{\gs@bls}\normalfont\normalsize\setlength{\gs@bls}{\baselineskip} % get baselineskip (normalsize)
\setlength{\headsep}{\gridH/4-\baselineskip}
\setlength{\footskip}{\headsep+\headheight}
\pgfmathsetlengthmacro{\bO}{\bindingW+\bleedW+\trimMark}
\pgfmathsetlengthmacro{\mI}{\marginI}
\pgfmathsetlengthmacro{\mO}{\marginO+\trimMark+\bleedW}
\pgfmathsetlengthmacro{\mT}{\marginT+\trimMark+\bleedH}
\pgfmathsetlengthmacro{\mB}{\marginB+\trimMark+\bleedH}
% NOTE: intersting layout with mB=gH, mO=3gW+gW/8, mpw=2gW-gW/8 and raggedright typesetting
\RequirePackage[driver=xetex, papersize={\mW, \mH}, bindingoffset=\bO, left=\mI, top=\mT, right=\mO, bottom=\mB]{geometry}
% configures PDF trim, crop, bleed, media boxes
\pdfpagewidth=\mW \pdfpageheight=\mH
\paperwidth=\mW \paperheight=\mH
\let\@XeTeXTrimBoxes\relax
\def\setbpdim#1#2{\@tempdimc#2 \@tempdimc .99626\@tempdimc
\edef#1{\strip@pt\@tempdimc}} % convert between tex pt and pdf pt (1" = 72.72 vs 72)
% if bindingW does not include bleedW setPDFboxes must be recomputed on every page!!!!
\def\setPDFBoxes{%
\setlength{\@tempdima}{\bleedW+\trimMark} \setlength{\@tempdimb}{\bleedH+\trimMark}
\setbpdim\@tx\@tempdima \setbpdim\@ty\@tempdimb
\setlength{\@tempdima}{\pdfpagewidth-\trimMark-\bleedW}\setlength{\@tempdimb}{\pdfpageheight-\trimMark-\bleedH}
\setbpdim\@tX\@tempdima \setbpdim\@tY\@tempdimb
\setbpdim\@bx{0pt} \setbpdim\@by{0pt}
\setbpdim\@bX\pdfpagewidth \setbpdim\@bY\pdfpageheight
\edef\@tmp{
/BleedBox [\@bx\space \@by\space
\@bX\space \@bY]
/TrimBox [\@tx\space \@ty\space
\@tX\space \@tY]
}
\edef\@XeTeXTrimBoxes{\noexpand\special{pdf:put @thispage <<\@tmp>>}}
}
\AtBeginDocument{\setPDFBoxes}
\RequirePackage{atbegshi} % loaded also by hyperref
\AtBeginShipout{%
\setbox\AtBeginShipoutBox=\hbox{%
\@XeTeXTrimBoxes
\box\AtBeginShipoutBox
}%
}
% TODO: use totcount package and \regtotcounter{chapter}\total{chapter}
% TODO: to definethe VOffset @deltay to step chapterMarks so that they are distributed over the whole textheight (if more than the amount that fits in)
% current max is 12 chapters ... 6.14in/13mm=11.99
\newcommand{\@ULsquare}{13mm}
\newlength{\VOffset}\setlength{\VOffset}{-\@ULsquare}
\newcommand{\@drawGridSystem}{
% grid system
\ifthispageodd{%
\foreach \n in {1,...,8} {
\draw[dashed, color=lightgray]
(\trimMark+\bleedW+\bindingW+\n\gridW,-\bleedH-\trimMark)
--
(\trimMark+\bleedW+\bindingW+\n\gridW,-\mH+\bleedH+\trimMark);
\draw[dashed, color=lightgray]
(\trimMark+\bleedW+\bindingW,-\n\gridH-\bleedH-\trimMark)
--
(\mW-\bleedW-\trimMark,-\n\gridH-\bleedH-\trimMark);
}
\draw[dashed, color=black]
(\trimMark+\bleedW+\bindingW,-\bleedH-\trimMark)
--
(\trimMark+\bleedW+\bindingW,-\mH+\bleedH+\trimMark);
}{%
\foreach \n in {1,...,8} {
\draw[dashed, color=lightgray]
(\mW-\trimMark-\bleedW-\bindingW-\n\gridW,-\trimMark-\bleedH)
--
(\mW-\trimMark-\bleedW-\bindingW-\n\gridW,-\mH+\trimMark+\bleedH);
\draw[dashed, color=lightgray]
(\mW-\trimMark-\bleedW-\bindingW,-\n\gridH-\bleedH-\trimMark)
--
(\trimMark+\bleedW,-\n\gridH-\bleedH-\trimMark);
}
\draw[dashed, color=black]
(\mW-\trimMark-\bleedW-\bindingW,-\trimMark-\bleedH)
--
(\mW-\trimMark-\bleedW-\bindingW,-\mH+\bleedH+\trimMark);
}
}
\newcommand{\@drawTextAreas}{
\ifthispageodd{%
\draw[color=orange] % body text area
(\trimMark+\bleedW+\bindingW+\marginI,-\trimMark-\bleedH-\marginT)
rectangle
(\trimMark+\bleedW+\bindingW+\marginI+\textwidth,-\trimMark-\bleedH-\marginT-\textheight);
\draw[color=orange] % marginpar text area
(\trimMark+\bleedW+\bindingW+\marginI+\textwidth+\marginparsep,-\trimMark-\bleedH-\marginT)
rectangle
(\trimMark+\bleedW+\bindingW+\marginI+\textwidth+\marginparsep+\marginparwidth,-\trimMark-\bleedH-\marginT-\textheight);
\draw[color=orange] % header text area
(\trimMark+\bleedW+\bindingW+\marginI,-\trimMark-\bleedH-\marginT+\headsep+\headheight)
rectangle
(\trimMark+\bleedW+\bindingW+\marginI+\textwidth+\marginparsep+\marginparwidth,-\trimMark-\bleedH-\marginT+\headsep);
\draw[color=orange] % footer
(\trimMark+\bleedW+\bindingW+\marginI,-\trimMark-\bleedH-\marginT-\textheight-\footskip-\gs@dpth+\gs@bls)
rectangle
(\trimMark+\bleedW+\bindingW+\marginI+\textwidth,-\trimMark-\bleedH-\marginT-\textheight-\footskip-\gs@dpth);
}{%
\draw[color=orange] % body text area
(\mW-\trimMark-\bleedW-\bindingW-\marginI,-\trimMark-\bleedH-\marginT)
rectangle
(\mW-\trimMark-\bleedW-\bindingW-\marginI-\textwidth,-\trimMark-\bleedH-\marginT-\textheight);
\draw[color=orange] % marginpar text area
(\mW-\trimMark-\bleedW-\bindingW-\marginI-\textwidth-\marginparsep,-\trimMark-\bleedH-\marginT)
rectangle
(\mW-\trimMark-\bleedW-\bindingW-\marginI-\textwidth-\marginparsep-\marginparwidth,-\trimMark-\bleedH-\marginT-\textheight);
\draw[color=orange] % header text area
(\mW-\trimMark-\bleedW-\bindingW-\marginI,-\trimMark-\bleedH-\marginT+\headsep+\headheight)
rectangle
(\mW-\trimMark-\bleedW-\bindingW-\marginI-\textwidth-\marginparsep-\marginparwidth,-\trimMark-\bleedH-\marginT+\headsep);
\draw[color=orange] % footer text area
(\mW-\trimMark-\bleedW-\bindingW-\marginI,-\trimMark-\bleedH-\marginT-\textheight-\footskip-\gs@dpth+\gs@bls)
rectangle
(\mW-\trimMark-\bleedW-\bindingW-\marginI-\textwidth,-\trimMark-\bleedH-\marginT-\textheight-\footskip-\gs@dpth);
}%
}
\newcommand{\@drawTextAreaBaselines}{
\pgfmathsetmacro{\nRows}{round(6*\gridH/\gs@bls)}
\ifthispageodd{%
\foreach \n in {1,...,\nRows} { % body text
\draw[dashed, color=cyan]
(\trimMark+\bleedW+\bindingW+\marginI,-\trimMark-\bleedH-\marginT-\n\gs@bls+\gs@dpth)
--
(\trimMark+\bleedW+\bindingW+\marginI+\textwidth,-\trimMark-\bleedH-\marginT-\n\gs@bls+\gs@dpth);
}
\draw[dashed, color=cyan] % header
(\trimMark+\bleedW+\bindingW+\marginI,-\trimMark-\bleedH-\marginT+\headsep+\gs@dpth+1pt)
--
(\trimMark+\bleedW+\bindingW+\marginI+\textwidth+\marginparsep+\marginparwidth,-\trimMark-\bleedH-\marginT+\headsep+\gs@dpth+1pt);
\draw[color=cyan] % header
(\trimMark+\bleedW+\bindingW+\marginI+\textwidth+\marginparsep,-\trimMark-\bleedH-\marginT+\headsep)
--
(\trimMark+\bleedW+\bindingW+\marginI+\textwidth+\marginparsep,-\trimMark-\bleedH-\marginT+\headsep+\headheight);
\draw[dashed, color=cyan] % footer
(\trimMark+\bleedW+\bindingW+\marginI,-\trimMark-\bleedH-\marginT-\textheight-\footskip)
--
(\trimMark+\bleedW+\bindingW+\marginI+\textwidth,-\trimMark-\bleedH-\marginT-\textheight-\footskip);
}{%\else
\foreach \n in {1,...,\nRows} {
\draw[dashed, color=cyan]
(\mW-\trimMark-\bleedW-\bindingW-\marginI,-\marginT-\bleedH-\trimMark-\n\gs@bls+\gs@dpth)
--
(\mW-\trimMark-\bleedW-\bindingW-\marginI-\textwidth,-\marginT-\bleedH-\trimMark-\n\gs@bls+\gs@dpth);
}
\draw[dashed, color=cyan] % header
(\mW-\trimMark-\bleedW-\bindingW-\marginI,-\trimMark-\bleedH-\marginT+\headsep+\gs@dpth+1pt)
--
(\mW-\trimMark-\bleedW-\bindingW-\marginI-\textwidth-\marginparsep-\marginparwidth,-\trimMark-\bleedH-\marginT+\headsep+\gs@dpth+1pt);
\draw[color=cyan] % header
(\mW-\trimMark-\bleedW-\bindingW-\marginI-\textwidth-\marginparsep,-\trimMark-\bleedH-\marginT+\headsep)
--
(\mW-\trimMark-\bleedW-\bindingW-\marginI-\textwidth-\marginparsep,-\trimMark-\bleedH-\marginT+\headsep+\headheight);
\draw[dashed, color=cyan] % footer
(\mW-\trimMark-\bleedW-\bindingW-\marginI,-\trimMark-\bleedH-\marginT-\textheight-\footskip)
--
(\mW-\trimMark-\bleedW-\bindingW-\marginI-\textwidth,-\trimMark-\bleedH-\marginT-\textheight-\footskip);
}%
}
\newcommand{\@drawTrimMarks}{
% trimmarks
\draw[color=black, line width=0.25pt]
(\trimMark+\bleedW,0)
--
(\trimMark+\bleedW,-\trimMark);
\draw[color=black, line width=0.25pt]
(\trimMark+\bleedW,-\mH)
--
(\trimMark+\bleedW,-\mH+\trimMark);
\draw[color=black, line width=0.25pt]
(\mW-\trimMark-\bleedW,0)
--
(\mW-\trimMark-\bleedW,-\trimMark);
\draw[color=black, line width=0.25pt]
(\mW-\trimMark-\bleedW,-\mH)
--
(\mW-\trimMark-\bleedW,-\mH+\trimMark);
\draw[color=black, line width=0.25pt]
(0,-\trimMark-\bleedH)
--
(\trimMark,-\trimMark-\bleedH);
\draw[color=black, line width=0.25pt]
(\mW-\trimMark,-\trimMark-\bleedH)
--
(\mW,-\trimMark-\bleedH);
\draw[color=black, line width=0.25pt]
(0,-\mH+\trimMark+\bleedH)
--
(\trimMark,-\mH+\trimMark+\bleedH);
\draw[color=black, line width=0.25pt]
(\mW-\trimMark,-\mH+\trimMark+\bleedH)
--
(\mW,-\mH+\trimMark+\bleedH);
}
\newcommand{\@drawPartMark}[1]{
\ifthispageodd{%
\path[fill=#1]
(\mW-\trimMark-\bleedW-\gridW/4,0)
rectangle
(\mW-\trimMark,-\mH);
}{%
\path[fill=#1]
(\trimMark,0)
rectangle
(\trimMark+\bleedW+\gridW/4,-\mH);
}%
}
% TODO: change VOffset to multiples of thechapter counter
\newcommand{\@chapterThumbColourA}{white}
\newcommand{\@chapterThumbColourB}{P1797}
\newcommand{\@drawChapterThumb}[2]{
\ifthispageodd{%
\if@isChapterPage
\path[fill=#1]
(\mW-\trimMark-\bleedW-\@ULsquare,-\trimMark-\bleedH-\marginT-\VOffset)
rectangle
(\mW-\trimMark,-\trimMark-\bleedH-\marginT-\VOffset-\@ULsquare);
\node[#2] at
(\mW-\trimMark-\bleedW-\@ULsquare/2,-\trimMark-\bleedH-\marginT-\VOffset-\@ULsquare/2)
{\fontsize{26}{30}\itshape\selectfont\thechapter\normalfont};
\else
\path[fill=#2]
(\mW-\trimMark-\bleedW-\gridW/4,-\trimMark-\bleedH-\marginT-\VOffset)
rectangle
(\mW-\trimMark,-\trimMark-\bleedH-\marginT-\VOffset-\@ULsquare);
\fi
}{%
\if@isChapterPage
\path[fill=#1]
(\trimMark, -\trimMark-\bleedH-\marginT-\VOffset)
rectangle
(\trimMark+\bleedW+\@ULsquare,-\trimMark-\bleedH-\marginT-\VOffset-\@ULsquare);
\node[#2] at
(\trimMark+\bleedW+\@ULsquare/2,-\trimMark-\bleedH-\marginT-\VOffset-\@ULsquare/2)
{\fontsize{26}{30}\itshape\selectfont\thechapter\normalfont};
\else
\path[fill=#2]
(\trimMark,-\trimMark-\bleedH-\marginT-\VOffset)
rectangle
(\trimMark+\bleedW+\gridW/4,-\trimMark-\bleedH-\marginT-\VOffset-\@ULsquare);
\fi
}%
}
\newcommand{\@stepChapterThumb}{
\addtolength{\VOffset}{\@ULsquare}
\global\VOffset=\VOffset % force global update of VOffset, see https://tex.stackexchange.com/questions/119730/global-scope-or-permanent-length-or-savebox
\if@dev
\global\@showChapterThumbfalse
\else
\global\@showChapterThumbtrue
\fi
}
\newcommand{\@hideChapterThumb}{
\global\@showChapterThumbfalse
}
\newif \if@showGridSystem \@showGridSystemfalse
\newif \if@showTextAreas \@showTextAreasfalse
\newif \if@showTextAreaBaselines \@showTextAreaBaselinesfalse
\newif \if@showChapterThumb \@showChapterThumbfalse
\newif \if@isChapterPage \@isChapterPagefalse
\newif \if@isPartPage \@isPartPagefalse
\newcommand{\@drawBkgnd}{
% display trimMarks, chapterMarks and the grid system
\begin{tikzpicture}[remember picture,overlay]
\if@showGridSystem \@drawGridSystem \fi
\if@showTextAreas \@drawTextAreas \fi
\if@showTextAreaBaselines \@drawTextAreaBaselines \fi
\if@press \@drawTrimMarks \fi
\if@isPartPage \@drawPartMark{grey65} \fi
\if@showChapterThumb \@drawChapterThumb{\@chapterThumbColourA}{\@chapterThumbColourB} \fi
\if@dev
\ifthispageodd{%
\node[black, rotate=90, anchor=east] at
(\mW-\trimMark-\bleedW-\@ULsquare/8,-\trimMark-\bleedH-\marginT-\@ULsquare/2)
{\fontsize{5bp}{6bp}\textsf{\textenglish{\today}~|~built with \expandafter\csname [email protected]\endcsname}};
}{}%
\fi
\end{tikzpicture}
}
\AtBeginDocument{%
%\@showGridSystemtrue
\backgroundsetup{
contents=\@drawBkgnd, % Set tikz picture
position={current page.north west}, % Select location
opacity=1.0, % Select opacity
angle=0.0, % Select roation of logo
scale=1.0 % Select scale factor of logo
}
}
%%%%
% cover and title page design, and frontmatter chapters
%%%%
% title, approvedby and previous publication page design
\def\metabox#1{\edef\theprevdepth{\the\prevdepth}\nointerlineskip
\vbox to0pt{#1\vss}\prevdepth=\theprevdepth}
\newcommand{\@drawtitlepage}{%
\begin{centering}
\if@slovene
\hbox{}\vfill
{ \LARGE\scshape\color{P1797}\addfontfeature{Ligatures=Historic}{%
\@title@sl
}\par
}
\vfill
{ \Large\scshape\addfontfeature{Ligatures=Historic}{%
\@author
}\par
}
\vfill
{ \normalsize\scshape\addfontfeature{Ligatures=Historic}{%
doktorska disertacija\\
predana\\
Fakulteti za računalništvo in informatiko\\
kot del izpolnjevanja pogojev za pridobitev naziva\\
doktor znanosti\\
s področja\\
računalništva in informatike