-
Notifications
You must be signed in to change notification settings - Fork 0
/
mon2017dev-aref.cls
1249 lines (1249 loc) · 49.9 KB
/
mon2017dev-aref.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
%%% mon2017dev-aref.cls --- Îôîðìëåííÿ àâòîðåôåðàòó äèñåðòàö³¿ çã³äíî ç âèìîãàìè ÌÎÍ
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\NeedsTeXFormat{LaTeX2e}[1995/12/01]
\ProvidesClass{mon2017dev-aref}
[2021/01/17 v0.03 vakaref support document class (OMB)]
% Îçíà÷åííÿ îïö³é
\RequirePackage{xkeyval}
% Òèï äèñåðòàö³¿
\define@choicekey{mon2017dev-aref.cls}{type}[\val\nr]{c,d,phd,artd,scd}{%
\ifcase\nr\relax
\AtBeginDocument{%
\addto\captionsenglish{%
\def\degreename{candidate of}%
\def\degreephdname{doctor of philosophy}%
}%
\addto\captionsrussian{%
\def\degreename{\cyrk\cyra\cyrn\cyrd\cyri\cyrd\cyra\cyrt\cyra}%
\def\degreephdname{\cyrd\cyro\cyrk\cyrt\cyro\cyrr\cyra\ \cyrf\cyri\cyrl\cyro\cyrs\cyro\cyrf\cyri\cyri}%
}%
\addto\captionsukrainian{%
\def\degreename{\cyrk\cyra\cyrn\cyrd\cyri\cyrd\cyra\cyrt\cyra}%
\def\degreephdname{\cyrd\cyro\cyrk\cyrt\cyro\cyrr\cyra\ \cyrf\cyrii\cyrl\cyro\cyrs\cyro\cyrf\cyrii\cyryi}%
}%
}%
\or
\AtBeginDocument{%
\addto\captionsenglish{\def\degreename{doctor of}}%
\addto\captionsrussian{\def\degreename{\cyrd\cyro\cyrk\cyrt\cyro\cyrr\cyra}}%
\addto\captionsukrainian{\def\degreename{\cyrd\cyro\cyrk\cyrt\cyro\cyrr\cyra}}%
}%
\or
\AtBeginDocument{%
\addto\captionsenglish{\def\degreename{doctor of philosophy}}%
\addto\captionsrussian{\def\degreename{\cyrd\cyro\cyrk\cyrt\cyro\cyrr\cyra\ \cyrf\cyri\cyrl\cyro\cyrs\cyro\cyrf\cyri\cyri}}%
\addto\captionsukrainian{\def\degreename{\cyrd\cyro\cyrk\cyrt\cyro\cyrr\cyra\ \cyrf\cyrii\cyrl\cyro\cyrs\cyro\cyrf\cyrii\cyryi}}%
}%
\or
\AtBeginDocument{%
\addto\captionsenglish{\def\degreename{doctor of arts}}%
\addto\captionsrussian{\def\degreename{\cyrd\cyro\cyrk\cyrt\cyro\cyrr\cyra\ \cyri\cyrs\cyrk\cyru\cyrs\cyrs\cyrt\cyrv\cyra}}%
\addto\captionsukrainian{\def\degreename{\cyrd\cyro\cyrk\cyrt\cyro\cyrr\cyra\ \cyrm\cyri\cyrs\cyrt\cyre\cyrc\cyrt\cyrv\cyra}}%
}%
\or
\AtBeginDocument{%
\addto\captionsenglish{\def\degreename{doctor of science}}%
\addto\captionsrussian{\def\degreename{\cyrd\cyro\cyrk\cyrt\cyro\cyrr\cyra\ \cyrn\cyra\cyru\cyrk}}%
\addto\captionsukrainian{\def\degreename{\cyrd\cyro\cyrk\cyrt\cyro\cyrr\cyra\ \cyrn\cyra\cyru\cyrk}}%
}%
\fi
\ifnum\nr<2\relax
\AtEndOfClass{%
\let\speciality\specialitysci
}%
\def\set@degree{\csname set@degree@\val\endcsname}%
\def\set@speciality{\set@speciality@cd}%
\def\set@abstract@speciality{\set@abstract@speciality@cd}%
\PassOptionsToClass{\val}{vakaref}%
\else
\AtEndOfClass{%
\let\speciality\specialityedu
}%
\def\set@degree{\set@degree@phdartdscd}%
\def\set@speciality{\set@speciality@phdartdscd}%
\def\set@abstract@speciality{\set@abstract@speciality@phdartdscd}%
\fi
\ifnum\nr=4\relax
\AtBeginDocument{%
\def\onesupervisorname{\CYRN\cyra\cyru\cyrk\cyro\cyrv\cyri\cyrishrt\
\cyrk\cyro\cyrn\cyrs\cyru\cyrl\cyrsftsn\cyrt\cyra\cyrn\cyrt}%
\def\manysupervisorsname{\CYRN\cyra\cyru\cyrk\cyro\cyrv\cyrii\
\cyrk\cyro\cyrn\cyrs\cyru\cyrl\cyrsftsn\cyrt\cyra\cyrn\cyrt\cyri}%
}%
\fi
}
% Ïîðÿäîê ðîçì³ùåííÿ íà òèòóëüíîìó àðêóø³
% íàçâè óñòàíîâè ³ íàçâè îðãàíó, äî ñôåðè óïðàâë³ííÿ ÿêîãî íàëåæèòü óñòàíîâà
\define@choicekey{mon2017dev-aref.cls}{instnameorder}{desc,asc,ascd}{%
\def\set@institutions{\csname set@institutions@#1\endcsname}%
}
% Âêàçóâàííÿ øèôðó ñïåö³àë³çîâàíî¿ â÷åíî¿ ðàäè â ðÿäêó ïðî â÷åíîãî ñåêðåòàðÿ
% TODO: ×è õîðîøà íàçâà äëÿ îïö³¿? Ìຠáóòè ³íôîðìàòèâíà, àëå òàêîæ ³ êîðîòêà.
% councilsec = øèôð ðàäè â ðÿäêó ïðî ñåêðåòàðÿ (COUNCIL code in the SECretary line)
\define@boolkey{mon2017dev-aref.cls}{councilsec}[true]{}
% ϳäêëþ÷åííÿ ìîäóëÿ äëÿ ï³äòðèìêè ñïåöèô³÷íèõ âèìîã, ðåêîìåíäàö³é
% îêðåìîãî íàâ÷àëüíîãî çàêëàäó àáî íàóêîâî¿ óñòàíîâè
% ÷è ïîñ³áíèêà, ïîðàäíèêà ç îôîðìëåííÿ äèñåðòàö³¿
\DeclareOptionX<mon2017dev-aref.cls>{guide}{%
\IfFileExists{#1.clo}%
{\AtEndOfClass{\input{#1.clo}}}%
{\ClassError{mon2017dev-aref}{You cannot use option `guide=#1'}%
{File `#1.clo' not found.}}}
% Ðåøòó îïö³é ïåðåíàïðàâëÿºìî äî vakaref
\DeclareOptionX*{%
\PassOptionsToClass{\CurrentOption}{vakaref}%
}
\ExecuteOptionsX{type=c,instnameorder=desc}
\ProcessOptionsX
\LoadClass{vakaref}[2009/04/01]
\RequirePackage{environ}
% Ïàêóíîê suffix ïîòð³áåí äëÿ îçíà÷åííÿ êîìàíä ç ìîäèô³êàòîðàìè (uk), (en) òîùî.
\RequirePackage{suffix}
% Ùîá ðîçêðèâàòè uk, en ó ïîâíó íàçâó ìîâè.
\def\uklanguage{ukrainian}
\def\enlanguage{english}
\def\rulanguage{russian}
% TODO: ßêáè êîðèñòóâà÷ âèêîðèñòîâóâàâ, ñêàæ³ìî, ùå é ôðàíöóçüêó ìîâó,
% òî ìàâ áè ñàìîñò³éíî â ò³ë³ äîêóìåíòà îçíà÷èòè êîìàíäó \frlanguage,
% ùîá êîìàíäè ç ìîäèô³êàòîðàìè ïðàöþâàëè:
% \def\frlanguage{french}
% Òðåáà ïðèäóìàòè, ÿê çà ïîòðåáè ðîáèòè òàê³ îçíà÷åííÿ <<àâòîìàòè÷íî>>
% àáî ÿêîñü ïî-³íøîìó îá³éòè öþ ïðîáëåìó.
% Òèïîâå çíà÷åííÿ ìîäèô³êàòîðà, ùîá ïðàöþâàëè ñòàíäàðòí³ êîìàíäè áåç ìîäèô³êàòîð³â
% TODO: Ïîòð³áíî ïåðåâ³ðèòè, ÷è öå íàñïðàâä³ ïðàöþº,
% êîëè ïåðåïèøó âñ³ êîìàíäè íà ìîäèô³êàòîðè ³ çàáåðó îòî÷åííÿ uk, en.
\def\@modifier{@\languagename}
% Ïàêóíîê datatool âèêîðèñòîâóºòüñÿ äëÿ ðîáîòè ç CSV-ôàéëàìè.
% ³í âèêëèêຠïàêóíîê datatool-base, ÿêèé ÷îìóñü âèêëèêຠamsmath.
% ßêùî â äîêóìåíò³ âèêëèêàòè amsmath (ç ³íøèìè îïö³ÿìè), òî ìàºìî option clash.
% Òîìó ñïðîáóþ âèêëèêàòè datatool ï³çí³øå.
\AtBeginDocument{%
\RequirePackage[separator=;]{datatool}%
% \DTLnewdbonloadfalse
}
% Ïàêóíîê xstring ïîòð³áåí äëÿ ðîáîòè ç ðÿäêàìè.
\usepackage{xstring}
% Äëÿ â³äì³íþâàííÿ íàçâ óñòàíîâ.
% Ó íüîìó âèêîðèñòîâóºòüñÿ êèðèëèöÿ,
% òîìó éîãî òðåáà âèêëèêàòè ï³ñëÿ ïî÷àòêó äîêóìåíòà.
% Àëå òóò íå òðåáà, áî éîãî âèêëèêຠêëàñ vakaref.
% \RequirePackage{casus}
% \AtBeginDocument{\usepackage{casus}}
% (Ñòàðèé âàð³àíò) Ùîá çàáåçïå÷èòè ð³çí³ íàçâè äèñåðòàö³¿ äëÿ ð³çíèõ ìîâ,
% âèêîðèñòîâóºòüñÿ ìåõàí³çì \captions<languagename> (ç babel).
% Àëå ÿêùî â äîêóìåíò³ íåìຠçì³íè ìîâè çàñîáàìè babel,
% òî êîìàíäà \@title áóäå íåîçíà÷åíà.
% Òîìó îçíà÷óºìî ¿¿ ãëîáàëüíî (áî \title áóäå âñåðåäèí³ ìîâíîãî îòî÷åííÿ),
% à òàêîæ äîäàºìî äî \captionsenglish ÷è \captionsukrainian.
% (Íîâèé âàð³àíò) Òåïåð êîìàíäè, ÿê³ çàäàþòüñÿ äâîìà ìîâàìè, ïåðåïèñàí³ òàê,
% ùî êîìàíäè ìàþòü ìîäèô³êàòîðè òèïó (uk), (en) äëÿ â³äïîâ³äíèõ ìîâ,
% ³ êîìàíäè ÷è îòî÷åííÿ äëÿ çì³íè ìîâ çàñîáàìè babel íå ïîòð³áí³,
% òîáòî ìåõàí³çì \captions<languagename> (ç babel) íå âèêîðèñòîâóºòüñÿ.
% Öåé ï³äõ³ä åôåêòèâí³øèé çà ïîïåðåäí³é,
% àëå âèïèñàí³ íèæ÷å TODO çàëèøàþòüñÿ àêòóàëüí³.
% TODO: 1. Öå ïîãàíèé êîä.
% Ó êîìàíäàõ ìàéæå ò³ ñàì³ ä³¿ ïîâòîðþþòüñÿ,
% òîìó òðåáà áóëî á çðîáèòè ñïåö³àëüíó êîìàíäó
% ³ âèêëèêàòè ¿¿ ç êîíêðåòíèìè ïàðàìåòðàìè.
% Àëå äåÿê³ êîìàíäè (\author, ïîâ'ÿçàí³ ç³ speciality, ...) ïîòðåáóþòü îñîáëèâî¿ óâàãè,
% òîìó ï³ä çàãàëüíó ñõåìó íå ï³äïàäàþòü.
% 2. Òðåáà ãëÿíóòè, ÷è º ñòàíäàðòí³ çàñîáè babel äëÿ öüîãî,
% àáî ãëÿíóòè ñïåö³àëüí³ ïàêóíêè òèïó translations, translator òîùî.
% TODO: Ìàáóòü, òàêèé ìåõàí³çì ï³äòðèìêè äâîõ ìîâ íå ïðàöþâàòèìå ç polyglossia
% (àíàëîã babel äëÿ êîðèñòóâà÷³â XeLaTeX òà LuaLaTeX),
% áî â³í ´ðóíòóºòüñÿ íà çàñîáàõ babel.
% Àëå ÿ íå êîðèñòóþñÿ XeLaTeX ÷è LuaLaTeX,
% òîìó íàéáëèæ÷èì ÷àñîì ó öå íå çàãëèáëþâàòèìóñÿ.
\renewcommand{\title}[1]{%
\expandafter\def\csname @title\@modifier\endcsname{#1}%
}
\WithSuffix\def\title(#1){%
\def\@modifier{@\csname#1language\endcsname}%
\title
}
\renewcommand{\author}[1]{%
\expandafter\def\csname @author\@modifier\endcsname{#1}%
\expandafter\def\csname @shortauthor\@modifier\endcsname{\@shortifyname#1\@nil}%
\expandafter\def\csname n@shortauthor\@modifier\endcsname{\n@shortifyname#1\@nil}%
\expandafter\def\csname e@shortauthor\@modifier\endcsname{\e@shortifyname#1\@nil}%
\expandafter\def\csname shortauthor@\@modifier\endcsname{\shortifyname@#1\@nil}%
}
\WithSuffix\def\author(#1){%
\def\@modifier{@\csname#1language\endcsname}%
\author
}
% Ñêîðîòèòè ³ì'ÿ ³ ïî áàòüêîâ³, ïîñòàâèòè ïåðåä ïð³çâèùåì
\def\@shortifyname#1 #2 #3\@nil{%
\@shortify@name#2\@nil
\@shortify@name#3\@nil
#1%
}
% ²ì'ÿ ïîâí³ñòþ, ñêîðîòèòè ò³ëüêè ïî áàòüêîâ³, ïîñòàâèòè ïåðåä ïð³çâèùåì
\def\n@shortifyname#1 #2 #3\@nil{%
#2
\@shortify@name#3\@nil
#1%
}
% Ñêîðîòèòè ³ì'ÿ, ïðîïóñòèòè ïî áàòüêîâ³, ïîñòàâèòè ïåðåä ïð³çâèùåì
\def\e@shortifyname#1 #2 #3\@nil{%
\@shortify@name#2\@nil
#1%
}
\def\@shortify@name#1#2\@nil{#1.~}
% Ñêîðîòèòè ³ì'ÿ ³ ïî áàòüêîâ³, ïîñòàâèòè ï³ñëÿ ïð³çâèùà
\def\shortifyname@#1 #2 #3\@nil{%
#1%
\shortify@name@#2\@nil
\shortify@name@#3\@nil
}
\def\shortify@name@#1#2\@nil{~#1.}
% Íàóêîâèé êåð³âíèê
% Äëÿ êîðåêòíî¿ ðîáîòè êîìàíäè \supervisor òåïåð íå ïîòð³áåí ë³÷èëüíèê @supervisors@count.
% ßêùî êîìàíäó òèïó \@supervisors@ukrainian íå îçíà÷åíî, òî \supervisor âèêëèêàíî âïåðøå.
% Äëÿ ³íøî¿ ìîâè -- â³äïîâ³äíà êîìàíäà.
\renewcommand{\supervisor}[3]{%
\ifcsname @supervisors\@modifier\endcsname
\expandafter\g@addto@macro\csname @supervisors\@modifier\endcsname{\\{#1}{#2}{#3}}%
\expandafter\def\csname @supervisors@caption\@modifier\endcsname{%
\manysupervisorsname:%
}%
\else
\expandafter\def\csname @supervisors\@modifier\endcsname{\\{#1}{#2}{#3}}%
\expandafter\def\csname @supervisors@caption\@modifier\endcsname{%
\onesupervisorname:%
}%
\fi
}
\WithSuffix\def\supervisor(#1){%
\def\@modifier{@\csname#1language\endcsname}%
\supervisor
}
% Øèôð ³ íàçâà ñïåö³àëüíîñò³
% Òèïîâå çíà÷åííÿ äëÿ ôàéëà ñïåö³àëüíîñò³, ÿêùî êîðèñòóâà÷ í³÷îãî íå çàäàâ.
\def\specialityfilename{specsci20150406n394.uk.csv}
% Çà Ïåðåë³êîì íàóêîâèõ ñïåö³àëüíîñòåé
\define@key{specialitysci}{specialityname}{%
\expandafter\def\csname @specialitysci@name\@modifier\endcsname{#1}%
}
\define@key{specialitysci}{degreefield}{%
\expandafter\def\csname @specialitysci@degreefield\@modifier\endcsname{#1}%
}
\define@key{specialitysci}{specialityfile}{%
\def\specialityfilename{#1}%
}
\newcommand{\specialitysci}[2][]{%
\expandafter\def\csname @specialitysci@code\@modifier\endcsname{#2}%
\setkeys{specialitysci}{#1}%
\ifthenelse{%
\expandafter\isundefined
\expandafter{\csname @specialitysci@name\@modifier\endcsname}
\or
\expandafter\isundefined
\expandafter{\csname @specialitysci@degreefield\@modifier\endcsname}%
}
{%
\DTLloaddb{specdb}{\specialityfilename}%
\DTLforeach*
{specdb}
{\Code=Code,\Name=Name,\Degree=Degree}
{%
\DTLifstringeq{\Code}{\csname @specialitysci@code\@modifier\endcsname}
{%
\ifcsname @specialitysci@name\@modifier\endcsname
\else
\expandafter\edef\csname @specialitysci@name\@modifier\endcsname{\Name}%
\fi
\ifcsname @specialitysci@degreefield\@modifier\endcsname
\else
\expandafter\edef\csname @specialitysci@degreefield\@modifier\endcsname{\Degree}%
\fi
\dtlbreak
}
{}%
}%
\DTLifdbexists{specdb}{\DTLcleardb{specdb}\DTLdeletedb{specdb}}{}%
}
{}%
}
\WithSuffix\def\specialitysci(#1){%
\def\@modifier{@\csname#1language\endcsname}%
\def\specialityfilename{specsci20150406n394.#1.csv}%
\specialitysci
}
% Çà Ïåðåë³êîì ãàëóçåé çíàíü ³ ñïåö³àëüíîñòåé,
% çà ÿêèìè çä³éñíþºòüñÿ ï³äãîòîâêà çäîáóâà÷³â âèùî¿ îñâ³òè
\define@key{specialityedu}{specialityname}{%
\expandafter\def\csname @specialityedu@name\@modifier\endcsname{#1}%
}
\define@key{specialityedu}{fieldcode}{%
\expandafter\def\csname @specialityedu@fieldcode\@modifier\endcsname{#1}%
}
\define@key{specialityedu}{fieldname}{%
\expandafter\def\csname @specialityedu@fieldname\@modifier\endcsname{#1}%
}
\define@key{specialityedu}{specialityfile}{%
\def\specialityfilename{#1}%
}
\newcommand{\specialityedu}[2][]{%
\expandafter\def\csname @specialityedu@code\@modifier\endcsname{#2}%
\setkeys{specialityedu}{#1}%
\ifthenelse{%
\expandafter\isundefined
\expandafter{\csname @specialityedu@name\@modifier\endcsname}
\or
\expandafter\isundefined
\expandafter{\csname @specialityedu@fieldname\@modifier\endcsname}%
}
{\DTLloaddb{specdb}{\specialityfilename}}
{}%
\ifcsname @specialityedu@name\@modifier\endcsname
\else
\DTLforeach*
{specdb}
{\Code=Code,\Name=Name}
{%
\DTLifstringeq{\Code}{\csname @specialityedu@code\@modifier\endcsname}
{%
\expandafter\edef\csname @specialityedu@name\@modifier\endcsname{\Name}%
\dtlbreak
}
{}%
}%
\fi
\ifcsname @specialityedu@fieldcode\@modifier\endcsname
\else
% \expandafter\def\csname @specialityedu@fieldcode\@modifier\endcsname
% {\substr{#2}{1}{2}}% Òàê íå ïðàöþº ïîð³âíÿííÿ â \DTLforeach*
\expandafter\def\csname @specialityedu@fieldcode\@modifier\endcsname
{\@gobble@third@digit#2\@nil}% Òîìó ðîáëþ ïðîñò³øå: â³äêèäàþ òðåòþ öèôðó
\fi
\ifcsname @specialityedu@fieldname\@modifier\endcsname
\else
\DTLforeach*
{specdb}
{\Code=Code,\Name=Name}
{%
\DTLifstringeq{\Code}{\csname @specialityedu@fieldcode\@modifier\endcsname}
{%
\expandafter\edef\csname @specialityedu@fieldname\@modifier\endcsname{\Name}%
\dtlbreak
}
{}%
}%
\fi
\DTLifdbexists{specdb}{\DTLcleardb{specdb}\DTLdeletedb{specdb}}{}%
}
\def\@gobble@third@digit#1#2#3\@nil{#1#2}
\WithSuffix\def\specialityedu(#1){%
\def\@modifier{@\csname#1language\endcsname}%
\def\specialityfilename{specedu20170201n53.#1.csv}%
\specialityedu
}
% Óñòàíîâà, äå âèêîíàíà ðîáîòà
\define@key{institution}{altname}{%
\expandafter\def\csname @institution@altname\@modifier\endcsname{#1}%
}
% ϳäðîçä³ë â óñòàíîâ³, äå âèêîíàíî ðîáîòó
% Ïðî òàêó ìîæëèâ³ñòü íåçàëåæíî çàïèòóâàëî ê³ëüêà ëþäåé
% (íà æàëü, íèí³ âæå íå ìîæó âñ³õ çãàäàòè),
% çîêðåìà íà ôîðóì³ linux.org.ua:
% https://linux.org.ua/index.php?topic=689.msg90111#msg90111
\define@key{institution}{department}{%
\expandafter\def\csname @institution@department\@modifier\endcsname{#1}%
}
% Äîïîì³æíà îïö³ÿ äëÿ çàäàííÿ ð³çíèõ ïðèéìåííèê³â,
% êîëè ðîáîòó âèêîíàíî ó â³ää³ë³, íà êàôåäð³, â ²íñòèòóò³ òîùî.
\define@key{institution}{preposition}{%
\expandafter\def\csname @institution@preposition\@modifier\endcsname{#1}%
}
\renewcommand{\institution}[3][]{%
\@split@institution#2,,\@nil
\setkeys{institution}{#1}%
\expandafter\def\csname @towni\@modifier\endcsname{#3}%
}
\def\@split@institution#1,#2,#3\@nil{%
\expandafter\def\csname @institution\@modifier\endcsname{#1}%
\ifx\relax#2\relax
\else
\expandafter\def\csname @institution@office\@modifier\endcsname{\ignorespaces#2}%
\fi
}
\WithSuffix\def\institution(#1){%
\def\@modifier{@\csname#1language\endcsname}%
\institution
}
% Ðàäà, äå áóäå çàõèñò
%% Ñèíòàêñèñ êîìàíäè
%% \council[
%% institution={óñòàíîâà, ï³äïîðÿäêóâàííÿ},
%% altname=àëüòåðíàòèâíà íàçâà óñòàíîâè,
%% address={àäðåñà óñòàíîâè},
%% town=ì³ñòî
%% ]{øèôð ðàäè}
\define@key{council}{institution}{%
\@split@council@institution#1,,\@nil
}
\def\@split@council@institution#1,#2,#3\@nil{%
\expandafter\def\csname @council@institution\@modifier\endcsname{#1}%
\ifx\relax#2\relax
\else
\expandafter\def\csname @council@institution@office\@modifier\endcsname{\ignorespaces#2}%
\fi
}
\define@key{council}{altname}{%
\expandafter\def\csname @council@institution@altname\@modifier\endcsname{#1}%
}
%+TODO: Äëÿ àâòîðåôåðàòó ùå ìຠáóòè address
% TODO: Òðåáà ùå â³äíîâèòè âèð³çàííÿ ì³ñòà ç àäðåñè, ÿêå ðàí³øå áóëî â àâòîðåôåðàò³.
\define@key{council}{address}{%
\expandafter\def\csname @council@address\@modifier\endcsname{#1}%
}
\define@key{council}{town}{%
\expandafter\def\csname @council@town\@modifier\endcsname{#1}%
}
\renewcommand{\council}[2][]{%
\expandafter\def\csname @council@code\@modifier\endcsname{#2}%
\setkeys{council}{#1}%
}
\WithSuffix\def\council(#1){%
\def\@modifier{@\csname#1language\endcsname}%
\council
}
% Êîìàíäà \secretary ç îö³ÿìè ³ îïö³ÿ êëàñó councilsec òåïåð
% äàþòü çìîãó çàäàâàòè äîäàòêîâó ³íôîðìàö³þ äëÿ ðÿäêà ïðî â÷åíîãî ñåêðåòàðÿ:
% íàóêîâèé ñòóï³íü ó÷åíîãî ñåêðåòàðÿ, ó÷åíèé/â÷åíèé, øèôð ðàäè.
% Ïðî öå íåçàëåæíî çàïèòóâàëî ê³ëüêà ëþäåé
% (íà æàëü, íèí³ âæå íå ìîæó âñ³õ çãàäàòè),
% çîêðåìà íà ôîðóì³ linux.org.ua:
% https://linux.org.ua/index.php?topic=689.msg68367#msg68367
% https://linux.org.ua/index.php?topic=689.msg200196#msg200196
\define@key{secretary}{degree}{%
\expandafter\def\csname @secretary@degree\@modifier\endcsname{#1}%
}
% Ñòàðèé âàð³àíò,
% çàì³íåíî íà îïö³þ êëàñó councilsec, äèâ. âèùå.
% \define@boolkey{secretary}{councilcode}[false]{}
% Ñòàðèé âàð³àíò,
% äèâ. íèæ÷å \facsimilesig.
% \define@key{secretary}{signature}{%
% \expandafter\def\csname @secretary@signature\@modifier\endcsname{#1}%
% }
\renewcommand{\secretary}[2][]{%
\setkeys{secretary}{#1}%
\expandafter\def\csname @secretary\@modifier\endcsname{#2}%
}
\WithSuffix\def\secretary(#1){%
\def\@modifier{@\csname#1language\endcsname}%
\secretary
}
\AtBeginDocument{%
% TODO: \secretaryname ÷è \secretarytext? ²íøèé âàð³àíò?
% Êîìàíäó \secretaryname íàçâàíî çà àíàëî㳺þ ç³ ñòàíäàðòíèìè êîìàíäàìè
% \chaptername, \abstractname òîùî.
% Àëå òóò âîíà, ìîæëèâî, íå äóæå äîðå÷íà,
% áî öå ìîæíà ðîçóì³òè ÿê ³ì'ÿ ÷è íàçâà ñåêðåòàðÿ,
% à íàñïðàâä³ öå òåêñò, ÿêèé ïèøåòüñÿ ó â³äïîâ³äíîìó ðÿäêó,
% ³ì'ÿ â ñåêðåòàðÿ º òåæ ³ çàäàºòüñÿ ³íøèì ÷èíîì.
\addto\captionsenglish{%
% TODO: Äîäàòè àäåêâàòíèé àíãë³éñüêèé ïåðåêëàä ç àâòîðèòåòíîãî äæåðåëà.
\def\secretaryname{%
Academic secretary\\
of special academic council%
}%
}
\addto\captionsukrainian{%
\def\secretaryname{%
\CYRU\cyrch\cyre\cyrn\cyri\cyrishrt\
\cyrs\cyre\cyrk\cyrr\cyre\cyrt\cyra\cyrr\\
\cyrs\cyrp\cyre\cyrc\cyrii\cyra\cyrl\cyrii\cyrz\cyro\cyrv\cyra\cyrn\cyro\cyryi\
\cyrv\cyrch\cyre\cyrn\cyro\cyryi\
\cyrr\cyra\cyrd\cyri
}%
}%
}
% TODO: ßêùî òóò çà äîïîìîãîþ \AtBeginDocument
% äîäàâàòè îçíà÷åííÿ \secretaryname äî \captions<language>,
% à ïîò³ì àíàëîã³÷íî ðîáèòè â ïðåàìáóë³ (àëå ï³ñëÿ âèêëèêó babel),
% òî ÿêîñü òàê âèõîäèòü,
% ùî äðóãå ïåðåîçíà÷åííÿ áóäå äîäàâàòèñÿ âæå ï³ñëÿ çì³íè ìîâè,
% à îòæå, ïîòðàïëÿº â \captions<language>, àëå íå âèêîðèñòîâóºòüñÿ.
% Öå ìຠòàêèé âèãëÿä, í³áè âîíî ³ãíîðóºòüñÿ ïðîñòî.
% Òîáòî â ïðåàìáóë³ òðåáà ïðîñòî â \AtBeginDocument
% ïåðåîçíà÷óâàòè \secretaryname íåçàëåæíèì â³ä ìîâè ÷èíîì.
% Öå íå âåëèêå îáìåæåííÿ, áî íà òèòóëüíîìó àðêóø³ òåêñò áóäå ò³ëüêè îäí³ºþ ç ìîâ,
% òîìó êîðèñòóâà÷ ïåðåîçíà÷èòü ïîòð³áíèé éîìó âàð³àíò.
% Àëå íåçðîçóì³ëî, ÷îìó òàê â³äáóâàºòüñÿ.
% Êîëèñü, çäàºòüñÿ, ïåðåîçíà÷åííÿ öèõ çàëåæíèõ â³ä ìîâè êîìàíä
% ó ïðåàìáóë³ ñàìå òàê ³ ïðàöþâàëî (òàê, ÿê ÿ î÷³êóâàâ çàðàç).
% Ìîæëèâî, ÿê³ñü çì³íè â babel ñïðè÷èíèëè öå?
%
% Ôàêñèì³ëüíèé ï³äïèñ
% \facsimilesig#1(#2)[#3]#4 -> \put(#2){\includegraphics[#3]{#4}}
% #1 = author àáî secretary
% (#2) = (çñóâ ïî x, çñóâ ïî y)
% [#3] = [ïàðàìåòðè êîìàíäè \includegraphics]
% #4 = ³ì'ÿ ôàéëà ³ç ôàêñèì³ëüíèì ï³äïèñîì
% Ïðî âñòàâêó ñêàíîâàíîãî ï³äïèñó â÷åíîãî ñåêðåòàðÿ àáî äèñåðòàíòà
% íåçàëåæíî çàïèòóâàëî ê³ëüêà ëþäåé
% (íà æàëü, íèí³ âæå íå ìîæó âñ³õ çãàäàòè),
% çîêðåìà íà ôîðóì³ linux.org.ua:
% https://linux.org.ua/index.php?topic=689.msg68193#msg68193
% https://linux.org.ua/index.php?topic=689.msg200078#msg200078
% https://linux.org.ua/index.php?topic=689.msg202533#msg202533
% NOTE: Íå ìîæíà íàçèâàòè öþ êîìàíäó \signature,
% áî òàêà êîìàíäà âæå º â êëàñ³ letter (ç³ ñõîæèì, àëå ³íøèì ïðèçíà÷åííÿì),
% à òàêîæ, ³ìîâ³ðíî, â ³íøèõ êëàñàõ äëÿ îôîðìëåííÿ ëèñò³â:
% https://en.wikibooks.org/wiki/LaTeX/Letters
% ² ïî ñóò³ öå íå «ï³äïèñ», à «ôàêñèì³ëüíèé ï³äïèñ» («facsimile signature»),
% òîáòî êîï³ÿ ï³äïèñó îñîáè, çðîáëåíà â åëåêòðîííîìó âèãëÿä³ àáî ó âèãëÿä³ ïå÷àòêè.
% Îäíå ñëîâî facsimile âèêîðèñòîâóâàòè äëÿ íàçâè êîìàíäè òåæ ìîæå áóòè íåäîðå÷íî,
% áî âîíî, âçàãàë³ êàæó÷è, ïîçíà÷ຠïåâíó ôîðìó âèäàííÿ:
% https://en.wikipedia.org/wiki/Facsimile
% À òàêîæ ìîæå âèêîðèñòîâóâàòèñÿ ó çâ'ÿçêó ç òàêèìè ïðèñòðîÿìè ÿê ôàêñ:
% https://www.ctan.org/pkg/facsimile
% Òîìó êîìàíäà íàçèâàºòüñÿ \facsimilesig,
% ùîá íàçâà àäåêâàòíî ïåðåäàâàëà çì³ñò,
% áóëà â³äíîñíî êîðîòêîþ
% ³ íå êîíôë³êòóâàëà ç íàçâàìè ³íøèõ êîìàíä â ³íøèõ êëàñàõ.
\def\facsimilesig#1(#2)[#3]#4{%
\expandafter\def\csname #1@signature\endcsname{%
\put(#2){\includegraphics[#3]{#4}}%
}%
}
%% Ñèíòàêñèñ êîìàíäè
%% \library{íàçâà}{àäðåñà}
% Êîìàíäà \library òåïåð êîðåêòíî ïðàöþº,
% êîëè á³áë³îòåêà íàçèâàºòüñÿ íå ïðîñòî «á³áë³îòåêà Äåÿêîãî óí³âåðñèòåòó»,
% à ÿêîñü òèïó «Íàóêîâî-òåõí³÷íà á³áë³îòåêà Äåÿêîãî óí³âåðñèòåòó».
% Äëÿ çàäàííÿ òàêî¿ ñïåö³àëüíî¿ íàçâè
% âèêîðèñòîâóºòüñÿ ïåðøèé àðãóìåíò êîìàíäè \library.
% Òàêîæ âèïðàâëåíî ïîìèëêó, ÷åðåç ÿêó ïåðøèé àðãóìåíò ïðîñòî ³ãíîðóâàâñÿ.
% Ïðî öþ ïîìèëêó 2020-12-29 ïîâ³äîìèâ ipvm:
% https://linux.org.ua/index.php?topic=689.msg203518#msg203518
\renewcommand{\library}[2]{%
\ifx\relax#1\relax
\else
\expandafter\def\csname @library@institution\@modifier\endcsname{#1}%
\fi
\ifx\relax#2\relax
\else
\expandafter\def\csname @library@address\@modifier\endcsname{#2}%
\fi
}
\WithSuffix\def\library(#1){%
\def\@modifier{@\csname#1language\endcsname}%
\library
}
% Äëÿ îôîðìëåííÿ ³íôîðìàö³¿ ïðî íàóêîâîãî êåð³âíèêà íà òèòóëüíîìó àðêóø³.
% Òåïåð ñõîæå íà òå, ùî â àâòîðåôåðàò³.
% (äîäàíî ç vakaref.cls ç³ çì³íàìè)
\renewenvironment{listofpersons}[1]
{\list{#1\hfil}{\topsep0pt\parsep0pt\itemsep.5\parskip
\ifcsname @supervisors@\languagename\endcsname
\settowidth\@tempdima{#1}%
\setlength\labelwidth{\@tempdima}%
\else
\settowidth\@tempdima{\csname @supervisors@caption@\languagename\endcsname}
\settowidth\@tempdimb{\@opponents@caption}
\ifdim\@tempdima>\@tempdimb
\setlength\labelwidth{\@tempdima}%
\else
\setlength\labelwidth{\@tempdimb}%
\fi
\fi
\setlength\leftmargin{\labelwidth}%
\addtolength\leftmargin{\labelsep}%
\def\makelabel##1{##1}%
\def\makephantomlabel##1{\phantom{##1}}}%
\rightskip\@flushglue% ! íåð³âíèé ïðàâèé êðàé, àëå ïðè äóæå âóçüê³é êîëîíö³ ïîãàíî
% ? ìîæóòü âèíèêàòè Underfull \hbox
}
{\endlist}
% Òèòóëüíèé àðêóø
\renewcommand{\maketitle}{%
\begin{titlepage}%
% \@ifundefined{@council@institutiont}
% {\let\@council@institutiont\@council@institution}{\relax}%
% \@ifundefined{@council@institutiont@office}
% {\let\@council@institutiont@office\relax}{\relax}%
\begin{center}%
\@makecover
\end{center}%
\newpage
\parindent=0pt\relax
\parskip=10pt plus 10pt minus 10pt
\@makereverse
\end{titlepage}%
}
% Êîìàíäè äëÿ ïðàâèëüíîãî ðîçì³ùåííÿ íà òèòóëüíîìó àðêóø³ íàçâ óñòàíîâ
% çàëåæíî â³ä âèáðàíî¿ îïö³¿
\def\set@institutions@desc{%
{\scshape
\ifcsname @council@institution@office@\languagename\endcsname
\csname @council@institution@office@\languagename\endcsname\par
\fi
\csname @council@institution@\languagename\endcsname\par}
}
\def\set@institutions@asc{%
{\scshape
\csname @council@institution@\languagename\endcsname\par
\ifcsname @council@institution@office@\languagename\endcsname
\csname @council@institution@office@\languagename\endcsname\par
\fi}
}
% REVIEW: Òóò æîðñòêî ïðîïèñàíî
% \@institution@office@ukrainian ³ \@council@institutiont@office@ukrainian,
% áî ³íàêøå íå âèõîäèòü.
% Íàñïðàâä³, äëÿ àíãë³éñüêî¿ ìîâè âàð³àíò ç â³äì³íþâàííÿì ³ íå ïîòð³áåí.
% Àëå òðåáà òàê çðîáèòè, ùîá êîä ç â³äì³íþâàííÿì íå ì³ã âèêîíóâàòèñÿ,
% êîëè ãîëîâíà ìîâà äîêóìåíòà -- àíãë³éñüêà.
\def\set@institutions@ascd{%
{\scshape
\csname @council@institution@\languagename\endcsname\par
\ifcsname @council@institution@office@\languagename\endcsname
\iflanguage{ukrainian}%
{\transformsentence{G}{\@council@institution@office@ukrainian} }%
{\csname @council@institution@office@\languagename\endcsname}%
\par
\fi}
}
% Êîìàíäè äëÿ ïðàâèëüíîãî ðîçì³ùåííÿ ³íôîðìàö³¿ ïðî ñïåö³àëüí³ñòü
% çàëåæíî â³ä òèïó äèñåðòàö³¿
% (íà òèòóëüíîìó àðêóø³ é â àíîòàö³¿)
% Àðòåì ×óéêîâ çàïðîïîíóâàâ 2019/10/01 çðîáèòè «çì³øàíèé» ñòóï³íü,
% ùîá íà íà òèòóëüíîìó àðêóø³ é â àíîòàö³¿
% áóëî íàïèñàíî øèôðè é íàçâè ñïåö³àëüíîñòåé çà îáîìà ïåðåë³êàìè,
% à äëÿ òèïó äèñåðòàö³¿ c ùå é ñòóï³íü ó âèãëÿä³
% «êàíäèäàòà ... íàóê (äîêòîðà ô³ëîñîô³¿)»
% Çà éîãî ñëîâàìè â ²íñòèòóò³ ìàòåìàòèêè ââàæàþòü ïðàâèëüíèìè îáèäâà âàð³àíòè îôîðìëåííÿ:
% ñòàíäàðòíèé ³ çì³øàíèé.
% Ó êîìàíäè äëÿ ñïåö³àëüíîñò³ ³ ñòóïåíÿ âíåñåí³ òàê³ çì³íè,
% ùî òåïåð ìîæóòü îäíî÷àñíî âèêîðèñòîâóâàòèñÿ â³äîìîñò³,
% çàäàí³ â îáîõ êîìàíäàõ: \specialitysci ³ \specialityedu.
\def\set@speciality@cd{%
\csname @specialitysci@code@\languagename\endcsname\
\cdash---
\csname @specialitysci@name@\languagename\endcsname
\ifcsname @specialityedu@code@\languagename\endcsname
\par
\csname @specialityedu@code@\languagename\endcsname\
\cdash---
\csname @specialityedu@name@\languagename\endcsname
\fi
}
\def\set@abstract@speciality@cd{%
\csname @specialitysci@code@\languagename\endcsname\
\cdash---
\csname @specialitysci@name@\languagename\endcsname
\ifcsname @specialityedu@code@\languagename\endcsname
\ (\csname @specialityedu@code@\languagename\endcsname\
\cdash---
\csname @specialityedu@name@\languagename\endcsname)%
\fi
}
\def\set@speciality@phdartdscd{%
\csname @specialityedu@code@\languagename\endcsname\
\cdash---
\csname @specialityedu@name@\languagename\endcsname\par
\csname @specialityedu@fieldname@\languagename\endcsname
}
\def\set@abstract@speciality@phdartdscd{%
\csname @specialityedu@code@\languagename\endcsname\
\cdash---
\csname @specialityedu@name@\languagename\endcsname
}
% Äëÿ mon2017dev.karazin.clo òðåáà degreefield ³ â íàçèâíîìó, ³ â ðîäîâîìó â³äì³íêó.
% Òîìó çì³íèâ ó CSV-ôàéë³: òåïåð òàì çáåð³ãàºòüñÿ ïðîñòî «ïåäàãîã³÷í³»,
% à öÿ êîìàíäà çì³íþº íà «ïåäàãîã³÷íèõ íàóê».
% ²íôîðìàö³ÿ ïðî òå, êîëè ³ ÿê ïèñàòè, çâ³äñè:
% https://uk.wikipedia.org/wiki/Êàíäèäàò_íàóê#Íàóêîâ³_ãàëóç³
% https://uk.wikipedia.org/wiki/Äîêòîð_íàóê#Íîìåíêëàòóðà_íàóêîâîãî_ñòóïåíÿ_«äîêòîð_íàóê»
\def\degreefield@tf@ukrainian#1{%
\IfEndWith{#1}{\cyrii}{%
\StrGobbleRight{#1}{1}\cyri\cyrh\ \cyrn\cyra\cyru\cyrk
% \case[adjective]{G}{#1} íàóê% íå ïðàöþº òóò
}{%
\IfStrEqCase{#1}{%
{\cyra\cyrr\cyrh\cyrii\cyrt\cyre\cyrk\cyrt\cyru\cyrr\cyra}% àðõ³òåêòóðà
{\StrGobbleRight{#1}{1}\cyri}% \case{G}{#1} íå ïðàöþº òóò
{\cyrk\cyru\cyrl\cyrsftsn\cyrt\cyru\cyrr\cyro\cyrl\cyro\cyrg\cyrii\cyrya}% êóëüòóðîëîã³ÿ
{\StrGobbleRight{#1}{1}\cyryi}%
{\cyrm\cyri\cyrs\cyrt\cyre\cyrc\cyrt\cyrv\cyro\cyrz\cyrn\cyra\cyrv\cyrs\cyrt\cyrv\cyro}% ìèñòåöòâîçíàâñòâî
{\StrGobbleRight{#1}{1}\cyra}%
{\cyrd\cyre\cyrr\cyrzh\cyra\cyrv\cyrn\cyre\space
\cyru\cyrp\cyrr\cyra\cyrv\cyrl\cyrii\cyrn\cyrn\cyrya}% äåðæàâíå óïðàâë³ííÿ
{\cyrn\cyra\cyru\cyrk\ \cyrz\
\cyrd\cyre\cyrr\cyrzh\cyra\cyrv\cyrn\cyro\cyrg\cyro\
\cyru\cyrp\cyrr\cyra\cyrv\cyrl\cyrii\cyrn\cyrn\cyrya}%
{\cyrf\cyrii\cyrz\cyri\cyrch\cyrn\cyre\space
\cyrv\cyri\cyrh\cyro\cyrv\cyra\cyrn\cyrn\cyrya\space
\cyrii\space
\cyrs\cyrp\cyro\cyrr\cyrt}% ô³çè÷íå âèõîâàííÿ ³ ñïîðò
{\cyrn\cyra\cyru\cyrk\ \cyrz\
\cyrf\cyrii\cyrz\cyri\cyrch\cyrn\cyro\cyrg\cyro\
\cyrv\cyri\cyrh\cyro\cyrv\cyra\cyrn\cyrn\cyrya\
\cyrii\
\cyrs\cyrp\cyro\cyrr\cyrt\cyru}%
{\cyrs\cyro\cyrc\cyrii\cyra\cyrl\cyrsftsn\cyrn\cyrii\space
\cyrk\cyro\cyrm\cyru\cyrn\cyrii\cyrk\cyra\cyrc\cyrii\cyryi}% ñîö³àëüí³ êîìóí³êàö³¿
{\cyrn\cyra\cyru\cyrk\ \cyrii\cyrz\
\cyrs\cyro\cyrc\cyrii\cyra\cyrl\cyrsftsn\cyrn\cyri\cyrh\
\cyrk\cyro\cyrm\cyru\cyrn\cyrii\cyrk\cyra\cyrc\cyrii\cyrishrt}%
}%
[#1]%
}%
}
\def\degreefield@tf@russian#1{%
\IfEndWith{#1}{\cyre}{%
\StrGobbleRight{#1}{1}\cyrh\ \cyrn\cyra\cyru\cyrk
% \case[adjective]{G}{#1} íàóê% íå ïðàöþº òóò
}{%
\IfStrEqCase{#1}{%
{\cyra\cyrr\cyrh\cyri\cyrt\cyre\cyrk\cyrt\cyru\cyrr\cyra}% àðõèòåêòóðà
{\StrGobbleRight{#1}{1}\cyrery}% \case{G}{#1} íå ïðàöþº òóò
{\cyrk\cyru\cyrl\cyrsftsn\cyrt\cyru\cyrr\cyro\cyrl\cyro\cyrg\cyri\cyrya}% êóëüòóðîëîãèÿ
{\StrGobbleRight{#1}{1}\cyri}%
{\cyri\cyrs\cyrk\cyru\cyrs\cyrs\cyrt\cyrv\cyro\cyrv\cyre\cyrd\cyre\cyrn\cyri\cyre}% èñêóññòâîâåäåíèå% FIXME: íå ïðàöþº, áî çàê³í÷óºòüñÿ íà å, à îòæå, ïîòðàïëÿº â ³íøèé âèïàäîê
{\StrGobbleRight{#1}{1}\cyrya}%
{\cyrg\cyro\cyrs\cyru\cyrd\cyra\cyrr\cyrs\cyrt\cyrv\cyre\cyrn\cyrn\cyro\cyre\space
\cyru\cyrp\cyrr\cyra\cyrv\cyrl\cyre\cyrn\cyri\cyre}% ãîñóäàðñòâåííîå óïðàâëåíèå% FIXME: íå ïðàöþº, áî çàê³í÷óºòüñÿ íà å, à îòæå, ïîòðàïëÿº â ³íøèé âèïàäîê
{\cyrn\cyra\cyru\cyrk\ \cyrp\cyro\
\cyrg\cyro\cyrs\cyru\cyrd\cyra\cyrr\cyrs\cyrt\cyrv\cyre\cyrn\cyrn\cyro\cyrm\cyru\
\cyru\cyrp\cyrr\cyra\cyrv\cyrl\cyre\cyrn\cyri\cyryu}%
{\cyrf\cyri\cyrz\cyri\cyrch\cyre\cyrs\cyrk\cyro\cyre\space
\cyrv\cyro\cyrs\cyrp\cyri\cyrt\cyra\cyrn\cyri\cyre\space
\cyri\space
\cyrs\cyrp\cyro\cyrr\cyrt}% ôèçè÷åñêîå âîñïèòàíèå è ñïîðò
{\cyrn\cyra\cyru\cyrk\ \cyrp\cyro\
\cyrf\cyri\cyrz\cyri\cyrch\cyre\cyrs\cyrk\cyro\cyrm\cyru\
\cyrv\cyro\cyrs\cyrp\cyri\cyrt\cyra\cyrn\cyri\cyryu\
\cyri\
\cyrs\cyrp\cyro\cyrr\cyrt\cyru}%
{\cyrs\cyro\cyrc\cyri\cyra\cyrl\cyrsftsn\cyrn\cyrery\cyre\space
\cyrk\cyro\cyrm\cyrm\cyru\cyrn\cyri\cyrk\cyra\cyrc\cyri\cyri}% ñîöèàëüíûå êîììóíèêàöèè
{\cyrn\cyra\cyru\cyrk\ \cyrp\cyro\
\cyrs\cyro\cyrc\cyri\cyra\cyrl\cyrsftsn\cyrn\cyrery\cyrm\
\cyrk\cyro\cyrm\cyrm\cyru\cyrn\cyri\cyrk\cyra\cyrc\cyri\cyrya\cyrm}%
}%
[#1]%
}%
}
% TODO: Àíãë³éñüêîþ òåæ ìîæóòü áóòè ð³çí³ âàð³àíòè (òèïó ìèñòåöòâîçíàâñòâà).
% Àëå ó ìåíå íèí³ íåìຠïîâíîãî ïåðåë³êó íàóêîâèõ ñïåö³àëüíîñòåé àíãë³éñüêîþ.
% Òîìó çàëèøó öå íà ïîò³ì (ÿêùî âèíèêíå ïîòðåáà).
\def\degreefield@tf@english#1{#1 sciences}
\def\set@degree@c{%
\degreename\
\csname degreefield@tf@\languagename\endcsname{\csname @specialitysci@degreefield@\languagename\endcsname}%
\ifcsname @specialityedu@code@\languagename\endcsname
\ (\degreephdname)%
\fi
}
% Âèïðàâèâ ìåõàí³÷íó ïîìèëêó, ÿêó ÿ çðîáèâ ùå ó âåðñ³¿ 0.04 êëàñó mon2017dev,
% êîëè ðîáèâ ð³çí³ êîìàíäè \set@degree äëÿ òèï³â äèñåðòàö³¿ c ³ d.
% Êîìàíäè \degreename\ ³ \csname ÷îìóñü ïîì³íÿëèñÿ ì³ñöÿìè,
% òîìó çëàìàëîñÿ îôîðìëåííÿ íàïèñó ïðî íàóêîâèé ñòóï³íü
% íà òèòóëüíîìó àðêóø³ é â àíîòàö³¿ äëÿ òèïó äèñåðòàö³¿ d.
% Þë³ÿ Áåðíàöüêà ïîâ³äîìèëà 2020/07/28 ïðî öþ ïðîáëåìó.
\def\set@degree@d{%
\degreename\
\csname degreefield@tf@\languagename\endcsname{\csname @specialitysci@degreefield@\languagename\endcsname}%
}
\def\set@degree@phdartdscd{%
\degreename
}
\def\@makecover{%
\set@institutions
\vspace{\stretch{3}}%
{\bfseries\expandafter\expandafter\expandafter\emphsurname\csname @author@\languagename\endcsname
\ifcsname author@signature\endcsname
\begin{picture}(0,0)
\csname author@signature\endcsname
\end{picture}
\fi
\par}%
\vspace{\stretch{2}}%
{\raggedleft \CYRU\CYRD\CYRK\ \@udc \par}%
\vspace{\stretch{1}}%
{\large\bfseries\scshape \csname @title@\languagename\endcsname \par}%
\vspace{\stretch{2}}%
\set@speciality\par
\vspace{\stretch{3}}%
\CYRA\cyrv\cyrt\cyro\cyrr\cyre\cyrf\cyre\cyrr\cyra\cyrt\linebreak[1]%
\cyrd\cyri\cyrs\cyre\cyrr\cyrt\cyra\cyrc\cyrii\cyryi\
\cyrn\cyra\ \cyrz\cyrd\cyro\cyrb\cyru\cyrt\cyrt\cyrya\
\cyrn\cyra\cyru\cyrk\cyro\cyrv\cyro\cyrg\cyro\
\cyrs\cyrt\cyru\cyrp\cyre\cyrn\cyrya\linebreak[1]%
\set@degree\par
\vspace{\stretch{3}}%
\ifcsname @council@town@\languagename\endcsname
\csname @council@town@\languagename\endcsname
\else
\csname @towni@\languagename\endcsname
\fi
\ --- \@year}
\def\@makereverse{%
\CYRD\cyri\cyrs\cyre\cyrr\cyrt\cyra\cyrc\cyrii\cyrie\cyryu\
\cyrie\ \@thesistype.\par
\CYRR\cyro\cyrb\cyro\cyrt\cyra\
\cyrv\cyri\cyrk\cyro\cyrn\cyra\cyrn\cyra\
\ifcsname @institution@preposition@\languagename\endcsname
\csname @institution@preposition@\languagename\endcsname
\else
\cyrv
\fi
\
% TODO: Ïåðåâ³ðèòè âèìîãè äî îôîðìëåííÿ.
% Ìîæëèâî, òóò çàâæäè òðåáà ïèñàòè ïîâíó íàçâó â³äîìñòâà,
% à òîìó âèêîðèñòàííÿ @institution@altname íåäîö³ëüíå?
\ifcsname @institution@department@\languagename\endcsname
\iflanguage{ukrainian}%
{\transformsentence{L}{\@institution@department@ukrainian} }%
{\csname @institution@department@\languagename\endcsname}%
\
\ifcsname @institution@altname@\languagename\endcsname
\iflanguage{ukrainian}%
{\transformsentence{G}{\@institution@altname@ukrainian} }%
{of \csname @institution@altname@\languagename\endcsname}%
\else
\iflanguage{ukrainian}%
{\transformsentence{G}{\@institution@ukrainian} }%
{of \csname @institution@\languagename\endcsname}%
\ifcsname @institution@office@\languagename\endcsname
\
\iflanguage{ukrainian}%
{\transformsentence{G}{\@institution@office@ukrainian} }%
{of \csname @institution@office@\languagename\endcsname}%
\fi
\fi
\else
\ifcsname @institution@altname@\languagename\endcsname
\iflanguage{ukrainian}%
{\transformsentence{L}{\@institution@altname@ukrainian} }%
{\csname @institution@altname@\languagename\endcsname}%
\else
\iflanguage{ukrainian}%
{\transformsentence{L}{\@institution@ukrainian} }%
{\csname @institution@\languagename\endcsname}%
\ifcsname @institution@office@\languagename\endcsname
\
\iflanguage{ukrainian}%
{\transformsentence{G}{\@institution@office@ukrainian} }%
{of \csname @institution@office@\languagename\endcsname}%
\fi
\fi
\fi
.\par
{\let\\\@format@person
\ifcsname @supervisors@\languagename\endcsname
\begin{listofpersons}{\@supervisors@caption}
\csname @supervisors@\languagename\endcsname\relax
\end{listofpersons}
\fi
\begin{listofpersons}{\@opponents@caption}
\@opponents\relax
\end{listofpersons}}%
\@ifundefined{@linstitution}{}{%
\CYRP\cyrr\cyro\cyrv\cyrii\cyrd\cyrn\cyra\ \cyru\cyrs\cyrt\cyra\cyrn\cyro\cyrv\cyra:\
\@linstitution, \@linstitution@town.\par}
\vfill%\vspace{30pt plus 30pt minus 30pt}%
\CYRZ\cyra\cyrh\cyri\cyrs\cyrt\
\cyrv\cyrii\cyrd\cyrb\cyru\cyrd\cyre\cyrt\cyrsftsn\cyrs\cyrya\
\@ifundefined{@defencedate}{\typedateholder}
{\expandafter\typedate\@defencedate\@nil}%
\ \cyro\
\@ifundefined{@defencetime}{\typetimeholder}
{\expandafter\typetime\@defencetime\@nil}%
\ \cyrn\cyra\ \cyrz\cyra\cyrs\cyrii\cyrd\cyra\cyrn\cyrn\cyrii\
\cyrs\cyrp\cyre\cyrc\cyrii\cyra\cyrl\cyrii\cyrz\cyro\cyrv\cyra\cyrn\cyro\cyryi\
\cyrv\cyrch\cyre\cyrn\cyro\cyryi\ \cyrr\cyra\cyrd\cyri\
\csname @council@code@\languagename\endcsname\
\ifcsname @council@institution@altname@\languagename\endcsname
\iflanguage{ukrainian}%
{\transformsentence{G}{\@council@institution@altname@ukrainian} }%
{\csname @council@institution@altname@\languagename\endcsname}%
\else
\iflanguage{ukrainian}%
{\transformsentence{G}{\@council@institution@ukrainian} }%
{\csname @council@institution@\languagename\endcsname}%
\ifcsname @council@institution@office@\languagename\endcsname
\
\iflanguage{ukrainian}%
{\transformsentence{G}{\@council@institution@office@ukrainian} }%
{of \csname @council@institution@office@\languagename\endcsname}%
\fi
\fi
\ \cyrz\cyra\ \cyra\cyrd\cyrr\cyre\cyrs\cyro\cyryu:
\csname @council@address@\languagename\endcsname.\par
\vfil%\smallskip
\CYRZ\ \cyrd\cyri\cyrs\cyre\cyrr\cyrt\cyra\cyrc\cyrii\cyrie\cyryu\
\cyrm\cyro\cyrzh\cyrn\cyra\
\cyro\cyrz\cyrn\cyra\cyrishrt\cyro\cyrm\cyri\cyrt\cyri\cyrs\cyrsftsn\
\cyru\
\ifcsname @library@institution@\languagename\endcsname
\iflanguage{ukrainian}%
{\transformsentence{L}{\@library@institution@ukrainian} }%
{\csname @library@institution@\languagename\endcsname}%
\else
\cyrb\cyrii\cyrb\cyrl\cyrii\cyro\cyrt\cyre\cyrc\cyrii\
\ifcsname @council@institution@altname@\languagename\endcsname
\iflanguage{ukrainian}%
{\transformsentence{G}{\@council@institution@altname@ukrainian} }%
{\csname @council@institution@altname@\languagename\endcsname}%
\else
\iflanguage{ukrainian}%
{\transformsentence{G}{\@council@institution@ukrainian} \ \transformsentence{G}{\@council@institution@office@ukrainian} }%
{\csname @council@institution@\languagename\endcsname\ of \csname @council@institution@office@\languagename\endcsname}%
\fi
\fi
\ifcsname @library@address@\languagename\endcsname
\ \cyrz\cyra\ \cyra\cyrd\cyrr\cyre\cyrs\cyro\cyryu:
\csname @library@address@\languagename\endcsname
\fi
\@addpunct{.}\par
\vfill%\vspace{10pt plus 10pt minus 10pt}%
\CYRA\cyrv\cyrt\cyro\cyrr\cyre\cyrf\cyre\cyrr\cyra\cyrt\
\cyrr\cyro\cyrz\cyrii\cyrs\cyrl\cyra\cyrn\cyri\cyrishrt\
\@ifundefined{@postdate}{\typedateholder}
{\expandafter\typedate\@postdate\@nil}\par
\vfill%\vspace{20pt plus 20pt minus 20pt}%
% \CYRU\cyrch\cyre\cyrn\cyri\cyrishrt\
% \cyrs\cyre\cyrk\cyrr\cyre\cyrt\cyra\cyrr\newline
% \cyrs\cyrp\cyre\cyrc\cyrii\cyra\cyrl\cyrii\cyrz\cyro\cyrv\cyra\cyrn\cyro\cyryi\
% \cyrv\cyrch\cyre\cyrn\cyro\cyryi\ \cyrr\cyra\cyrd\cyri
\secretaryname
% Îïö³þ êîìàíäè councilcode çàì³íåíî íà îïö³þ êëàñó councilsec
% \ifKV@secretary@councilcode
% \
% \csname @council@code@\languagename\endcsname
% \fi
\csname ifKV@mon2017dev-aref.cls@councilsec\endcsname
\
\csname @council@code@\languagename\endcsname
\fi
\ifcsname @secretary@degree@\languagename\endcsname
\\
\csname @secretary@degree@\languagename\endcsname
\fi
\hfill
\ifcsname secretary@signature\endcsname
% Îòî÷åííÿ minipage äëÿ òîãî, ùîá òåêñò îáò³êàâ çîáðàæåííÿ.
% Àëå \raisebox ðóõຠòåêñò, òîáòî ÿêùî çàäàòè â³ä'ºìíå çíà÷åííÿ,
% òî íå çîáðàæåííÿ ïîñóíåòüñÿ âíèç, à ñóñ³äí³é òåêñò -- âãîðó.
% Âàð³àíò ³ç çàäàííÿì ï³äïèñó êëþ÷åì êîìàíäè \secretary â³äõèëèâ çðåøòîþ, áî
% 1) âàæêî çàïðîãðàìóâàòè ãíó÷êå êåðóâàííÿ ðîçì³ùåííÿì ï³äïèñó,
% 2) ó ñèòóàö³¿ ç äâîìà ìîâàìè äëÿ êîæíî¿ ìîâè òðåáà çàäàâàòè ïî ñóò³ òå ñàìå.
% \raisebox{-10pt}{%
% \begin{minipage}[b][0pt]{50pt}
% \expandafter\expandafter\expandafter\includegraphics\csname @secretary@signature@\languagename\endcsname
% \end{minipage}
% }%
% Òîìó ôàéë ï³äïèñó ³ ïàðàìåòðè éîãî ðîçì³ùåííÿ çàäàþòüñÿ îêðåìîþ êîìàíäîþ,
% à çîáðàæåííÿ ðîçì³ùóºòüñÿ òàê, ÿê çàïðîïîíîâàíî òóò:
% https://tex.stackexchange.com/a/328858
\begin{picture}(0,0)
\csname secretary@signature\endcsname
\end{picture}
\fi
\hfill
%\placeholder{\cyrp\cyrii\cyrd\cyrp\cyri\cyrs}\quad
\csname @secretary@\languagename\endcsname\par}
% Abstract áóäå çáèðàòèñÿ íà ì³ñö³, à íå êîï³þâàòèñÿ ³ ïåðåíîñèòèñÿ
\define@cmdkey{abstract}{language}{}
\define@cmdkey{abstract}{chapter}[true]{}
\define@boolkey{abstract}{header}[true]{}
\renewenvironment{abstract}[1][]{%
\def\cmdKV@abstract@chapter{false}%
\KV@abstract@headertrue
\setkeys{abstract}{#1}%
\ifdefined\cmdKV@abstract@language
\expandafter\selectlanguage\expandafter{\cmdKV@abstract@language}%
\fi
\ifdefined\cmdKV@abstract@chapter
\def\@tempa{true}%
\def\@tempb{false}%
\ifx\cmdKV@abstract@chapter\@tempb
\bigskip
\else
\ifx\cmdKV@abstract@chapter\@tempa
\else
\def\abstractname{\cmdKV@abstract@chapter}%
\fi
\part{\abstractname}%
\fi
\else
\part{\abstractname}%
\fi
\@mkboth{\MakeUppercase\abstractname}{\MakeUppercase\abstractname}%
\ifKV@abstract@header
\@abstract
\fi
}{%
}
\def\@abstract{%
\emph{\csname shortauthor@@\languagename\endcsname}
\csname @title@\languagename\endcsname.
\cdash---
\manuscriptname.
\par
\set@thesisdescription.
\cdash---
\ifcsname @council@institution@altname@\languagename\endcsname
\csname @council@institution@altname@\languagename\endcsname
\else
\ifcsname @council@institution@\languagename\endcsname
\ifcsname @council@institution@office@\languagename\endcsname
\csname @council@institution@office@\languagename\endcsname,
\fi
\csname @council@institution@\languagename\endcsname
\fi
\fi