summaryrefslogtreecommitdiffstats
path: root/aux.otx
blob: 95610ef5b2aae14374422da9197043889f4fe655 (plain)
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
\long\def\cent#1{{\leftskip=0pt plus1fil\rightskip=0pt plus1fil\parfillskip=0pt\parindent=0pt\parskip=0pt #1\par}}


\def\sc#1{{\caps\rm #1}}

\def\Qs#1{\vskip 0.5em{\typoscale[900/]\rightskip=2.5em\leftskip=0pt plus1fill\parfillskip=0pt
    #1\par}}

\def\playtitle#1{\e{#1}}
\def\poemtitle#1{\e{#1}}
\def\B#1{{\bf #1}}

% -------

\_def \_chapfont {\_scalemain\_typoscale[1800/]\caps\rm}
\_def\_printchap #1{{\_vfill\_supereject \_prevdepth=0pt
\leftskip=0pt plus1fil\rightskip=0pt plus1fil\parfillskip=0pt
  \_vglue\_medskipamount % shifted by topkip+\medskipamount
  {\_chapfont \_noindent \_printrefnum[@]
  #1\_nbpar}\_mark{}%
  \_nobreak \_belowtitle{\_bigskip}%
  \par\_firstnoindent}}

\_def\_secfont{\_typoscale[1100/]\bf}
\_def\_printsec#1{\_par{\leftskip=0pt plus1fill\rightskip=0pt plus1fill\parfillskip=0pt
  \_abovetitle{\_penalty-151}\_bigskip
  {\_secfont \_noindent \_raggedright \_printrefnum[@\_quad]#1}\_insertmark{#1}%
  \par}\_nobreak\vskip 0.5em\_firstnoindent}

% -------- footnote design
\fnotenumpages
\def \_printfnotemark {\ifcase 0\fnotenum\or
$^\mathbox{*}$\or$^\mathbox{**}$\or***\or$^\mathbox{†}$\or$^\mathbox{‡}$\or$^\mathbox{††}$\fi}

% --------

\def\labelfont{\LMfonts\Blue\ttset\rm}
\def\_printlabel#1{{\labelfont [#1]}}

\def\txtpt#1#2{%
\label[#1]\wlabel{#2} {\Green \ref[#1]}}

\def\rpageref#1#2{%
    \pgref[#1]{#2} {\labelfont [#1]}}
\def\pgr#1{%
    \rpageref{#1}{(p. @)}}
\def\bpgr#1{%
    \rpageref{#1}{@}}

% --------

\fontfam[Latin Modern]
\fontfam[Termes]

\long\def\ednote#1{{\Red\fnote{{\Red\Dejavu\sans\rm #1}}\Black}}
\def\date#1{\rightline{\e{#1}}\vskip 0.5em}
\def\nudge{\hskip\parindent}
\long\def\Q#1{{\typoscale[950/]\narrower\parindent=0pt\parskip=0.5em #1\par}}
\def\booktitle#1{\e{#1}}