summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/fontinst/mathmtx/mathex.mtx
blob: 73170fa7cf4d3e4bbce3e907e86ecaa7d0b02de0 (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
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
%%%========================================================================
%%% @TeX-font-metrics-file{
%%%    author              = "Alan Jeffrey and Lars Hellstr{\"o}m",
%%%    version             = "1.915",
%%%    date                = "20 November 2000",
%%%    time                = "17:01:00 CEST",
%%%    filename            = "mathex.mtx",
%%%    checksum            = "",
%%%    email               = "fontinst@cogs.susx.ac.uk",
%%%    codetable           = "ISO/ASCII",
%%%    keywords            = "encoding, math, TeX, PostScript",
%%%    supported           = "yes",
%%%    abstract            = "These are the extra glyphs needed for TeX 
%%%                           math fonts, used by the fontinst package.",
%%%    package             = "fontinst",
%%%    dependencies        = "fontinst.sty, fontdoc.sty",
%%% }
%%%========================================================================
\relax

\documentclass[twocolumn]{article}
\usepackage{fontdoc}[1999/11/04]

\title{The \texttt{fontinst} math symbol glyphs}
\author{Alan Jeffrey\and Lars Hellstr\"om}
\date{November 20, 2000}

\showbranches

\begin{document}

\maketitle

\section{Introduction}

This document describes the glyphs used by the \texttt{fontinst} 
package when generating math symbol fonts.

\metrics

% Uses the fontinst package.

\needsfontinstversion{1.900}


% \unfakable is a glyph which can't be faked.
\setcommand\unfakable#1{
   \setglyph{#1}
      \glyphrule{500}{500}
      \glyphwarning{missing glyph `#1'}
   \endsetglyph
}
\begincomment\medskip
An \textbf{Unfakable} is a glyph which can't be faked. An 
``\textbf{Unfakable `\#1'}\,'' is equivalent to
\begin{quotation}\unfakable{\#1}\end{quotation}

\resetcommand\unfakable#1{\Aheading{Unfakable `#1'}}
\endcomment


% \extensible and \vextensible define a number of extensible glyphs.
\setcommand\extensible#1{
   \begincomment
   \subsection{The `#1' extensible}%
   \endcomment
   \unfakable{#1}
   \unfakable{#1tp}
   \unfakable{#1mid}
   \unfakable{#1bt}
   \unfakable{#1ex}
   \setglyph{#1big} \glyph{#1}{1000} \endsetglyph
   \setglyph{#1Big} \glyph{#1big}{1000} \endsetglyph
   \setglyph{#1bigg} \glyph{#1Big}{1000} \endsetglyph
   \setglyph{#1Bigg} \glyph{#1bigg}{1000} \endsetglyph
}

\setcommand\vextensible#1{
   \begincomment
   \subsection{The `#1' extensible}%
   \endcomment
   \unfakable{#1}
   \unfakable{#1tp}
   \unfakable{#1mid}
   \unfakable{#1bt}
   \unfakable{#1vertex}
   \setglyph{#1big} \glyph{#1}{1000} \endsetglyph
   \setglyph{#1Big} \glyph{#1big}{1000} \endsetglyph
   \setglyph{#1bigg} \glyph{#1Big}{1000} \endsetglyph
   \setglyph{#1Bigg} \glyph{#1bigg}{1000} \endsetglyph
}

% \wideaccent defines a wide accent.
\setcommand\wideaccent#1{
   \begincomment
   \subsection{The `#1' wide accents}%
   \endcomment
   \unfakable{#1}
   \setglyph{#1wide} \glyph{#1}{1000} \endsetglyph
   \setglyph{#1wider} \glyph{#1wide}{1000} \endsetglyph
   \setglyph{#1widest} \glyph{#1wider}{1000} \endsetglyph
}

\comment{\textit{displayoperatorscale} is the difference in scale 
between a big and a display operator, exept for integrals, which have 
their own scale.}
\setint{displayoperatorscale}{1200}
\setint{integralscale}{1728}

\ifisglyph{product}\then
   \setint{textoperatorsize}{
      \add{\height{product}}{\depth{product}}
   }
\Else
   \setint{textoperatorsize}{1000}
   % Default taken from cmex10.
\Fi

% \integral, \bigoperator and \biggoperator define operators.

\setcommand\integral#1{
   \begincomment
   \subsection{The `#1' integrals}%
   \endcomment
   \unfakable{#1}
   \setglyph{#1text} \glyph{#1}{1000} \endsetglyph
   \setglyph{#1display} \glyph{#1text}{\int{integralscale}} \endsetglyph
}

\setcommand\bigoperator#1{
   \begincomment
   \subsection{The `#1' big operators}%
   \endcomment
   \unfakable{#1}
   \setglyph{#1text} \glyph{#1}{1000} \endsetglyph
   \setglyph{#1display} \glyph{#1text}{\int{displayoperatorscale}} \endsetglyph
}

\setcommand\biggoperator#1{
   \begincomment
   \subsection{The `#1' big operators}%
   \endcomment
   \unfakable{#1}
   \setglyph{#1text} 
      \glyph{#1}{
         \div{\mul{1000}{\int{textoperatorsize}}}
             {\add{\height{#1}}{\depth{#1}}}
      }
   \endsetglyph
   \setglyph{#1display} 
      \glyph{#1text}{\int{displayoperatorscale}} 
   \endsetglyph
}


\begincomment
\section{Math extension glyphs}
\endcomment

\unfakable{bracketleftbt}
\unfakable{bracketrightbt}
\unfakable{bracketlefttp}
\unfakable{bracketrighttp}

\setglyph{floorleft}
   \glyph{bracketleftbt}{1000}
\endsetglyph

\setglyph{floorright}
   \glyph{bracketrightbt}{1000}
\endsetglyph

\setglyph{ceilingleft}
   \glyph{bracketlefttp}{1000}
\endsetglyph

\setglyph{ceilingright}
   \glyph{bracketrighttp}{1000}
\endsetglyph

\setglyph{bardbl}
   \glyph{bar}{1000}
   \glyph{bar}{1000}
\endsetglyph
   
\setglyph{barex}
   \glyph{bar}{1000}
\endsetglyph

\setglyph{bardblex}
   \glyph{bardbl}{1000}
\endsetglyph

\setglyph{arrowtp}
   \glyph{arrowup}{1000}
\endsetglyph

\setglyph{arrowbt}
   \glyph{arrowdown}{1000}
\endsetglyph

\setglyph{arrowdbltp}
   \glyph{arrowdblup}{1000}
\endsetglyph

\setglyph{arrowdblbt}
   \glyph{arrowdbldown}{1000}
\endsetglyph

\unfakable{tilde}

\setglyph{hat}
   \glyph{circumflex}{1000}
\endsetglyph

\unfakable{plus}
\unfakable{union}

\setglyph{unionmulti}
   \push
      \movert{\div{\sub{\width{union}}{\scale{\width{plus}}{700}}}{2}}
      \moveup{\div{\width{plus}}{4}}
      \glyph{plus}{700}
   \pop
   \glyph{union}{1000}
\endsetglyph

\extensible{parenleft}
\extensible{parenright}
\extensible{bracketleft}
\extensible{bracketright}
\extensible{braceleft}
\extensible{braceright}
\extensible{floorleft}
\extensible{floorright}
\extensible{ceilingleft}
\extensible{ceilingright}
\extensible{slash}
\extensible{backslash}
\extensible{angleleft}
\extensible{angleright}

\wideaccent{hat}
\wideaccent{tilde}

\vextensible{radical}
\vextensible{arrow}
\extensible{arrowdbl}
\unfakable{arrowvertexdbl}

\biggoperator{unionsq}
\biggoperator{circledot}
\biggoperator{circleplus}
\biggoperator{circlemultiply}
\biggoperator{unionmulti}
\biggoperator{intersection}
\biggoperator{union}
\biggoperator{logicaland}
\biggoperator{logicalor}

\bigoperator{product}
\bigoperator{summation}
\bigoperator{coproduct}

\integral{integral}
\integral{contintegral}

\begincomment
\subsection{Horizontal braces}
\endcomment

\unfakable{bracehtipdownleft}
\unfakable{bracehtipdownright}
\unfakable{bracehtipupleft}
\unfakable{bracehtipupright}

\endmetrics


\section{Changes}

29 Dec 1993, v1.30: Created file.

3 Jan 1994, v1.301: Renamed some of the glyphs, added fakes for 
\texttt{arrowverttp} and friends.

8 Jan 1994, v1.304: Renamed \texttt{similareq} to \texttt{similarequal}.

9 Jan 1994, v1.305: Renamed some glyphs to use the same names as Lucida 
New Math.

16 October 2000, v\,1.915: Updated markup (made it a \LaTeXe\ 
document!). (LH)

20 November 2000, v\,1.915: Added test for whether the \texttt{product} 
glyph exists before setting the \textit{textoperatorsize}, using 
value corresponding to \texttt{cmex10} if it doesn't. Changed 
\verb|\wideaccent| to call the widest glyph \textellipsis\texttt{widest} 
instead of \textellipsis\texttt{widerr}. Changed glyph name 
\texttt{arrowdblvertex} to \texttt{arrowvertexdbl}. (LH) Reported by 
Alejandro L\'{o}pez-Valencia. 

\end{document}