]> mj.ucw.cz Git - saga.git/blob - fonts12.tex
Removed files that are not needed for the saga itself.
[saga.git] / fonts12.tex
1 % TeX macros for typesetting my PhD thesis: 12pt fonts
2 % (c) 2008 Martin Mares <mj@ucw.cz>
3
4 \catcode`@=11
5
6 % Glue
7 \smallskipamount=4pt plus 1.2pt minus 1.2pt
8 \medskipamount=7pt plus 2.5pt minus 2pt
9 \bigskipamount=15pt plus 5pt minus 4pt
10
11 \abovedisplayskip=15pt plus 4pt minus 10pt
12 \abovedisplayshortskip=0pt plus 3pt
13 \belowdisplayskip=15pt plus 4pt minus 10pt
14 \belowdisplayshortskip=8.5pt plus 3.5pt minus 4.5pt
15
16 \def\<#1>{\ifmmode
17     \mathchoice{\hbox{\it #1\/}}{\hbox{\it #1\/}}{\hbox{\eightti #1\/}}{\hbox{\sixti #1\/}}%
18   \else\leavevmode\hbox{\it #1\/}\fi}
19
20 \font\twelverm=cmr12
21 \font\twelveit=cmti12
22 \font\twelvebf=cmbx12
23
24 %\font\twelverm=pplr8z at 12pt
25 %\font\twelveit=pplri8z at 12pt
26 %\font\twelvebf=pplb8z at 12pt
27
28 \font\twelvesl=cmsl12
29 \font\twelveb=cmb12
30 \font\twelvesc=cmcsc12
31
32 \def\fntmathsize{12}
33 \def\fntmathtok{twelve}
34 \def\fntmathssize{8}
35 \def\fntmathstok{eight}
36 \def\fntmathsssize{6}
37 \def\fntmathsstok{six}
38
39 \mathf@nt{\fntmathtok}{r}{\fntmathsize}{cm}\textfont0=\m@@f
40 \mathf@nt{\fntmathstok}{r}{\fntmathssize}{cm}\scriptfont0=\m@@f
41 \mathf@nt{\fntmathsstok}{r}{\fntmathsssize}{cm}\scriptscriptfont0=\m@@f
42 \mathf@nt{\fntmathtok}{mi}{\fntmathsize}{cm}\skewchar\m@@f='177\textfont1=\m@@f
43 \mathf@nt{\fntmathstok}{mi}{\fntmathssize}{cm}\skewchar\m@@f='177\scriptfont1=\m@@f
44 \mathf@nt{\fntmathsstok}{mi}{\fntmathsssize}{cm}\skewchar\m@@f='177\scriptscriptfont1=\m@@f
45 \mathf@nt{\fntmathtok}{sy}{\fntmathsize}{cm}\skewchar\m@@f='60\textfont2=\m@@f
46 \mathf@nt{\fntmathstok}{sy}{\fntmathssize}{cm}\skewchar\m@@f='60\scriptfont2=\m@@f
47 \mathf@nt{\fntmathsstok}{sy}{\fntmathsssize}{cm}\skewchar\m@@f='60\scriptscriptfont2=\m@@f
48 \mathf@nt{\fntmathtok}{ex}{\fntmathsize}{cm}\textfont3=\m@@f\scriptfont3=\m@@f\scriptscriptfont3=\m@@f
49 \mathf@nt{\fntmathtok}{ti}{\fntmathsize}{cm}\textfont\itfam=\m@@f
50 \mathf@nt{\fntmathstok}{ti}{\fntmathssize}{cm}\scriptfont\itfam=\m@@f
51 \mathf@nt{\fntmathsstok}{ti}{\fntmathssize}{cm}\scriptscriptfont\itfam=\m@@f
52 \mathf@nt{\fntmathtok}{sl}{\fntmathsize}{cm}\textfont\slfam=\m@@f
53 \mathf@nt{\fntmathtok}{bx}{\fntmathsize}{cm}\textfont\bffam=\m@@f
54 \mathf@nt{\fntmathtok}{tt}{\fntmathsize}{cm}\hyphenchar\m@@f=-1\textfont\ttfam=\m@@f
55 \mathf@nt{\fntmathtok}{msam}{\fntmathsize}{}\textfont\msafam=\m@@f
56 \mathf@nt{\fntmathstok}{msam}{\fntmathssize}{}\scriptfont\msafam=\m@@f
57 \mathf@nt{\fntmathsstok}{msam}{\fntmathsssize}{}\scriptscriptfont\msafam=\m@@f
58 \mathf@nt{\fntmathtok}{msbm}{\fntmathsize}{}\textfont\msbfam=\m@@f
59 \mathf@nt{\fntmathstok}{msbm}{\fntmathssize}{}\scriptfont\msbfam=\m@@f
60 \mathf@nt{\fntmathsstok}{msbm}{\fntmathsssize}{}\scriptscriptfont\msbfam=\m@@f
61
62 % Blackboard bold font
63 \newfam\bbfam
64 \font\bbtwelve=bbm12
65 \font\bbeight=bbm8
66 \font\bbsix=bbm6
67 \textfont\bbfam=\bbtwelve
68 \scriptfont\bbfam=\bbeight
69 \scriptscriptfont\bbfam=\bbsix
70 \def\bb{\bbtwelve\fam\bbfam}
71
72 % Font switches
73 \def\rm{\fam\z@\twelverm}
74 \def\it{\fam\itfam\twelveit}
75 \def\bo{\fam\bffam\twelveb}
76 \def\bf{\fam\bffam\twelvebf}
77 \def\tt{\fam\ttfam\twelvett\hyphenchar\twelvett=-1\relax}
78 \def\sc{\twelvesc}
79 \def\sl{\fam\slfam\twelvesl}
80 \def\mi{\twelvemi}
81
82 % Switch to 12pt baselines
83 \rm
84 \baselineskip=14.4pt
85 \lineskip=1.2pt
86 \setbox\strutbox=\hbox{\vrule height 10.2pt depth 4.2pt width 0pt}
87
88 % Other fonts
89 \font\chapfont=csssdc17 scaled \magstep1
90 \font\secfont=csb14
91 \font\secitfont=csbxti14
92
93 \footline={\hss\twelverm\folio\hss}
94
95 % We have to redefine \big and friends as we are using 12pt symbols
96 \def\big#1{{\hbox{$\left#1\vbox to11.5\p@{}\right.\n@space$}}}
97 \def\Big#1{{\hbox{$\left#1\vbox to14.5\p@{}\right.\n@space$}}}
98 \def\bigg#1{{\hbox{$\left#1\vbox to17.5\p@{}\right.\n@space$}}}
99 \def\Bigg#1{{\hbox{$\left#1\vbox to20.5\p@{}\right.\n@space$}}}
100
101 \catcode`@=12