Debian Codegraph @

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

raw
1 % OFS: TX fonts, math encoding declaration
2 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
3 % Apr. 2004 Petr Olsak
4
5 \protectreading ofs-tx.tex % This is part of OFS package
6
7 \mathencdef\TXSYCmathchars {%
8 \fontmessage{\ofsmessageheader Math symbols are set for TX encoding.}%
9 \mathchardef\mappedfromchar "3\hex\txsycfam 00
10 \def\mappedfrom{\leftarrow\mappedfromchar}%
11 \def\longmappedfrom{\longleftarrow\mappedfromchar}%
12 \mathchardef\Mapstochar "3\hex\txsycfam 01
13 \def\Mapsto{\Mapstochar\Rightarrow}%
14 \def\Longmapsto{\Mapstochar\Longrightarrow}%
15 \mathchardef\Mappedfromchar "3\hex\txsycfam 02
16 \def\Mappedfrom{\Leftarrow\Mappedfromchar}%
17 \def\Longmappedfrom{\Longleftarrow\Mappedfromchar}%
18 \mathchardef\mmapstochar "3\hex\txsycfam 03
19 \def\mmapsto{\mmapstochar\rightarrow}%
20 \def\longmmapsto{\mmapstochar\longrightarrow}%
21 \mathchardef\mmappedfromchar "3\hex\txsycfam 04
22 \def\mmappedfrom{\leftarrow\mmappedfromchar}%
23 \def\longmmappedfrom{\longleftarrow\mmappedfromchar}%
24 \mathchardef\Mmapstochar "3\hex\txsycfam 05
25 \def\Mmapsto{\Mmapstochar\Rightarrow}%
26 \def\Longmmapsto{\Mmapstochar\Longrightarrow}%
27 \mathchardef\Mmappedfromchar "3\hex\txsycfam 06
28 \def\Mmappedfrom{\Leftarrow\Mmappedfromchar}%
29 \def\Longmmappedfrom{\Longleftarrow\Mmappedfromchar}%
30 \mathchardef\medcirc "2\hex\txsycfam 07
31 \mathchardef\medbullet "2\hex\txsycfam 08
32 \mathchardef\varparallel "3\hex\txsycfam 09
33 \mathchardef\varparallelinv "3\hex\txsycfam 0A
34 \mathchardef\nvarparallel "3\hex\txsycfam 0B
35 \mathchardef\nvarparallelinv "3\hex\txsycfam 0C
36 \mathchardef\colonapprox "3\hex\txsycfam 0D
37 \mathchardef\colonsim "3\hex\txsycfam 0E
38 \mathchardef\Colonapprox "3\hex\txsycfam 0F
39 \mathchardef\Colonsim "3\hex\txsycfam 10
40 \mathchardef\doteq "3\hex\txsycfam 11
41 \mathchardef\multimapinv "3\hex\txsycfam 12
42 \mathchardef\multimapboth "3\hex\txsycfam 13
43 \mathchardef\multimapdot "3\hex\txsycfam 14
44 \mathchardef\multimapdotinv "3\hex\txsycfam 15
45 \mathchardef\multimapdotboth "3\hex\txsycfam 16
46 \mathchardef\multimapdotbothA "3\hex\txsycfam 17
47 \mathchardef\multimapdotbothB "3\hex\txsycfam 18
48 \mathchardef\VDash "3\hex\txsycfam 19
49 \mathchardef\VvDash "3\hex\txsycfam 1A
50 \mathchardef\cong "3\hex\txsycfam 1B
51 \mathchardef\preceqq "3\hex\txsycfam 1C
52 \mathchardef\succeqq "3\hex\txsycfam 1D
53 \mathchardef\nprecsim "3\hex\txsycfam 1E
54 \mathchardef\nsuccsim "3\hex\txsycfam 1F
55 \mathchardef\nlesssim "3\hex\txsycfam 20
56 \mathchardef\ngtrsim "3\hex\txsycfam 21
57 \mathchardef\nlessapprox "3\hex\txsycfam 22
58 \mathchardef\ngtrapprox "3\hex\txsycfam 23
59 \mathchardef\npreccurlyeq "3\hex\txsycfam 24
60 \mathchardef\nsucccurlyeq "3\hex\txsycfam 25
61 \mathchardef\ngtrless "3\hex\txsycfam 26
62 \mathchardef\nlessgtr "3\hex\txsycfam 27
63 \mathchardef\nbumpeq "3\hex\txsycfam 28
64 \mathchardef\nBumpeq "3\hex\txsycfam 29
65 \mathchardef\nbacksim "3\hex\txsycfam 2A
66 \mathchardef\nbacksimeq "3\hex\txsycfam 2B
67 \mathchardef\neq "3\hex\txsycfam 2C
68 \let\ne=\neq
69 \mathchardef\nasymp "3\hex\txsycfam 2D
70 \mathchardef\nequiv "3\hex\txsycfam 2E
71 \mathchardef\nsim "3\hex\txsycfam 2F
72 \mathchardef\napprox "3\hex\txsycfam 30
73 \mathchardef\nsubset "3\hex\txsycfam 31
74 \mathchardef\nsupset "3\hex\txsycfam 32
75 \mathchardef\nll "3\hex\txsycfam 33
76 \mathchardef\ngg "3\hex\txsycfam 34
77 \mathchardef\nthickapprox "3\hex\txsycfam 35
78 \mathchardef\napproxeq "3\hex\txsycfam 36
79 \mathchardef\nprecapprox "3\hex\txsycfam 37
80 \mathchardef\nsuccapprox "3\hex\txsycfam 38
81 \mathchardef\npreceqq "3\hex\txsycfam 39
82 \mathchardef\nsucceqq "3\hex\txsycfam 3A
83 \mathchardef\nsimeq "3\hex\txsycfam 3B
84 \mathchardef\notin "3\hex\txsycfam 3C
85 \mathchardef\notni "3\hex\txsycfam 3D
86 \let\notowns=\notni
87 \mathchardef\nSubset "3\hex\txsycfam 3E
88 \mathchardef\nSupset "3\hex\txsycfam 3F
89 \mathchardef\nsqsubseteq "3\hex\txsycfam 40
90 \mathchardef\nsqsupseteq "3\hex\txsycfam 41
91 \mathchardef\coloneqq "3\hex\txsycfam 42
92 \mathchardef\eqqcolon "3\hex\txsycfam 43
93 \mathchardef\coloneq "3\hex\txsycfam 44
94 \mathchardef\eqcolon "3\hex\txsycfam 45
95 \mathchardef\Coloneqq "3\hex\txsycfam 46
96 \mathchardef\Eqqcolon "3\hex\txsycfam 47
97 \mathchardef\Coloneq "3\hex\txsycfam 48
98 \mathchardef\Eqcolon "3\hex\txsycfam 49
99 \mathchardef\strictif "3\hex\txsycfam 4A
100 \mathchardef\strictfi "3\hex\txsycfam 4B
101 \mathchardef\strictiff "3\hex\txsycfam 4C
102 \mathchardef\invamp "2\hex\txsycfam 4D
103 \edef\lbag{\delimiter "4\hex\txsycfam 4E\hex\txexafam 30 }%
104 \edef\rbag{\delimiter "5\hex\txsycfam 4F\hex\txexafam 31 }%
105 \mathchardef\Lbag "4\hex\txsycfam 50
106 \mathchardef\Rbag "5\hex\txsycfam 51
107 \mathchardef\circledless "3\hex\txsycfam 52
108 \mathchardef\circledgtr "3\hex\txsycfam 53
109 \mathchardef\circledwedge "2\hex\txsycfam 54
110 \mathchardef\circledvee "2\hex\txsycfam 55
111 \mathchardef\circledbar "2\hex\txsycfam 56
112 \mathchardef\circledbslash "2\hex\txsycfam 57
113 \mathchardef\lJoin "3\hex\txsycfam 58
114 \mathchardef\rJoin "3\hex\txsycfam 59
115 \mathchardef\Join "3\hex\txsycfam 5A
116 \let\lrJoin=\Join
117 \mathchardef\openJoin "3\hex\txsycfam 5B
118 \mathchardef\lrtimes "3\hex\txsycfam 5C
119 \mathchardef\opentimes "3\hex\txsycfam 5D
120 \mathchardef\Diamond "0\hex\txsycfam 5E
121 \mathchardef\Diamondblack "0\hex\txsycfam 5F
122 \mathchardef\nplus "2\hex\txsycfam 60
123 \mathchardef\nsqsubset "3\hex\txsycfam 61
124 \mathchardef\nsqsupset "3\hex\txsycfam 62
125 \mathchardef\dashleftarrow "3\hex\txsycfam 63
126 \mathchardef\dashrightarrow "3\hex\txsycfam 64
127 \let\dasharrow\dashrightarrow
128 \mathchardef\dashleftrightarrow "3\hex\txsycfam 65
129 \mathchardef\leftsquigarrow "3\hex\txsycfam 66
130 \mathchardef\ntwoheadrightarrow "3\hex\txsycfam 67
131 \mathchardef\ntwoheadleftarrow "3\hex\txsycfam 68
132 \mathchardef\boxast "2\hex\txsycfam 69
133 \mathchardef\boxbslash "2\hex\txsycfam 6A
134 \mathchardef\boxbar "2\hex\txsycfam 6B
135 \mathchardef\boxslash "2\hex\txsycfam 6C
136 \mathchardef\Wr "2\hex\txsycfam 6D
137 \mathchardef\lambdaslash "0\hex\txsycfam 6E
138 \mathchardef\lambdabar "0\hex\txsycfam 6F
139 \mathchardef\varclubsuit "0\hex\txsycfam 70
140 \mathchardef\vardiamondsuit "0\hex\txsycfam 71
141 \mathchardef\varheartsuit "0\hex\txsycfam 72
142 \mathchardef\varspadesuit "0\hex\txsycfam 73
143 \mathchardef\Nearrow "3\hex\txsycfam 74
144 \mathchardef\Searrow "3\hex\txsycfam 75
145 \mathchardef\Nwarrow "3\hex\txsycfam 76
146 \mathchardef\Swarrow "3\hex\txsycfam 77
147 \mathchardef\Top "0\hex\txsycfam 78
148 \mathchardef\Bot "0\hex\txsycfam 79
149 \mathchardef\Perp "3\hex\txsycfam 79
150 \mathchardef\leadstoext "3\hex\txsycfam 7A
151 \mathchardef\leadsto "3\hex\txsycfam 7B
152 \mathchardef\sqcupplus "2\hex\txsycfam 7C
153 \mathchardef\sqcapplus "2\hex\txsycfam 7D
154 \edef\llbracket{\delimiter "4\hex\txsycfam 7E\hex\txexafam 12 }%
155 \edef\rrbracket{\delimiter "5\hex\txsycfam 7F\hex\txexafam 13 }%
156 \mathchardef\boxright "3\hex\txsycfam 80
157 \mathchardef\boxleft "3\hex\txsycfam 81
158 \mathchardef\boxdotright "3\hex\txsycfam 82
159 \mathchardef\boxdotleft "3\hex\txsycfam 83
160 \mathchardef\Diamondright "3\hex\txsycfam 84
161 \mathchardef\Diamondleft "3\hex\txsycfam 85
162 \mathchardef\Diamonddotright "3\hex\txsycfam 86
163 \mathchardef\Diamonddotleft "3\hex\txsycfam 87
164 \mathchardef\boxRight "3\hex\txsycfam 88
165 \mathchardef\boxLeft "3\hex\txsycfam 89
166 \mathchardef\boxdotRight "3\hex\txsycfam 8A
167 \mathchardef\boxdotLeft "3\hex\txsycfam 8B
168 \mathchardef\DiamondRight "3\hex\txsycfam 8C
169 \mathchardef\DiamondLeft "3\hex\txsycfam 8D
170 \mathchardef\DiamonddotRight "3\hex\txsycfam 8E
171 \mathchardef\DiamonddotLeft "3\hex\txsycfam 8F
172 \mathchardef\Diamonddot "0\hex\txsycfam 90
173 \mathchardef\circleright "3\hex\txsycfam 91
174 \mathchardef\circleleft "3\hex\txsycfam 92
175 \mathchardef\circleddotright "3\hex\txsycfam 93
176 \let\circledotright\circleddotright
177 \mathchardef\circleddotleft "3\hex\txsycfam 94
178 \let\circledotleft\circleddotleft
179 \mathchardef\multimapbothvert "3\hex\txsycfam 95
180 \mathchardef\multimapdotbothvert "3\hex\txsycfam 96
181 \mathchardef\multimapdotbothBvert "3\hex\txsycfam 97
182 \mathchardef\multimapdotbothAvert "3\hex\txsycfam 98
183 }
184 \mathencdef\TXMIAmathchars {%
185 \mathchardef\alphaup "0\hex\txmiafam 0B
186 \mathchardef\betaup "0\hex\txmiafam 0C
187 \mathchardef\gammaup "0\hex\txmiafam 0D
188 \mathchardef\deltaup "0\hex\txmiafam 0E
189 \mathchardef\epsilonup "0\hex\txmiafam 0F
190 \mathchardef\zetaup "0\hex\txmiafam 10
191 \mathchardef\etaup "0\hex\txmiafam 11
192 \mathchardef\thetaup "0\hex\txmiafam 12
193 \mathchardef\iotaup "0\hex\txmiafam 13
194 \mathchardef\kappaup "0\hex\txmiafam 14
195 \mathchardef\lambdaup "0\hex\txmiafam 15
196 \mathchardef\muup "0\hex\txmiafam 16
197 \mathchardef\nuup "0\hex\txmiafam 17
198 \mathchardef\xiup "0\hex\txmiafam 18
199 \mathchardef\piup "0\hex\txmiafam 19
200 \mathchardef\rhoup "0\hex\txmiafam 1A
201 \mathchardef\sigmaup "0\hex\txmiafam 1B
202 \mathchardef\tauup "0\hex\txmiafam 1C
203 \mathchardef\upsilonup "0\hex\txmiafam 1D
204 \mathchardef\phiup "0\hex\txmiafam 1E
205 \mathchardef\chiup "0\hex\txmiafam 1F
206 \mathchardef\psiup "0\hex\txmiafam 20
207 \mathchardef\omegaup "0\hex\txmiafam 21
208 \mathchardef\varepsilonup "0\hex\txmiafam 22
209 \mathchardef\varthetaup "0\hex\txmiafam 23
210 \mathchardef\varpiup "0\hex\txmiafam 24
211 \mathchardef\varrhoup "0\hex\txmiafam 25
212 \mathchardef\varsigmaup "0\hex\txmiafam 26
213 \mathchardef\varphiup "0\hex\txmiafam 27
214 %
215 \mathchardef\varg "0\hex\txmiafam 31
216 \mathchardef\vary "0\hex\txmiafam 32
217 \mathchardef\varv "0\hex\txmiafam 33
218 \mathchardef\varw "0\hex\txmiafam 34
219 %
220 \mathchardef\varBbbk "0\hex\txmiafam AB
221 }
222 \mathencdef\TXEXAmathchars {%
223 \mathchardef\bignplus "1\hex\txexafam 00
224 \mathchardef\bigsqcupplus "1\hex\txexafam 02
225 \mathchardef\bigsqcapplus "1\hex\txexafam 04
226 \mathchardef\bigsqcap "1\hex\txexafam 06
227 \mathchardef\oiintop "1\hex\txexafam 08
228 \def\oiint{\oiintop\nolimits}
229 \mathchardef\ointctrclockwiseop "1\hex\txexafam 0A
230 \def\ointctrclockwise{\ointctrclockwiseop\nolimits}
231 \mathchardef\ointclockwiseop "1\hex\txexafam 0C
232 \def\ointclockwise{\ointclockwiseop\nolimits}
233 \mathchardef\sqintop "1\hex\txexafam 0E
234 \def\sqint{\sqintop\nolimits}
235 \mathchardef\varprod "1\hex\txexafam 10
236 %\edef\llbracket{\delimiter "4\hex\txsycfam 7E\hex\txexafam 12 }%
237 %\edef\rrbracket{\delimiter "5\hex\txsycfam 7F\hex\txexafam 13 }%
238 \mathchardef\brecext "0\hex\txexafam 20
239 \mathchardef\iintop "1\hex\txexafam 21
240 \def\iint{\iintop\nolimits}
241 \mathchardef\iiintop "1\hex\txexafam 23
242 \def\iiint{\iiintop\nolimits}
243 \mathchardef\iiiintop "1\hex\txexafam 25
244 \def\iiiint{\iiiintop\nolimits}
245 \mathchardef\idotsintop "1\hex\txexafam 27
246 \def\idotsint{\idotsintop\nolimits}
247 \mathchardef\oiiintop "1\hex\txexafam 29
248 \def\oiiint{\oiiintop\nolimits}
249 \mathchardef\varointctrclockwiseop "1\hex\txexafam 2B
250 \def\varointctrclockwise{\varointctrclockwiseop\nolimits}
251 \mathchardef\varointclockwiseop "1\hex\txexafam 2D
252 \def\varointclockwise{\varointclockwiseop\nolimits}
253 \mathchardef\fintop "1\hex\txexafam 3E
254 \def\fint{\fintop\nolimits}
255 \mathchardef\oiintctrclockwiseop "1\hex\txexafam 40
256 \def\oiintctrclockwise{\oiintctrclockwiseop\nolimits}
257 \mathchardef\varoiintclockwiseop "1\hex\txexafam 42
258 \def\varoiintclockwise{\varoiintclockwiseop\nolimits}
259 \mathchardef\oiintclockwiseop "1\hex\txexafam 48
260 \def\oiintclockwise{\oiintclockwiseop\nolimits}
261 \mathchardef\varoiintctrclockwiseop "1\hex\txexafam 4A
262 \def\varoiintctrclockwise{\varoiintctrclockwiseop\nolimits}
263 \mathchardef\oiiintctrclockwiseop "1\hex\txexafam 44
264 \def\oiiintctrclockwise{\oiiintctrclockwiseop\nolimits}
265 \mathchardef\varoiiintclockwiseop "1\hex\txexafam 46
266 \def\varoiiintclockwise{\varoiiintclockwiseop\nolimits}
267 \mathchardef\oiiintclockwiseop "1\hex\txexafam 4C
268 \def\oiiintclockwise{\oiiintclockwiseop\nolimits}
269 \mathchardef\varoiiintctrclockwiseop "1\hex\txexafam 4E
270 \def\varoiiintctrclockwise{\varoiiintctrclockwiseop\nolimits}
271 \mathchardef\sqiintop "1\hex\txexafam 50
272 \def\sqiint{\sqiintop\nolimits}
273 \mathchardef\sqiiintop "1\hex\txexafam 52
274 \def\sqiiint{\sqiiintop\nolimits}
275 }
276 \mathencdef\TXmathmacros {%
277 \def\lgroup{\delimiter"4\hex\bffam 2833A }% extensible ( with sharper tips
278 \def\rgroup{\delimiter"5\hex\bffam 2933B }% extensible ) with sharper tips
279 \def\bracevert{\delimiter"\hex\ttfam 7C33E }% the vertical bar that extends braces
280 \let\ori@joinrel=\joinrel
281 \def\joinrel{\mathrel{\mkern-2.5mu}}% -3mu in plain TeX
282 %
283 \def\varmathbb ##1{% \varmathbb {ABC..} use bb symbols from txmia
284 \ifx\expandaction\noexpand
285 \noexpand\varmathbb{##1}%
286 \else
287 \csname fragilecommand!\endcsname
288 \bgroup
289 \count2=`A \count3="0\hex\txmiafam 81
290 \loop \mathcode \count2=\count3 \relax
291 \csname ifnum\endcsname \count2<`Z
292 \advance\count2 by1 \advance\count3 by1 \repeat
293 ##1%
294 \egroup
295 \fi
296 }%
297 \def\mathfrak ##1{{\fam\txmiafam ##1}}%
298 %
299 \def\ori@not=\not
300 \def\not ##1{% % \not\XXX expands to \notXXX or \nXXX or \mathchar"3236 \XXX
301 \ifx ##1=\ne\else
302 \ifx ##1<\nless\else
303 \ifx ##1>\ngtr\else
304 \runtxnot ##1\fi\fi\fi
305 }%
306 \def\runtxnot {\ifx\expandaction\noexpand \noexpand\not
307 \else \csname fragilecommand!\endcsname
308 \expandafter \trytxnot
309 \fi
310 }%
311 \def\trytxnot ##1{\savetokenname ##1\tmpa
312 \expandafter \ifx \csname n\tmpa\endcsname \relax
313 \expandafter \ifx \csname not\tmpa\endcsname \relax
314 \mathchar"3236 \expandafter \expandafter \expandafter ##1%
315 \else
316 \csname not\tmpa\endcsname
317 \fi
318 \else
319 \csname n\tmpa\endcsname
320 \fi
321 }%
322 % re-definitions of math versions of \ddots, \vdots
323 \def\vdots{\vbox{\baselineskip4\p@ \lineskiplimit\z@
324 \kern6\p@\hbox{$\m@th.$}\hbox{$\m@th.$}\hbox{$\m@th.$}}}%
325 \def\ddots{\mathinner{\mkern1mu\raise7\p@
326 \vbox{\kern7\p@\hbox{$\m@th.$}}\mkern2mu
327 \raise4\p@\hbox{$\m@th.$}\mkern2mu\raise\p@\hbox{$\m@th.$}\mkern1mu}}%
328 % re-definition of \root macro
329 \let\ori@r@@t=\r@@t
330 \def\r@@t##1##2{\setbox\z@\hbox{$\m@th##1\sqrt{##2}$}\dimen@\ht\z@
331 \advance\dimen@-\dp\z@
332 \mkern6mu\raise.68\dimen@\copy\rootbox \mkern-9mu\box\z@}%
333 % re-definitions of \downbracefill, \upbracefill to use \bracext from txexa
334 \let\ori@downbracefill=\downbracefill \let\ori@upbracefill=\upbracefill
335 \def\downbracefill{$\m@th
336 \braceld\mkern-1mu\cleaders\hbox{$\mkern-.5mu\bracext\mkern-.5mu$}\hfill\mkern-1mu%
337 \braceru\bracelu
338 \mkern-1mu\cleaders\hbox{$\mkern-.5mu\bracext\mkern-.5mu$}\hfill\mkern-1mu\bracerd$}%
339 \def\upbracefill{$\m@th
340 \bracelu\mkern-1mu\cleaders\hbox{$\mkern-.5mu\bracext\mkern-.5mu$}\hfill\mkern-1mu%
341 \bracerd\braceld
342 \mkern-1mu\cleaders\hbox{$\mkern-.5mu\bracext\mkern-.5mu$}\hfill\mkern-1mu\braceru$}%
343 \def\mathcharsback{%
344 \let\joinrel \ori@joinrel
345 \let\not \ori@not
346 \let\r@@t \ori@r@@t
347 \let\downbracefill \ori@downbracefill
348 \let\upbracefill \ori@upbracefill}%
349 }
350 \endinput
351
352
353
354
355
356
357