Debian Codegraph @

texmf-dist/source/fonts/fge/fge.dtx

raw
1 % \iffalse meta-comment
2 %
3 % Copyright 2006, 2007, 2009, 2011 J.J. Green
4 %
5 % Changes:
6 %
7 % \fi
8 %
9 % \CheckSum{844}
10 %% \CharacterTable
11 %% {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
12 %% 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
13 %% Digits \0\1\2\3\4\5\6\7\8\9
14 %% Exclamation \! Double quote \" Hash (number) \#
15 %% Dollar \$ Percent \% Ampersand \&
16 %% Acute accent \' Left paren \( Right paren \)
17 %% Asterisk \* Plus \+ Comma \,
18 %% Minus \- Point \. Solidus \/
19 %% Colon \: Semicolon \; Less than \<
20 %% Equals \= Greater than \> Question mark \?
21 %% Commercial at \@ Left bracket \[ Backslash \\
22 %% Right bracket \] Circumflex \^ Underscore \_
23 %% Grave accent \` Left brace \{ Vertical bar \|
24 %% Right brace \} Tilde \~}
25 %
26 % \iffalse % this is a METACOMMENT !
27 %
28 %<package>\NeedsTeXFormat{LaTeX2e}
29 %<package>\ProvidesPackage{fge}
30 %<fdrm>\ProvidesFile{fgerm.fd}%
31 %<fdit>\ProvidesFile{fgeit.fd}%
32 %<-driver> [2015/05/19 1.25
33 %<package> fge symbol support package]
34 %<fdrm> fge roman symbol font definitions]
35 %<fdit> fge italic symbol font definitions]
36 %
37 %<*driver>
38 \documentclass{ltxdoc}
39 \OnlyDescription
40 \usepackage{multicol}
41 \usepackage{fge}
42 \providecommand\dst{\expandafter{\normalfont\scshape docstrip}}
43 \renewcommand{\quad}{{\hskip1em plus 2em}}
44 % a slighly wider quote environment
45 \newenvironment{bquote}{\list{}{%
46 \leftmargin=0.1in\rightmargin=0.1in}\item[]}{\endlist}
47 \begin{document}
48 \DocInput{fge.dtx}
49 \end{document}
50 %</driver>
51 % \fi
52 %
53 % \GetFileInfo{fge.sty}
54 % \title{The \texttt{fge} macro package for \LaTeXe}
55 % \author{J.J. Green}
56 % \date{Version \fileversion{} \filedate}
57 % \maketitle
58 %
59 % \setcounter{StandardModuleDepth}{1}
60 %
61 % \begin{quote}
62 % \noindent The comfort of the typesetter is certainly not
63 % the \textit{summum bonum}.
64 %
65 % \hfill\textsc{G.~Frege, 1896.}
66 % \end{quote}
67 %
68 % \noindent
69 % This file defines the package |fge| which provides \LaTeXe\ access
70 % to the characters from the \texttt{fge} fonts. These are
71 % based on Knuth's Computer Modern and specifically designed for setting
72 % the \textit{Grundgesetze der Arithmetik}, the culmination of Frege's
73 % logicist project.
74 %
75 % \begin{multicols}{2}
76 %
77 % \subsubsection*{Spiritus lenis and asper}
78 % \begin{bquote}
79 % \begin{tabular}{lc}
80 % |\spirituslenis{\alpha}| & $\spirituslenis{\alpha}$ \\
81 % |\spiritusasper{\alpha}| & $\spiritusasper{\alpha}$
82 % \end{tabular}
83 % \end{bquote}
84 %
85 % \subsubsection*{Lazy capitals and numerals}
86 % \begin{bquote}
87 % \begin{tabular}{lc}
88 % |\fgerighttwo| & $\fgerighttwo$ \\
89 % |\fgerightB| & $\fgerightB$ \\
90 % |\fgelefttwo| & $\fgelefttwo$ \\
91 % |\fgeleftthree| & $\fgeleftthree$ \\
92 % |\fgeleftB| & $\fgeleftB$ \\
93 % |\fgeleftC| & $\fgeleftC$
94 % \end{tabular}
95 % \end{bquote}
96 %
97 % \subsubsection*{Overturned romans}
98 % \begin{bquote}
99 % \begin{tabular}{lc}
100 % |\fgec| & $\fgec$ \\
101 % |\fgee| & $\fgee$ \\
102 % |\fgeeszett| & $\fgeeszett$ \\
103 % |\fgeA| & $\fgeA$
104 % \end{tabular}
105 % \end{bquote}
106 %
107 % \subsubsection*{Overturned italics}
108 % \begin{bquote}
109 % \begin{tabular}{lc}
110 % |\fged| & $\fged$ \\
111 % |\fgef| & $\fgef$ \\
112 % |\fgeF| & $\fgeF$ \\
113 % \end{tabular}
114 % \end{bquote}
115 %
116 % \subsubsection*{Struckout numerals}
117 % \begin{bquote}
118 % \begin{tabular}{lc}
119 % |\fgestruckzero| & $\fgestruckzero$ \\
120 % |\fgestruckone| & $\fgestruckone$
121 % \end{tabular}
122 % \end{bquote}
123 %
124 % \subsubsection*{Fletched arrows}
125 % \begin{bquote}
126 % \begin{tabular}{lc}
127 % |\fgerightarrow| & $\fgerightarrow$ \\
128 % |\fgeuparrow| & $\fgeuparrow$
129 % \end{tabular}
130 % \end{bquote}
131 %
132 % \subsubsection*{Cups, caps and bars}
133 % \begin{bquote}
134 % \begin{tabular}{lc}
135 % |\fgeupbracket| & $\fgeupbracket$ \\
136 % |\fgecap| & $\fgecap$ \\
137 % |\fgecup| & $\fgecup$ \\
138 % |\fgecupbar| & $\fgecupbar$ \\
139 % |\fgecapbar| & $\fgecapbar$ \\
140 % |\fgebarcap| & $\fgebarcap$ \\
141 % |\fgecupacute| & $\fgecupacute$ \\
142 % |\fgebaracute| & $\fgebaracute$
143 % \end{tabular}
144 % \end{bquote}
145 %
146 % \subsubsection*{Erratics}
147 % \begin{bquote}
148 % \begin{tabular}{lc}
149 % |\fgemark| & $\fgemark$ \\
150 % |\fgelb| & $\fgelb$ \\
151 % |\fgeinfty| & $\fgeinfty$ \\
152 % |\fgelangle| & $\fgelangle$ \\
153 % |\fges| & $\fges$ \\
154 % |\fgebackslash| & $\fgebackslash$
155 % \end{tabular}
156 % \end{bquote}
157 %
158 % \end{multicols}
159 %
160 % \StopEventually{}
161 %
162 % \section{The \dst{} modules}
163 %
164 % The following modules are used in the implementation to direct
165 % \dst{} in generating the external files:
166 % \begin{center}
167 % \begin{tabular}{ll}
168 % driver & produce a documentation driver file \\
169 % package & produce a package file \\
170 % fdrm & produce a roman font definition file \\
171 % fdit & produce an italic font definition file \\
172 % \end{tabular}
173 % \end{center}
174 %
175 % \section{The Implementation}
176 % \subsection{The macro package}
177 %
178 %<*package>
179 % Setup the |crescent| option, which selects the crescent
180 % variant of the spiritus lenis.
181 \newif\ifcrescent
182 \crescentfalse
183 \DeclareOption{crescent}{\global\crescenttrue}
184 \ProcessOptions\relax
185 % We declare \texttt{fgerm} and \texttt{fgeit} math symbol fonts:
186 % \begin{macrocode}
187 \DeclareSymbolFont{fgerm}{U}{fgerm}{m}{n}
188 \DeclareSymbolFont{fgeit}{U}{fgeit}{m}{n}
189 % \end{macrocode}
190 %
191 % The special symbols:
192 % \begin{macrocode}
193 \DeclareMathSymbol{\fgelb}{\mathord}{fgeit}{"11}
194 \DeclareMathSymbol{\fgeF}{\mathbin}{fgeit}{"46}
195 \DeclareMathSymbol{\fgevareta}{\mathord}{fgerm}{"11}
196 \DeclareMathSymbol{\fgeeszett}{\mathbin}{fgerm}{"19}
197 \DeclareMathSymbol{\fgerightarrow}{\mathrel}{fgerm}{"21}
198 \DeclareMathSymbol{\fgeuparrow}{\mathrel}{fgerm}{"22}
199 \DeclareMathSymbol{\fgestruckzero}{\mathord}{fgerm}{"30}
200 \DeclareMathSymbol{\fgestruckone}{\mathord}{fgerm}{"31}
201 \DeclareMathSymbol{\fgelefttwo}{\mathbin}{fgerm}{"32}
202 \DeclareMathSymbol{\fgeleftthree}{\mathbin}{fgerm}{"33}
203 \DeclareMathSymbol{\fgerighttwo}{\mathbin}{fgerm}{"34}
204 \DeclareMathSymbol{\fgeA}{\mathord}{fgerm}{"41}
205 \DeclareMathSymbol{\fgerightB}{\mathbin}{fgerm}{"42}
206 \DeclareMathSymbol{\fgeleftC}{\mathbin}{fgerm}{"43}
207 \DeclareMathSymbol{\fgeleftB}{\mathbin}{fgerm}{"44}
208 \DeclareMathSymbol{\fgebackslash}{\mathord}{fgerm}{"4B}
209 \DeclareMathSymbol{\fgeupbracket}{\mathord}{fgerm}{"4C}
210 \DeclareMathSymbol{\fgebaracute}{\mathord}{fgerm}{"4D}
211 \DeclareMathSymbol{\fgecup}{\mathord}{fgerm}{"4E}
212 \DeclareMathSymbol{\fgebarcap}{\mathord}{fgerm}{"4F}
213 \DeclareMathSymbol{\fgecupbar}{\mathord}{fgerm}{"50}
214 \DeclareMathSymbol{\fgecapbar}{\mathord}{fgerm}{"51}
215 \DeclareMathSymbol{\fgecupacute}{\mathord}{fgerm}{"52}
216 \DeclareMathSymbol{\fgecap}{\mathord}{fgerm}{"53}
217 \DeclareMathSymbol{\fgemark}{\mathord}{fgerm}{"55}
218 \DeclareMathSymbol{\fgec}{\mathbin}{fgerm}{"63}
219 \DeclareMathSymbol{\fgee}{\mathbin}{fgerm}{"65}
220 \DeclareMathSymbol{\fgef}{\mathord}{fgeit}{"66}
221 \DeclareMathSymbol{\fgelangle}{\mathbin}{fgerm}{"68}
222 \DeclareMathSymbol{\fgeinfty}{\mathord}{fgerm}{"69}
223 \DeclareMathSymbol{\fged}{\mathord}{fgeit}{"70}
224 \DeclareMathSymbol{\fges}{\mathbin}{fgerm}{"73}
225 % \end{macrocode}
226 % This included for backward compatibility with versions
227 % prior to 1.17, it was only then that I discovered that
228 % what I first thought was an N, then an eta, then an
229 % overturned U, was in fact an overturned lb (pound)
230 % ligature. Likewise, what was orignally thought to be
231 % a U turned out to be a Mark (currency) sign
232 % \begin{macrocode}
233 \newcommand{\fgeeta}{\fgelb}
234 \newcommand{\fgeN}{\fgelb}
235 \newcommand{\fgeoverU}{\fgelb}
236 \newcommand{\fgeU}{\fgemark}
237 % \end{macrocode}
238 % The spiritus lenis and asper accents. Here we don't use
239 % \texttt{DeclareMathAccent} but instead \TeX\ primatives; the former
240 % is for ordinary symbols which are press-ganged into being accents,
241 % the latter is for glyphs designed as accents. The tricky part is
242 % selecting the \textt{fge} font by coercing its symbol-code into an
243 % appropriate hex-string, we copy the code in the AMS fonts package.
244 % \begin{macrocode}
245 \def\spirituslenisA{\mathaccent"0\hexnumber@\symfgerm 15}
246 \def\spirituslenisB{\mathaccent"0\hexnumber@\symfgerm 16}
247 \def\spiritusasperA{\mathaccent"0\hexnumber@\symfgerm 13}
248 \def\spiritusasperB{\mathaccent"0\hexnumber@\symfgerm 14}
249 % \end{macrocode}
250 % There are two versions of the spiritus lenis and asper, variant
251 % A from the Ibycus font for classical Greek by
252 % Pierre A. MacKay, from work by Silvio Levy's realization of a
253 % classic Didot cut of Greek type from around 1800.
254 % Variant B is my own, an approximation of the more crescent-like
255 % accent used in the original printing. Variant A is the default,
256 % since it is prettier; but the translators have asked me to retain
257 % the crescent form.
258 % \begin{macrocode}
259 \ifcrescent
260 \def\spirituslenis{\spirituslenisB}
261 \def\spiritusasper{\spiritusasperB}
262 \else
263 \def\spirituslenis{\spirituslenisA}
264 \def\spiritusasper{\spiritusasperA}
265 \fi
266 % \end{macrocode}
267 % The character sizing
268 % \begin{macrocode}
269 \DeclareMathSizes{10}{10}{7}{5}
270 % \end{macrocode}
271 %</package>
272 % \end{macrocode}
273 % \subsection{The font definition files}
274 %
275 % The declarations,
276 % that have to go into the corresponding |.fd| files:
277 %<*fdrm>
278 % \begin{macrocode}
279 \DeclareFontFamily{U}{fgerm}{}
280 \DeclareFontShape{U}{fgerm}{m}{n}{%
281 <5><6><7> fgerm10
282 <8><9><10> fgerm10
283 <10.95><12><14.4><17.28> fgerm10}{}
284 % \end{macrocode}
285 %</fdrm>
286 %<*fdit>
287 % \begin{macrocode}
288 \DeclareFontFamily{U}{fgeit}{}
289 \DeclareFontShape{U}{fgeit}{m}{n}{%
290 <5><6><7> fgeit10
291 <8><9><10> fgeit10
292 <10.95><12><14.4><17.28> fgeit10}{}
293 % \end{macrocode}
294 %</fdit>
295 %
296 % The next line goes into all files and in addition prevents \dst{}
297 % from adding any further code from the main source file (such as a
298 % character table).
299 % \begin{macrocode}
300 \endinput
301 % \end{macrocode}
302 %
303 % \DeleteShortVerb{\|}
304 % \Finale