summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/source/fonts/fge/fge.dtx
blob: 941b3cae233b2dd564cc7eabdc3be68126b48ff5 (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
304
% \iffalse meta-comment
%
% Copyright 2006, 2007, 2009, 2011  J.J. Green
% 
% Changes:
%
% \fi
%
% \CheckSum{844}
%% \CharacterTable
%%  {Upper-case    \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z
%%   Lower-case    \a\b\c\d\e\f\g\h\i\j\k\l\m\n\o\p\q\r\s\t\u\v\w\x\y\z
%%   Digits        \0\1\2\3\4\5\6\7\8\9
%%   Exclamation   \!     Double quote  \"     Hash (number) \#
%%   Dollar        \$     Percent       \%     Ampersand     \&
%%   Acute accent  \'     Left paren    \(     Right paren   \)
%%   Asterisk      \*     Plus          \+     Comma         \,
%%   Minus         \-     Point         \.     Solidus       \/
%%   Colon         \:     Semicolon     \;     Less than     \<
%%   Equals        \=     Greater than  \>     Question mark \?
%%   Commercial at \@     Left bracket  \[     Backslash     \\
%%   Right bracket \]     Circumflex    \^     Underscore    \_
%%   Grave accent  \`     Left brace    \{     Vertical bar  \|
%%   Right brace   \}     Tilde         \~}
%
% \iffalse   % this is a METACOMMENT !
%
%<package>\NeedsTeXFormat{LaTeX2e}
%<package>\ProvidesPackage{fge}
%<fdrm>\ProvidesFile{fgerm.fd}%
%<fdit>\ProvidesFile{fgeit.fd}%
%<-driver>             [2015/05/19 1.25
%<package>               fge symbol support package]
%<fdrm>                  fge roman symbol font definitions]
%<fdit>                  fge italic symbol font definitions]
%
%<*driver>
\documentclass{ltxdoc}
\OnlyDescription
\usepackage{multicol}
\usepackage{fge}
\providecommand\dst{\expandafter{\normalfont\scshape docstrip}}
\renewcommand{\quad}{{\hskip1em plus 2em}}
% a slighly wider quote environment
\newenvironment{bquote}{\list{}{%
    \leftmargin=0.1in\rightmargin=0.1in}\item[]}{\endlist}
\begin{document}
 \DocInput{fge.dtx}
\end{document}
%</driver>
% \fi
%
% \GetFileInfo{fge.sty}
% \title{The \texttt{fge} macro package for \LaTeXe}
% \author{J.J. Green}
% \date{Version \fileversion{} \filedate}
% \maketitle
%
% \setcounter{StandardModuleDepth}{1}
%
% \begin{quote}
%   \noindent The comfort of the typesetter is certainly not 
%   the \textit{summum bonum}.
%
%   \hfill\textsc{G.~Frege, 1896.} 
% \end{quote}
% 
% \noindent
% This file defines the package |fge| which provides \LaTeXe\ access
% to the characters from the \texttt{fge} fonts. These are 
% based on Knuth's Computer Modern and specifically designed for setting 
% the \textit{Grundgesetze der Arithmetik}, the culmination of Frege's 
% logicist project.
%
% \begin{multicols}{2}
%
% \subsubsection*{Spiritus lenis and asper}
% \begin{bquote}
%   \begin{tabular}{lc}
%     |\spirituslenis{\alpha}| & $\spirituslenis{\alpha}$ \\
%     |\spiritusasper{\alpha}| & $\spiritusasper{\alpha}$
%   \end{tabular}
% \end{bquote}
%
% \subsubsection*{Lazy capitals and numerals}
% \begin{bquote}
%   \begin{tabular}{lc}
%     |\fgerighttwo|  & $\fgerighttwo$  \\
%     |\fgerightB|    & $\fgerightB$  \\
%     |\fgelefttwo|   & $\fgelefttwo$ \\
%     |\fgeleftthree| & $\fgeleftthree$ \\
%     |\fgeleftB|     & $\fgeleftB$ \\
%     |\fgeleftC|     & $\fgeleftC$
%   \end{tabular}
% \end{bquote}
%
% \subsubsection*{Overturned romans}
% \begin{bquote}
%   \begin{tabular}{lc}
%     |\fgec|         & $\fgec$ \\
%     |\fgee|         & $\fgee$ \\
%     |\fgeeszett|    & $\fgeeszett$ \\
%     |\fgeA|         & $\fgeA$ 
%   \end{tabular}
% \end{bquote}
%
% \subsubsection*{Overturned italics}
% \begin{bquote}
%   \begin{tabular}{lc}
%     |\fged|         & $\fged$ \\
%     |\fgef|         & $\fgef$ \\
%     |\fgeF|         & $\fgeF$ \\ 
%   \end{tabular}
% \end{bquote}
%
% \subsubsection*{Struckout numerals}
% \begin{bquote}
%   \begin{tabular}{lc}
%     |\fgestruckzero| & $\fgestruckzero$ \\
%     |\fgestruckone|  & $\fgestruckone$
%   \end{tabular}
% \end{bquote}
%
% \subsubsection*{Fletched arrows}
% \begin{bquote}
%   \begin{tabular}{lc}
%     |\fgerightarrow| & $\fgerightarrow$ \\
%     |\fgeuparrow|    & $\fgeuparrow$
%   \end{tabular}
% \end{bquote}
%
% \subsubsection*{Cups, caps and bars}
% \begin{bquote}
%   \begin{tabular}{lc}
%     |\fgeupbracket| & $\fgeupbracket$ \\
%     |\fgecap| & $\fgecap$ \\
%     |\fgecup| & $\fgecup$ \\
%     |\fgecupbar| & $\fgecupbar$ \\
%     |\fgecapbar| & $\fgecapbar$ \\
%     |\fgebarcap| & $\fgebarcap$ \\
%     |\fgecupacute| & $\fgecupacute$ \\
%     |\fgebaracute| & $\fgebaracute$ 
%   \end{tabular}
% \end{bquote}
%
% \subsubsection*{Erratics}
% \begin{bquote}
%   \begin{tabular}{lc}
%     |\fgemark|      & $\fgemark$  \\
%     |\fgelb|        & $\fgelb$ \\
%     |\fgeinfty|     & $\fgeinfty$ \\
%     |\fgelangle|    & $\fgelangle$ \\
%     |\fges|         & $\fges$ \\
%     |\fgebackslash| & $\fgebackslash$
%   \end{tabular}
% \end{bquote}
%
% \end{multicols}
% 
% \StopEventually{}
% 
% \section{The \dst{} modules}
% 
% The following modules are used in the implementation to direct
% \dst{} in generating the external files:
% \begin{center}
%   \begin{tabular}{ll}
%     driver  & produce a documentation driver file \\
%     package & produce a package file \\
%     fdrm    & produce a roman font definition file \\
%     fdit    & produce an italic font definition file \\
%   \end{tabular}
% \end{center}
% 
% \section{The Implementation}
% \subsection{The macro package}
% 
%<*package>
% Setup the |crescent| option, which selects the crescent
% variant of the spiritus lenis. 
\newif\ifcrescent 
\crescentfalse
\DeclareOption{crescent}{\global\crescenttrue}
\ProcessOptions\relax
% We declare \texttt{fgerm} and \texttt{fgeit} math symbol fonts:
%    \begin{macrocode}
\DeclareSymbolFont{fgerm}{U}{fgerm}{m}{n}
\DeclareSymbolFont{fgeit}{U}{fgeit}{m}{n}
%    \end{macrocode}
% 
% The special symbols:
%    \begin{macrocode}
\DeclareMathSymbol{\fgelb}{\mathord}{fgeit}{"11}
\DeclareMathSymbol{\fgeF}{\mathbin}{fgeit}{"46}
\DeclareMathSymbol{\fgevareta}{\mathord}{fgerm}{"11}
\DeclareMathSymbol{\fgeeszett}{\mathbin}{fgerm}{"19}
\DeclareMathSymbol{\fgerightarrow}{\mathrel}{fgerm}{"21}
\DeclareMathSymbol{\fgeuparrow}{\mathrel}{fgerm}{"22}
\DeclareMathSymbol{\fgestruckzero}{\mathord}{fgerm}{"30}
\DeclareMathSymbol{\fgestruckone}{\mathord}{fgerm}{"31}
\DeclareMathSymbol{\fgelefttwo}{\mathbin}{fgerm}{"32}
\DeclareMathSymbol{\fgeleftthree}{\mathbin}{fgerm}{"33}
\DeclareMathSymbol{\fgerighttwo}{\mathbin}{fgerm}{"34}
\DeclareMathSymbol{\fgeA}{\mathord}{fgerm}{"41}
\DeclareMathSymbol{\fgerightB}{\mathbin}{fgerm}{"42}
\DeclareMathSymbol{\fgeleftC}{\mathbin}{fgerm}{"43}
\DeclareMathSymbol{\fgeleftB}{\mathbin}{fgerm}{"44}
\DeclareMathSymbol{\fgebackslash}{\mathord}{fgerm}{"4B}
\DeclareMathSymbol{\fgeupbracket}{\mathord}{fgerm}{"4C}
\DeclareMathSymbol{\fgebaracute}{\mathord}{fgerm}{"4D}
\DeclareMathSymbol{\fgecup}{\mathord}{fgerm}{"4E}
\DeclareMathSymbol{\fgebarcap}{\mathord}{fgerm}{"4F}
\DeclareMathSymbol{\fgecupbar}{\mathord}{fgerm}{"50}
\DeclareMathSymbol{\fgecapbar}{\mathord}{fgerm}{"51}
\DeclareMathSymbol{\fgecupacute}{\mathord}{fgerm}{"52}
\DeclareMathSymbol{\fgecap}{\mathord}{fgerm}{"53}
\DeclareMathSymbol{\fgemark}{\mathord}{fgerm}{"55}
\DeclareMathSymbol{\fgec}{\mathbin}{fgerm}{"63}
\DeclareMathSymbol{\fgee}{\mathbin}{fgerm}{"65}
\DeclareMathSymbol{\fgef}{\mathord}{fgeit}{"66}
\DeclareMathSymbol{\fgelangle}{\mathbin}{fgerm}{"68}
\DeclareMathSymbol{\fgeinfty}{\mathord}{fgerm}{"69}
\DeclareMathSymbol{\fged}{\mathord}{fgeit}{"70}
\DeclareMathSymbol{\fges}{\mathbin}{fgerm}{"73}
%    \end{macrocode}
% This included for backward compatibility with versions
% prior to 1.17, it was only then that I discovered that
% what I first thought was an N, then an eta, then an 
% overturned U, was in fact an overturned lb (pound) 
% ligature. Likewise, what was  orignally thought to be
% a U turned out to be a Mark (currency) sign
%    \begin{macrocode}
\newcommand{\fgeeta}{\fgelb}
\newcommand{\fgeN}{\fgelb}
\newcommand{\fgeoverU}{\fgelb}
\newcommand{\fgeU}{\fgemark}
%    \end{macrocode}
% The spiritus lenis and asper accents. Here we don't use 
% \texttt{DeclareMathAccent} but instead \TeX\ primatives; the former 
% is for ordinary symbols which are press-ganged into being accents, 
% the latter is for glyphs designed as accents. The tricky part is 
% selecting the \textt{fge} font by coercing its symbol-code into an 
% appropriate hex-string, we copy the code in the AMS fonts package.
%    \begin{macrocode}
\def\spirituslenisA{\mathaccent"0\hexnumber@\symfgerm 15}
\def\spirituslenisB{\mathaccent"0\hexnumber@\symfgerm 16}
\def\spiritusasperA{\mathaccent"0\hexnumber@\symfgerm 13}
\def\spiritusasperB{\mathaccent"0\hexnumber@\symfgerm 14}
%    \end{macrocode}
% There are two versions of the spiritus lenis and asper, variant
% A from the Ibycus font for classical Greek by
% Pierre A. MacKay, from work by Silvio Levy's realization of a
% classic Didot cut of Greek type from around 1800.
% Variant B is my own, an approximation of the more crescent-like
% accent used in the original printing. Variant A is the default,
% since it is prettier; but the translators have asked me to retain
% the crescent form.
%    \begin{macrocode}
\ifcrescent
  \def\spirituslenis{\spirituslenisB}
  \def\spiritusasper{\spiritusasperB}
\else
  \def\spirituslenis{\spirituslenisA}
  \def\spiritusasper{\spiritusasperA}
\fi
%    \end{macrocode}
% The character sizing
%    \begin{macrocode}
\DeclareMathSizes{10}{10}{7}{5}
%    \end{macrocode}
%</package>
%    \end{macrocode}
% \subsection{The font definition files}
% 
% The declarations, 
% that have to go into the corresponding |.fd| files:
%<*fdrm>
%    \begin{macrocode}
\DeclareFontFamily{U}{fgerm}{}
\DeclareFontShape{U}{fgerm}{m}{n}{%
  <5><6><7> fgerm10
  <8><9><10> fgerm10
  <10.95><12><14.4><17.28> fgerm10}{}
%    \end{macrocode}
%</fdrm>
%<*fdit>
%    \begin{macrocode}
\DeclareFontFamily{U}{fgeit}{}
\DeclareFontShape{U}{fgeit}{m}{n}{%
  <5><6><7> fgeit10
  <8><9><10> fgeit10
  <10.95><12><14.4><17.28> fgeit10}{}
%    \end{macrocode}
%</fdit>
% 
% The next line goes into all files and in addition prevents \dst{}
% from adding any further code from the main source file (such as a
% character table).
%    \begin{macrocode}
\endinput
%    \end{macrocode}
% 
% \DeleteShortVerb{\|}
% \Finale