-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathud.sty
695 lines (618 loc) · 23.8 KB
/
ud.sty
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
\NeedsTeXFormat{LaTeX2e}[2000/06/01]
\ProvidesPackage{ud}[2020/11/21 v1.0]
% conditional markup tuning, to maintain more than 1 version of module sources with hand-tuned markup
\def\tunemarkuptag#1{\@namedef{tune@markup@#1}{}}
\def\tunemarkup#1#2{\@ifundefined{tune@markup@#1}{}{#2}}
\def\tunemarkuptwo#1#2#3{\@ifundefined{tune@markup@#1}{#3}{#2}}
% various page sizes
\tunemarkuptag{pgnexus10}
%\tunemarkuptag{pgthinmob}
%\tunemarkuptag{pgkoboaurahd}
\RequirePackage[figure,curq,nfnst]{totalcount}
\RequirePackage{caption}
\RequirePackage[columns=1,font=current]{idxlayout}
\RequirePackage[parvs]{ubook}
\RequirePackage{etoolbox}
\patchcmd{\thebibliography}{\chapter*}{\section*}{}{}
% various font families
\tunemarkuptag{garamond}
% comment out to enable footnotes
%\tunemarkuptag{nofnt}
% comment out to disable pictures
\tunemarkuptag{pictures}
% comment out to enable Cosmic Citizenship Quiz
%\tunemarkuptag{noquiz}
\setdefaultlanguage{russian}
\renewcommand{\r}{\kern2pt\raisebox{1.5ex}{\circle{2}}}
\newcommand{\subtitlefont}{\Large}
\tunemarkup{garamond}{%
\def\urantiamainfont{Garamond Premier Pro}
%\def\urantiaparttitlefont{Garamond Premier Pro Semibold Display}
\def\urantiaparttitlefont{a_AntiqueGr}
\def\urantiaauthorfont{PF DaVinci Script Pro}
\def\urantiatitlefont{Garamond Premier Pro Semibold Display}
\def\urantiamdheadingfont{Garamond Premier Pro Medium Caption}
\def\urantiaheadingfont{Garamond Premier Pro Semibold Caption}
}
% Samsung Galaxy A70 20:9 aspect ratio
\tunemarkup{pgthinmob}{\RequirePackage[dvips,headheight=19pt,headsep=2pt,vmargin={0.2in,0.15in},hmargin={0.1in},twoside=true,papersize={90.0mm,200mm}]{geometry}}
% Google Nexus 10 (or any Android 10" colour device)
\tunemarkup{pgnexus10}{\RequirePackage[dvips,headheight=19pt,headsep=2pt,vmargin={0.2in,0.15in},hmargin={0.1in},twoside=true,papersize={135.0mm,216mm}]{geometry}}
% Kobo Aura HD 7"
\tunemarkup{pgkoboaurahd}{\RequirePackage[dvips,headheight=15pt,headsep=4pt,vmargin={0.2in,0.13in},hmargin={0.05in},twoside=true,papersize={102.0mm,136.0mm}]{geometry}}
% allow inter-paragraph space to grow
\setlength{\parskip}{2pt plus 5pt minus 2pt}
\setmainfont[WordSpace={1.2,2.5,1.0},Mapping=tex-text]{\urantiamainfont}
\newfontfamily\titlefont[Letters=Uppercase,LetterSpace=3.0,WordSpace=2.0,Mapping=tex-text]{\urantiatitlefont}
\newfontfamily\parttitlefont[Letters=Uppercase,LetterSpace=3.0,WordSpace=2.0,Mapping=tex-text]{\urantiaparttitlefont}
\newfontfamily\tocparttitlefont[Letters=Uppercase,LetterSpace=2.0,WordSpace=1.0,Mapping=tex-text]{\urantiaparttitlefont}
\newfontfamily\mdheadingfont[Numbers=Lining,LetterSpace=1.2,WordSpace=1.2,Mapping=tex-text]{\urantiamdheadingfont}
\newfontfamily\headingfont[Numbers=Lining,LetterSpace=1.2,WordSpace=1.2,Mapping=tex-text]{\urantiaheadingfont}
\newfontfamily\authorfontfamily[Mapping=tex-text]{\urantiaauthorfont}
%\newfontfamily\captionfont[Mapping=tex-text]{Linux Libertine O}
\DeclareCaptionFormat{capfont}{\captionfont\large#1#2#3}
\captionsetup{format=capfont,labelfont=bf,margin={0cm,0cm},justification=justified,singlelinecheck=off}
\newfontfamily\libertinefont[Mapping=tex-text]{Linux Libertine O}
\newcommand{\tux}{{\libertinefont ^^^^e000}}
\newcommand{\dt}{\ensuremath{\cdot}}
% for typesetting fractions: 1/2, 1/6, etc.
\newcommand{\bibfrac}[2]{{\addfontfeature{Fractions=On}#1/#2}}
% for fonts which have no support for fractions uncomment these two lines
%\RequirePackage{nicefrac}
%\renewcommand{\bibfrac}[2]{\nicefrac{#1}{#2}}
\newcounter{paper}
\newcounter{secnum}
\fancyhead{}
\fancyfoot{}
\fancyhead[L]{\bibheadfont\vs@range}
\fancyhead[R]{\bibheadfont\bibheadpagesize\thepage}
\renewcommand{\author}[1]{\begin{center}\authorfontfamily\authorfontsize\textcolor{ubblue}{#1}\end{center}\fancyhead[CE]{\bibheadfont\MakeUppercase{#1}}}
\newcommand{\upartheader}[1]{%
\par\vspace{3ex}\pagebreak[3]%
{
\tocparttitlefont\bibtocheadfont
\ifnum #1=1
\partitxt.~\partiup
\fi
\ifnum #1=2
\partiitxt.~\partiiup
\fi
\ifnum #1=3
\partiiitxt.~\partiiiup
\fi
\ifnum #1=4
\partivtxt.~\partivup
\fi
}\vspace{2ex}%
}
\newcommand{\upapertitleheader}[3]{%
\mbox{%
\headingfont
\makebox[0.05\linewidth][c]{№}%
\makebox[0.57\linewidth][c]{\textsc{#1}}%
\makebox[0.29\linewidth][l]{\textsc{#2}}%
\makebox[0.06\linewidth][r]{\textsc{#3}}%
}%
}
\newcommand{\upapertitle}[4]{%
{
\pagebreak[3]%
\mdheadingfont
\makebox[0.05\linewidth][r]{#1. }%
\makebox[0.57\linewidth][l]{#2\bibdf}%
\makebox[0.29\linewidth][l]{#3\bibdf}%
\makebox[0.07\linewidth][r]{\bibpr{#4}}%
}\vspace{0.6ex}\linebreak
}
\newcommand{\li}[1]{\kern1.0em\relax\makebox[0.2em][r]{#1}\kern0.3em\relax}
\newcommand*{\usection}[1]{%
\gdef\secname{#1}%
\stepcounter{secnum}%
\par\raggedbottom\addtolength{\topskip}{0pt plus 20pt}\vspace*{1ex}%
{\centering\titlefont\parbox{\columnwidth}{\mdseries\centering\ifx\secname\ackn\itshape\uppercase{#1}\else\uppercase{\thesecnum.\bibnobreakspace #1}\fi}\\*[3pt]}%
\flushbottom\addtolength{\topskip}{0pt plus -20pt}
}
\def\bibnobreakspace{\kern5pt\relax}
\newcommand{\separatorline}{\begin{center}*\ \ *\ \ *\ \ *\ \ *\end{center}}
\newcommand{\separatorshort}{\begin{center}*\ *\ *\end{center}}
\providecommand{\textlatin}[1]{{#1}}
\renewcommand{\headrulewidth}{0pt}
\renewcommand{\bibdropcapscolor}{ubdarkred}
\columnseprule=0.0pt
\def\mytoday{{\ddmmyyyydate\today}}
\def\bibchap{\printvssup{\curr@vs}}
\def\vs@range{%
\@ifundefined{mark@vs@\thepage}{}{%
\bibheadpapersize\thepaper:\expandafter\expandafter\expandafter
\vs@range@a\csname mark@vs@\thepage\endcsname
}%
}
% vine leaves
\def\hr{j}
\def\hhr{k}
\def\hhhr{l}
\def\hhhhr{i}
\def\hl{j}
\def\hhl{k}
\def\hhhl{l}
\def\hhhhl{i}
\def\topplank{fghe}
\def\botplank{ghef}
\def\topl{a}
\def\topprer{f}
\def\topr{b}
\def\botl{c}
\def\botprer{g}
\def\botr{d}
\RequirePackage{enumitem}
\newcommand{\quizsymbol}{\textcolor{ubblue}{\usefont{U}{webo}{xl}{n}7}}
\newcommand{\quizlink}{\par\vspace*{\stretch{0.1}}\begin{center}\hyperlink{qc\thepaper}{\Huge\quizsymbol}\end{center}\vspace*{\stretch{0.9}}}%
%\tunemarkup{noquiz}{\def\quizlink{}}
\newcommand{\titleframe}{%
\begingroup
\tunemarkup{pgnexus10}{%
\setlength{\unitlength}{13.2pt}%
\fontsize{\unitlength}{\unitlength}\usefont{U}{webo}{xl}{n}
\begin{picture}(0,0)(1.0,-44.0)%
\color{ubblue}
% top left corner
\put(0,0){\topl}
% top plank
\multiput(1.2,0)(4.8,0){5}{\topplank}
% top right corner
\put(25.2,0){\topprer}
\put(26.4,0){\topr}
% right plank
\multiput(26.3,-1.2)(0,-4.7){9}{\hr}
\multiput(26.3,-2.4)(0,-4.7){9}{\hhr}
\multiput(26.3,-3.6)(0,-4.7){9}{\hhhr}
\multiput(26.3,-4.8)(0,-4.7){9}{\hhhhr}
% left plank
\multiput(0,-1.2)(0,-4.7){9}{\hhhhl}
\multiput(0,-2.4)(0,-4.7){9}{\hl}
\multiput(0,-3.6)(0,-4.7){9}{\hhl}
\multiput(0,-4.8)(0,-4.7){9}{\hhhl}
% bottom left corner
\put(0,-43.6){\botl}
% bottom plank
\multiput(1.2,-43.6)(4.8,0){5}{\botplank}
% bottom right corner
\put(25.2,-43.6){\botprer}
\put(26.4,-43.6){\botr}
\end{picture}%
}%
\tunemarkup{pgkoboaurahd}{%
\setlength{\unitlength}{6.6pt}%
\fontsize{\unitlength}{\unitlength}\usefont{U}{webo}{xl}{n}
\begin{picture}(0,0)(1.6,-56.0)%
% top left corner
\put(0,0){\topl}
% top plank
\multiput(1,0)(4,0){10}{\topplank}
% top right corner
\put(41,0){\topprer}
\put(42,0){\topr}
% right plank
\multiput(42,-1)(0,-4){14}{\hr}
\multiput(42,-2)(0,-4){14}{\hhr}
\multiput(42,-3)(0,-4){14}{\hhhr}
\multiput(42,-4)(0,-4){14}{\hhhhr}
% left plank
\multiput(0,-1)(0,-4){14}{\hhhhl}
\multiput(0,-2)(0,-4){14}{\hl}
\multiput(0,-3)(0,-4){14}{\hhl}
\multiput(0,-4)(0,-4){14}{\hhhl}
% bottom left corner
\put(0,-57){\botl}
% bottom plank
\multiput(1,-57)(4,0){10}{\botplank}
% bottom right corner
\put(41,-57){\botprer}
\put(42,-57){\botr}
\end{picture}%
}%
\endgroup
}
\DeclareTextAccent{\'}{\encodingdefault}{180}
\setlength{\columnsep}{3.5mm}
\setlength\parindent{14\p@}
% Cosmic Citizenship Quiz macros
\newcommand{\questionfont}{\fontsize{16}{19}\bfseries}
\newcommand{\answersfont}{\fontsize{16}{19}\selectfont}
\newcommand{\quizheader}{%
\newpage
\bibpdfbookmark{КОСМИЧЕСКОЕ ГРАЖДАНСТВО}{qz}%
\vspace*{\stretch{0.2}}%
\begin{center}\titlefont\fontsize{20}{20}\selectfont КОСМИЧЕСКОЕ ГРАЖДАНСТВО\\(\totalcurqs\ вопросов)\\\end{center}%
\vspace*{\stretch{0.7}}%
\newpage
\newcount\i
\i=0\relax
\loop
\ifnum\i<197
\@ifundefined{pqcount\the\i}{\expandafter\def\csname pqcount\the\i\endcsname{0}}{}%
\advance\i by1
\repeat
}
\newcommand{\quizpart}[1]{%
\newpage\LARGE
\vspace*{\stretch{0.2}}%
\ifnum #1=1
\bibpdfbookmark[1]{\partimix}{qp1}%
\begin{center}\titlefont\MakeUppercase{\partimix}\end{center}%
\fi
\ifnum #1=2
\bibpdfbookmark[1]{\partiimix}{qp2}%
\begin{center}\titlefont\MakeUppercase{\partiimix}\end{center}%
\fi
\ifnum #1=3
\bibpdfbookmark[1]{\partiiimix}{qp3}%
\begin{center}\titlefont\MakeUppercase{\partiiimix}\end{center}%
\fi
\ifnum #1=4
\bibpdfbookmark[1]{\partivmix}{qp4}%
\begin{center}\titlefont\MakeUppercase{\partivmix}\end{center}%
\fi
\vspace*{\stretch{0.7}}%
\newpage
}
\newcount\qpapernum
\newcommand{\qpaper}[2]{%
\newpage
\qpapernum=\number#1\relax
\setcounter{paperqcount}{0}%
\ifnum #1=0\quizpart{1}\fi
\ifnum #1=32\quizpart{2}\fi
\ifnum #1=57\quizpart{3}\fi
\ifnum #1=120\quizpart{4}\fi
\vspace*{\stretch{0.2}}%
\bib@raise@anchor{\bibpdfbookmark[2]{#1. #2}{qc#1}\hypertarget{qc#1}{}}%
\begin{center}\titlefont\LARGE#1.\nobreakspace\hyperlink{p#1}{\MakeUppercase{#2}}\\(\csname pqcount#1\endcsname\ вопросов)\\\end{center}
\vspace*{\stretch{0.7}}%
\newpage
}
\newcounter{nfnst}
\newcounter{paperqcount}
\newcounter{curq}
\newcounter{cans}
\newcommand{\printquestion}{\noindent\questionfont\question}
\newlength{\quizanswermargin}
\setlength{\quizanswermargin}{4em}
\newcommand{\qstart}[1]{%
\newpage
\setcounter{cans}{0}%
\stepcounter{curq}%
\stepcounter{paperqcount}%
\expandafter\edef\csname pqcount\the\qpapernum\endcsname{\thepaperqcount}
\gdef\question{#1}%
\printquestion
\begin{enumerate}[leftmargin=\quizanswermargin,label=\protect\ding{\value*},start=172]%
\answersfont
\@answers
}
\tunemarkuptwo{noquiz}{}{%
\AtEndDocument{%
\newcount\pqcounter
\pqcounter=0
\noindent
\loop
\ifnum\pqcounter<197
\immediate\write\@mainaux{\string\expandafter\string\gdef\string\csname\space pqcount\the\pqcounter\string\endcsname{\csname pqcount\the\pqcounter\endcsname}}
\advance\pqcounter by1
\repeat
}
}
\newcommand\@answers{\@ifnextchar\qstop{\@answersend}{\@nextanswer}}
\newcommand\@nextanswer[2]{%
\stepcounter{cans}%
\item \hyperlink{ans\thecurq}{#1}%
\ifnum \value{cans}=1 \gdef\answerone{#1 \ifnum #2=1 \cmark\else\xmark\fi}\fi
\ifnum \value{cans}=2 \gdef\answertwo{#1 \ifnum #2=1 \cmark\else\xmark\fi}\fi
\ifnum \value{cans}=3 \gdef\answerthree{#1 \ifnum #2=1 \cmark\else\xmark\fi}\fi
\ifnum \value{cans}=4 \gdef\answerfour{#1 \ifnum #2=1 \cmark\else\xmark\fi}\fi
\ifnum \value{cans}=5 \gdef\answerfive{#1 \ifnum #2=1 \cmark\else\xmark\fi}\fi
\ifnum \value{cans}=6 \gdef\answersix{#1 \ifnum #2=1 \cmark\else\xmark\fi}\fi
\ifnum \value{cans}=7 \gdef\answerseven{#1 \ifnum #2=1 \cmark\else\xmark\fi}\fi
\ifnum \value{cans}=8 \gdef\answereight{#1 \ifnum #2=1 \cmark\else\xmark\fi}\fi
\ifnum \value{cans}=9 \gdef\answernine{#1 \ifnum #2=1 \cmark\else\xmark\fi}\fi
\ifnum \value{cans}=10 \gdef\answerten{#1 \ifnum #2=1 \cmark\else\xmark\fi}\fi
\@answers
}
\newcommand\@answersend[1]{%
\end{enumerate}%
\newpage
\hypertarget{ans\thecurq}{}%
\printquestion
\begin{enumerate}[leftmargin=\quizanswermargin,label=\protect\ding{\value*},start=172]%
\answersfont
\item \answerone
\ifnum \value{cans}>1 \item \answertwo\fi
\ifnum \value{cans}>2 \item \answerthree\fi
\ifnum \value{cans}>3 \item \answerfour\fi
\ifnum \value{cans}>4 \item \answerfive\fi
\ifnum \value{cans}>5 \item \answersix\fi
\ifnum \value{cans}>6 \item \answerseven\fi
\ifnum \value{cans}>7 \item \answereight\fi
\ifnum \value{cans}>8 \item \answernine\fi
\ifnum \value{cans}>9 \item \answerten\fi
\end{enumerate}%
}
\newcommand{\cmark}{\textcolor{ubgreen}{\ding{51}}}
\newcommand{\xmark}{\textcolor{ubdarkred}{\ding{55}}}
\newcommand{\hsetoff}{\hspace*{1em}}
\newcommand{\bibcovertitlefont}{\parttitlefont\fontsize{18}{18}\selectfont}
\protected\def\print@vssup#1{\makebox[0.9em][l]{\@textsuperscript{\fontsize{7}{7}\bfseries#1}}\kern0.4em\relax}
\tunemarkuptwo{nofnt}{%
\def\fnst#1{}
}{%
\def\fnst#1{\stepcounter{nfnst}\footnote{#1}}
}
% for mini-TOC of each paper
\newcounter{uminitocnum}
\newcommand{\uminitoc}[1]{%
\stepcounter{uminitocnum}%
{\bibsectitlefont\makebox[0.08\linewidth][r]{\theuminitocnum.\,}\makebox[0.85\linewidth][l]{\uppercase{#1}\bibdf}\makebox[0.06\linewidth][r]{\bibpr{p\thepaper_\theuminitocnum}}\\}%
}
% for TOC entries horizontal spacing
\newcommand{\numw}{0.08\linewidth}
\newcommand{\txtw}{0.81\linewidth}
\def\pc{{\fontsize{13}{13}\selectfont§§}\kern3pt}
\tunemarkup{pgnexus10}{%
\def\phoenixscale{0.17}
\tolerance=900
\definecolor{ubblue}{rgb}{0.0, 0.3, 0.6}
\definecolor{ubgreen}{rgb}{0.0, 0.4, 0.0}
\definecolor{ubdarkred}{rgb}{0.8, 0.0, 0.0}
\protected\def\print@vssup#1{\makebox[0.4em][l]{\@textsuperscript{\fontsize{7}{7}\bfseries#1}}\kern0.3em\relax}
\newcommand{\titlesepbig}{{\usefont{U}{webo}{xl}{n}\LARGE\textcolor{ubblue}{ahb}}}
\newcommand{\bibpaperfont}{\titlefont\fontsize{14}{18}\selectfont}
\newcommand{\bibpapertitlefont}{\titlefont\fontsize{16}{18}\selectfont}
\newcommand{\bibtocsuperheadfont}{\fontsize{14}{20}\selectfont}
\renewcommand{\bibtocheadfont}{\addfontfeature{LetterSpace=1.2}\fontsize{11}{12}\bfseries}
\renewcommand{\bibtocfont}{\fontsize{8.5}{18}\selectfont}
\newcommand{\bibheadpapersize}{\fontsize{8.0}{8.0}\selectfont}
\renewcommand{\bibheadchapsize}{\fontsize{7.5}{7.5}\selectfont}
\renewcommand{\bibheadversesize}{\fontsize{7}{7}\selectfont}
\renewcommand{\bibheadpagesize}{\fontsize{8}{8}\selectfont}
\newcommand{\subfont}{\fontsize{14}{17}\itshape}
\newcommand{\parttitlefontsize}{\LARGE}
\newcommand{\bibsectitlefont}{\titlefont\fontsize{10}{13}\selectfont}
\renewcommand{\bibheadfont}{\headingfont\fontsize{7.7}{7.7}\selectfont}
\newcommand{\bibbookend}{\fontsize{16.5}{18.5}\selectfont}
\newcommand{\urantiamainfontsize}{16.5/18.5}
\renewcommand{\footnotesize}{\fontsize{14}{16}\selectfont}
\newcommand{\authorfontsize}{\fontsize{26}{8}\selectfont}%
\newcommand{\introfontsize}{\fontsize{15.5}{17}\selectfont}
\newcommand{\titlefontsize}{\fontsize{20}{30}\selectfont}
}
\tunemarkup{pgthinmob}{%
\def\phoenixscale{0.17}
\tolerance=9999
\definecolor{ubblue}{rgb}{0.0, 0.3, 0.6}
\definecolor{ubgreen}{rgb}{0.0, 0.4, 0.0}
\definecolor{ubdarkred}{rgb}{0.8, 0.0, 0.0}
\protected\def\print@vssup#1{\makebox[0.2em][r]{\@textsuperscript{\fontsize{10}{10}\selectfont#1}}\kern0.2em\relax}
\newcommand{\titlesepbig}{{\usefont{U}{webo}{xl}{n}\Large\textcolor{ubblue}{ahb}}}
\newcommand{\bibpaperfont}{\titlefont\fontsize{13}{15}\selectfont}
\newcommand{\bibpapertitlefont}{\titlefont\fontsize{15}{17}\selectfont}
\newcommand{\bibtocsuperheadfont}{\fontsize{14}{20}\selectfont}
\renewcommand{\bibheadfont}{\headingfont\fontsize{7.2}{7.2}\selectfont}
\renewcommand{\bibtocheadfont}{\addfontfeature{LetterSpace=1.2}\fontsize{12}{16}\bfseries}
\renewcommand{\bibtocfont}{\fontsize{7}{13.5}\selectfont}
\newcommand{\bibheadpapersize}{\fontsize{8.0}{8.0}\selectfont}
\renewcommand{\bibheadchapsize}{\fontsize{7.5}{7.5}\selectfont}
\renewcommand{\bibheadversesize}{\fontsize{7}{7}\selectfont}
\renewcommand{\bibheadpagesize}{\fontsize{8}{8}\selectfont}
\newcommand{\subfont}{\fontsize{14}{17}\itshape}
\newcommand{\parttitlefontsize}{\Large}
\newcommand{\bibsectitlefont}{\titlefont\fontsize{7}{7}\selectfont}
\newcommand{\bibbookend}{\fontsize{19}{21}\selectfont}
\newcommand{\urantiamainfontsize}{19/21}
\renewcommand{\footnotesize}{\fontsize{16}{18}\selectfont}
\newcommand{\authorfontsize}{\fontsize{22}{9}\bfseries\itshape}%
\newcommand{\introfontsize}{\fontsize{17}{19}\selectfont}
\newcommand{\titlefontsize}{\fontsize{20}{22}\selectfont}
}
\tunemarkup{pgkoboaurahd}{%
\def\phoenixscale{0.15}
\setcounter{DefaultLines}{3}
\tolerance=2000
\definecolor{ubblue}{rgb}{0.0, 0.0, 0.0}
\definecolor{ubgreen}{rgb}{0.0, 0.0, 0.0}
\definecolor{ubdarkred}{rgb}{0.0, 0.0, 0.0}
\protected\def\print@vssup#1{\makebox[0.4em][l]{\@textsuperscript{\fontsize{7}{7}\bfseries#1}}\kern0.3em\relax}
\newcommand{\titlesepbig}{{\usefont{U}{webo}{xl}{n}\large\textcolor{ubblue}{ahb}}}
\newcommand{\bibpaperfont}{\titlefont\fontsize{12}{16}\selectfont}
\newcommand{\bibpapertitlefont}{\titlefont\fontsize{14}{16}\selectfont}
\newcommand{\bibtocsuperheadfont}{\fontsize{12}{20}\selectfont}
\renewcommand{\bibtocheadfont}{\addfontfeature{LetterSpace=1.2}\fontsize{10}{12}\bfseries}
\renewcommand{\bibtocfont}{\fontsize{6}{14}\selectfont}
\newcommand{\bibheadpapersize}{\fontsize{8.0}{8.0}\selectfont}
\renewcommand{\bibheadchapsize}{\fontsize{7.5}{7.5}\selectfont}
\renewcommand{\bibheadversesize}{\fontsize{7}{7}\selectfont}
\renewcommand{\bibheadpagesize}{\fontsize{8}{8}\selectfont}
\newcommand{\subfont}{\fontsize{10.5}{12}\itshape}
\newcommand{\parttitlefontsize}{\large}
\newcommand{\bibsectitlefont}{\titlefont\fontsize{7.5}{7.5}\selectfont}
\renewcommand{\bibheadfont}{\headingfont\fontsize{7.7}{7.7}\selectfont}
\newcommand{\bibbookend}{\fontsize{16}{18}\selectfont}
\newcommand{\urantiamainfontsize}{16/18}
\renewcommand{\footnotesize}{\fontsize{14}{16}\selectfont}
\newcommand{\authorfontsize}{\fontsize{21}{8}\selectfont}%
\newcommand{\introfontsize}{\fontsize{15.5}{17}\selectfont}
\newcommand{\titlefontsize}{\fontsize{18}{28}\selectfont}
\renewcommand{\uminitoc}[1]{%
\stepcounter{uminitocnum}%
{\bibsectitlefont\makebox[0.08\linewidth][r]{\theuminitocnum.\,}\makebox[0.85\linewidth][l]{\uppercase{#1}\bibdf}\makebox[0.06\linewidth][r]{\bibpr{p\thepaper_\theuminitocnum}}\\[-1.6ex]}%
}
}
\newcommand{\vsetoff}{\vspace*{1ex}}%
\AtBeginDocument{%
\hypersetup{%
pdftitle={Пятое Эпохальное Откровение (Урантийские документы)},%
pdfauthor={Tigran Aivazian <aivazian.tigran@gmail.com>},%
pdfcreator={Bibles.org.uk типографская среда на базе TeX Live 2023},%
pdfsubject={Урантийские документы на русском языке},%
pdfkeywords={Урантия,Земля,Истина,Религия,Иисус,Откровение,Бог,Христианство,Библия,Писания,История},%
pdflang={Russian},%
pdfcreationdate={D:20201121210300Z},%
pdfmoddate={D:\pdfdate-00'00'}%
}%
}
\newfontfamily\greekfont[Mapping=tex-text]{SBL Greek}
\newcommand{\textgreek}[1]{{\greekfont#1}}
\newfontfamily\hebrewfont[Mapping=tex-text,Script=Hebrew]{SBL Hebrew}
\newcommand{\textheb}[1]{{\hebrewfont#1}}
\def\ackn{БЛАГОДАРНОСТЬ}
\def\papertxt{ДОКУМЕНТ}
\def\partitxt{ЧАСТЬ I}
\def\partiup{ЦЕНТРАЛЬНАЯ ВСЕЛЕННАЯ И СВЕРХВСЕЛЕННЫЕ}
\def\partimix{Часть I. Центральная вселенная и сверхвселенные}
\def\partisub{При поддержке Уверсского Корпуса личностей сверхвселенной, уполномоченных От Века Древними Орвонтона.}
\def\partiitxt{ЧАСТЬ II}
\def\partiiup{ЛОКАЛЬНАЯ ВСЕЛЕННАЯ}
\def\partiimix{Часть II. Локальная вселенная}
\def\partiisub{При поддержке Небадонского Корпуса личностей локальной вселенной, уполномоченных Гавриилом Спасограда.}
\def\partiiitxt{ЧАСТЬ III}
\def\partiiiup{ИСТОРИЯ УРАНТИИ}
\def\partiiimix{Часть III. История Урантии}
\def\partiiisub{Настоящие документы были созданы при поддержке Корпуса личностей локальной вселенной, уполномоченных Гавриилом Спасограда.}
\def\partivtxt{ЧАСТЬ IV}
\def\partivup{ЖИЗНЬ И УЧЕНИЯ ИИСУСА}
\def\partivmix{Часть IV. Жизнь и учения Иисуса}
\def\partivsubone{Данная группа документов была создана при поддержке комиссии из двенадцати промежуточных созданий Урантии, работавшей под началом Мелхиседека, руководителя комиссии откровения.}
\def\partivsubtwo{В основу повествования положена информация, предоставленная вторичным промежуточным созданием, некогда исполнявшим обязанности сверхчеловеческого хранителя апостола Андрея.}
\newcommand{\bibpaperdisplay}[2]{%
\begin{center}%
\ifnum #1>0\bibpaperfont\papertxt\nobreakspace\ №\,#1\\[1ex]\fi
\bibpapertitlefont#2\\%
\end{center}%
}
\newcommand{\myurl}[1]{\href{#1}{#1}}
\newcommand{\upaper}[2]{%
\newpage\thispagestyle{empty}%
\setcounter{paper}{#1}%
\setcounter{secnum}{0}%
\setcounter{uminitocnum}{0}
\bibpaperdisplay{#1}{#2}%
\ubookdescr{p#1}{
toc={\makebox[\numw][r]{#1.\,}\makebox[\txtw][l]{#2\bibdf}},
bookmark={#1. #2},
header={#2},
abbr={p#1}
}%
\fancyhead[CO]{\bibheadfont\MakeUppercase{#2}}%
}
\newcommand{\parti}{%
\newpage
\thispagestyle{empty}%
\bibpart{\partitxt. \partiup}{\partimix}{pt1}%
\vspace*{\stretch{0.1}}%
\begin{center}%
{%
\parttitlefont\parttitlefontsize
\partitxt\\[1ex]
\partiup\\[2ex]
}%
\subfont\partisub\\%
\vspace*{\stretch{0.5}}%
\end{center}%
\newpage
}
\newcommand{\partii}{%
\newpage
\thispagestyle{empty}%
\bibpart{\partiitxt. \partiiup}{\partiimix}{pt2}%
\vspace*{\stretch{0.1}}%
\begin{center}%
{%
\parttitlefont\parttitlefontsize
\partiitxt\\[1ex]
\partiiup\\[2ex]
}%
\subfont\partiisub\\
\end{center}%
\vspace*{\stretch{0.5}}%
\newpage
}
\newcommand{\partiii}{%
\newpage
\thispagestyle{empty}%
\bibpart{\partiiitxt. \partiiiup}{\partiiimix}{pt3}%
\vspace*{\stretch{0.1}}%
\begin{center}%
{%
\parttitlefont\parttitlefontsize
\partiiitxt\\[1ex]
\partiiiup\\[2ex]
}%
\subfont\partiiisub\\
\end{center}%
\vspace*{\stretch{0.5}}%
\newpage
}
\newcommand{\partiv}{%
\newpage
\thispagestyle{empty}%
\bibpart{\partivtxt. \partivup}{\partivmix}{pt4}%
\vspace*{\stretch{0.1}}%
\begin{center}%
{%
\parttitlefont\parttitlefontsize
\partivtxt\\[1ex]
\partivup\\[2ex]
}%
\subfont
\partivsubone\\[1ex]%
\partivsubtwo\\%
\vspace*{\stretch{0.5}}%
\end{center}%
\newpage
}
\begin{hyphenrules}{russian}
\hyphenation{%
ра-зум
ра-зу-мо
Не-ба-дон
Не-ба-до-на
со-вме-с-т-но
по-зво-ли-ла
по-зво-лил
по-зво-лили
Управ-ляю-щие
Управ-ляю-щий
сверх-уни-вер-си-тет
сверх-уни-вер-си-те-ты
не-о-спо-ри-мо-го
уп-рав-ля-ю-щих
Cont-ractu-ral
не-да-ле-ко
пре-до-став-ля-ет
ок-ру-жа-ет
по-том-ство
соб-с-т-вен-ную
Древ-ни-ми
Древ-ний
оз-на-ча-ет
at-tain-ment
dist-ri-bu-tive
ex-pan-sive
crea-tu-re
in-ten-sion
iden-ti-ty
не-пер-со-на-ли-зи-ру-е-мых
бо-жест-вен-ной
до-сти-же-ни-ям
Бо-жест-ва
Ор-вон-то-на
сверх-все-лен-ных
сверх-все-лен-ным
su-per-hu-man
сверх-все-лен-ной
сверх-все-лен-ских
сверх-все-лен-ны-ми
ра-зу-мов
chan-nel
chan-neliz-ing
}
\end{hyphenrules}