Debian Codegraph @

texmf-dist/tex/generic/ofs/ofs-ps.tex

raw
1 % OFS: PS fonts + math encoding declaration for \def\fomenc{PS}
2 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
3 % Apr. 2004 Petr Olsak
4
5 \protectreading ofs-ps.tex % This is part of OFS package
6
7 \mathencdef\PSmathchars {%
8 \fontmessage{\ofsmessageheader Math codes are set for PS encoding.}%
9 \mathcode`\,="602C
10 \mathcode`\.="002E
11 \mathchardef\ldotp="602E
12 \mathcode`\/="002F
13 \mathcode`\-="2\hex\symbfam 2D
14 \mathcode`\<="3\hex\symbfam 3C
15 \mathcode`\>="3\hex\symbfam 3E
16 \mathcode`\|="0\hex\symbfam 7C
17 %
18 \delcode`\<="\hex\symbfam E130A
19 \delcode`\>="\hex\symbfam F130B
20 \delcode`\|="\hex\symbfam 7C30C
21 %
22 \edef\langle{\delimiter"4\hex\symbfam E130A }%
23 \edef\rangle{\delimiter"5\hex\symbfam F130B }%
24 \edef\lbrace{\delimiter"4\hex\symbfam 7B308 }\let\{=\lbrace
25 \edef\vert {\delimiter"2\hex\symbfam 7C30C }\let\|=\vert
26 \edef\rbrace{\delimiter"5\hex\symbfam 7D309 }\let\}=\rbrace
27 % \bffam, \ttfam can be allocated with non-plain values
28 \def\lgroup{\delimiter"4\hex\bffam 2833A }% extensible ( with sharper tips
29 \def\rgroup{\delimiter"5\hex\bffam 2933B }% extensible ) with sharper tips
30 \def\bracevert{\delimiter"\hex\ttfam 7C33E }% the vertical bar that extends braces
31 %
32 \def\tmpa{8z}\ifx\fotenc\tmpa
33 \mathaccentdef \acute "7013
34 \mathaccentdef \bar "7016
35 \mathaccentdef \breve "7015
36 \mathaccentdef \check "7014
37 \mathaccentdef \ddot "707F
38 \mathaccentdef \dot "705F
39 \mathaccentdef \grave "7012
40 \mathaccentdef \hat "705E
41 \mathaccentdef \tilde "707E
42 \else
43 \mathaccentdef \acute "7001
44 \mathaccentdef \bar "7009
45 \mathaccentdef \breve "7008
46 \mathaccentdef \check "7007
47 \mathaccentdef \ddot "7004
48 \mathaccentdef \dot "700A
49 \mathaccentdef \grave "7000
50 \mathaccentdef \hat "7002
51 \mathaccentdef \tilde "7003
52 \fi
53 \let\vec=\overrightarrow % rightarrow accent is not present in Symbol
54 %
55 \mathchardef\alpha "0\hex\symbofam 61
56 \mathchardef\beta "0\hex\symbofam 62
57 \mathchardef\gamma "0\hex\symbofam 67
58 \mathchardef\delta "0\hex\symbofam 64
59 \mathchardef\epsilon "0\hex\symbofam 65
60 \mathchardef\zeta "0\hex\symbofam 7A
61 \mathchardef\eta "0\hex\symbofam 68
62 \mathchardef\theta "0\hex\symbofam 71
63 \mathchardef\iota "0\hex\symbofam 69
64 \mathchardef\kappa "0\hex\symbofam 6B
65 \mathchardef\lambda "0\hex\symbofam 6C
66 \mathchardef\mu "0\hex\symbofam 6D
67 \mathchardef\nu "0\hex\symbofam 6E
68 \mathchardef\xi "0\hex\symbofam 78
69 \mathchardef\pi "0\hex\symbofam 70
70 \mathchardef\rho "0\hex\symbofam 72
71 \mathchardef\sigma "0\hex\symbofam 73
72 \mathchardef\tau "0\hex\symbofam 74
73 \mathchardef\upsilon "0\hex\symbofam 75
74 \mathchardef\phi "0\hex\symbofam 66
75 \mathchardef\chi "0\hex\symbofam 63
76 \mathchardef\psi "0\hex\symbofam 79
77 \mathchardef\omega "0\hex\symbofam 77
78 \let\varepsilon \epsilon
79 \let\vartheta \theta
80 \mathchardef\varpi "0\hex\symbofam 76
81 \let\varrho \rho
82 \let\varsigma \sigma
83 \let\varphi \phi
84 \mathchardef\Gamma "0\hex\symbfam 47
85 \mathchardef\Delta "0\hex\symbfam 44
86 \mathchardef\Theta "0\hex\symbfam 51
87 \mathchardef\Lambda "0\hex\symbfam 4C
88 \mathchardef\Xi "0\hex\symbfam 58
89 \mathchardef\Pi "0\hex\symbfam 50
90 \mathchardef\Sigma "0\hex\symbfam 53
91 \mathchardef\Upsilon "0\hex\symbfam A1
92 \mathchardef\Phi "0\hex\symbfam 46
93 \mathchardef\Psi "0\hex\symbfam 59
94 \mathchardef\Omega "0\hex\symbfam 57
95 %
96 \mathchardef\aleph "0\hex\symbfam C0
97 \def\tmpa{8z}\ifx\fotenc\tmpa
98 \mathchardef\imath "0110
99 \else
100 \mathchardef\imath "0169
101 \fi
102 \mathchardef\Re "0\hex\symbfam C2
103 \mathchardef\Im "0\hex\symbfam C1
104 \mathchardef\partial "0\hex\symbfam B6
105 \mathchardef\infty "0\hex\symbfam A5
106 \mathchardef\emptyset "0\hex\symbfam C6
107 \mathchardef\nabla "0\hex\symbfam D1
108 \mathchardef\bot "0\hex\symbfam 5E
109 \mathchardef\forall "0\hex\symbfam 22
110 \mathchardef\exists "0\hex\symbfam 24
111 \mathchardef\neg "0\hex\symbfam D8 \let\lnot \neg
112 \mathchardef\clubsuit "0\hex\symbfam A7
113 \mathchardef\diamondsuit "0\hex\symbfam A8
114 \mathchardef\heartsuit "0\hex\symbfam A9
115 \mathchardef\spadesuit "0\hex\symbfam AA
116 %
117 \mathchardef\intopinternal "1\hex\symbfam F2
118 \mathchardef\prodinternal "1\hex\symbfam D5
119 \mathchardef\suminternal "1\hex\symbfam E5
120 %
121 \def\intop {\mathop{\let\oriop=\intopinternal
122 \mathpalette\setop{\char"F2}\kern.06em}}%
123 \def\prod {\mathop{\let\oriop=\prodinternal
124 \mathpalette\setop{\char"F2}}}%
125 \def\sum {\mathop{\let\oriop=\suminternal
126 \mathpalette\setop{\char"E5}}}%
127 \def\setop ##1##2{\ifx##1\displaystyle % Bigger \int, \prod, \sum
128 \vcenter{\hbox{\bigsymbofont##2}}% % in \displaystyle
129 \else ##1\oriop\fi}
130 %
131 \mathchardef\wedge "2\hex\symbfam D9 \let\land \wedge
132 \mathchardef\vee "2\hex\symbfam DA \let\lor \vee
133 \mathchardef\cap "2\hex\symbfam C7
134 \mathchardef\cup "2\hex\symbfam C8
135 \def\tmpa{8z}\ifx\fotenc\tmpa
136 \mathchardef\ddagger "2082
137 \mathchardef\dagger "2081
138 \fi
139 \mathchardef\bullet "2\hex\symbfam B7
140 \mathchardef\div "2\hex\symbfam B8
141 \mathchardef\oslash "2\hex\symbfam C6
142 \mathchardef\otimes "2\hex\symbfam C4
143 \mathchardef\oplus "2\hex\symbfam C5
144 \mathchardef\pm "2\hex\symbfam B1
145 \mathchardef\cdot "2\hex\symbfam D7
146 \mathchardef\ast "2\hex\symbfam 2A
147 \mathchardef\times "2\hex\symbfam B4
148 \let\star \ast
149 %
150 \mathchardef\propto "3\hex\symbfam B5
151 \mathchardef\mid "3\hex\symbfam EF
152 \mathchardef\Leftrightarrow "3\hex\symbfam DB
153 \mathchardef\Leftarrow "3\hex\symbfam DC
154 \mathchardef\Rightarrow "3\hex\symbfam DE
155 \mathchardef\neq "3\hex\symbfam B9 \let\ne \neq
156 \mathchardef\leq "3\hex\symbfam A3 \let\le \leq
157 \mathchardef\geq "3\hex\symbfam B3 \let\ge \geq
158 \mathchardef\approx "3\hex\symbfam BB
159 \mathchardef\supset "3\hex\symbfam C9
160 \mathchardef\subset "3\hex\symbfam CC
161 \mathchardef\supseteq "3\hex\symbfam CA
162 \mathchardef\subseteq "3\hex\symbfam CD
163 \mathchardef\in "3\hex\symbfam CE
164 \mathchardef\ni "3\hex\symbfam 27 \let\owns \ni
165 \mathchardef\leftrightarrow "3\hex\symbfam AB
166 \mathchardef\leftarrow "3\hex\symbfam AC \let\gets \leftarrow
167 \mathchardef\rightarrow "3\hex\symbfam AE \let\to \rightarrow
168 \mathchardef\sim "3\hex\symbfam 7E
169 \mathchardef\simeq "3\hex\symbfam 40
170 \mathchardef\perp "3\hex\symbfam 5E
171 \mathchardef\equiv "3\hex\symbfam BA
172 %
173 \def\longrightarrow{\mathrel{\smash{\mathchar"200}}\joinrel\mathchar"3221 }%
174 \def\longleftarrow{\mathchar"3220\joinrel\mathrel{\smash{\mathchar"200}}}%
175 \def\Longrightarrow{\mathrel{\pickmathfont{cmr8z}=}\joinrel\mathchar"3229 }%
176 \def\Longleftarrow{\mathchar"3228\joinrel\mathrel{\pickmathfont{cmr8z}=}}%
177 \def\mapsto{\mapstochar\mathchar"3221 }%
178 \def\longleftrightarrow{\mathchar"3220\joinrel\mathchar"3221 }%
179 \def\Longleftrightarrow{\mathchar"3228\joinrel\mathchar"3229 }%
180 \def\rightarrowfill{$\mathsurround0pt\smash{\mathchar"200}\mkern-7mu%
181 \cleaders\hbox{$\mkern-2mu\smash{\mathchar"200}\mkern-2mu$}\hfill
182 \mkern-7mu\mathchar"221$}%
183 \def\leftarrowfill{$\mathsurround0pt\mathchar"220\mkern-7mu%
184 \cleaders\hbox{$\mkern-2mu\smash{\mathchar"200}\mkern-2mu$}\hfill
185 \mkern-7mu\smash{\mathchar"200}$}%
186 %
187 % The following characters are not present im psyr:
188 %
189 \def\jmath{{\pickmathfont{cmmi}{\char"7C}}}%
190 \def\ell{{\pickmathfont{cmmi}{\char"60}}}%
191 \def\wp{{\pickmathfont{cmmi}{\char"7D}}}%
192 \def\flat{{\pickmathfont{cmmi}{\char"5B}}}%
193 \def\natural{{\pickmathfont{cmmi}{\char"5C}}}%
194 \let\sharp \natural
195 \def\triangleleft{\mathbin{\pickmathfont{cmmi}{\char"2F}}}%
196 \def\triangleright{\mathbin{\pickmathfont{cmmi}{\char"2E}}}%
197 \def\smile{\mathrel{\pickmathfont{cmmi}{\char"5E}}}%
198 \def\frown{\mathrel{\pickmathfont{cmmi}{\char"5F}}}%
199 \def\leftharpoonup{\mathrel{\pickmathfont{cmmi}{\char"28}}}%
200 \def\leftharpoondown{\mathrel{\pickmathfont{cmmi}{\char"29}}}%
201 \def\rightharpoonup{\mathrel{\pickmathfont{cmmi}{\char"2A}}}%
202 \def\rightharpoondown{\mathrel{\pickmathfont{cmmi}{\char"2B}}}%
203 %
204 \def\mathcharsback{\mathencread ofs-cm;}%
205 }
206
207