| 1 |
% !TEX TS-program = pdflatexmk |
| 2 |
\documentclass[11pt]{article} |
| 3 |
%SetFonts |
| 4 |
% newtxtext+newtxmath |
| 5 |
\usepackage{newtxtext} %loads helv for ss, txtt for tt |
| 6 |
\usepackage{amsmath} |
| 7 |
\usepackage[bigdelims]{newtxmath} |
| 8 |
\usepackage[T1]{fontenc} |
| 9 |
\usepackage{textcomp} |
| 10 |
%SetFonts |
| 11 |
\usepackage[margin=1.4in]{geometry} |
| 12 |
%\geometry{landscape} % Activate for for rotated page geometry |
| 13 |
\usepackage[parfill]{parskip} % Activate to begin paragraphs with an empty line rather than an indent |
| 14 |
\usepackage{url}\usepackage{graphicx} |
| 15 |
|
| 16 |
\usepackage{hyperref} |
| 17 |
\title{BOONDOX math alphabets} |
| 18 |
\author{Michael Sharpe\\ |
| 19 |
msharpe at ucsd dot edu} |
| 20 |
\date{} |
| 21 |
|
| 22 |
\begin{document} |
| 23 |
\maketitle |
| 24 |
The BOONDOX fonts are PostScript versions of subsets of the STIX fonts corresponding to regular and bold weights of three alphabets---calligraphic, fraktur and double struck, \textsc{aka} blackboard bold. Support files are provided so that they can be called up from \LaTeX\ math mode using the commands \verb|\mathcal|, \verb|\mathbcal|, \verb|\mathfrak|, \verb|\mathbfrak|, \verb|\mathbb| and \verb|\mathbbb|. The font family name derives from the fact that, at least in the US, the phrase ``in the boondox'' implies ``in the stix.'' |
| 25 |
|
| 26 |
The base PostScript fonts were constructed from \textsf{STIXGeneral.otf} and \textsf{STIXGeneralBol.otf} using a \textsf{FontForge} script, resulting in |
| 27 |
\begin{verbatim} |
| 28 |
zxxrl8a.pfb % BOONDOXDoubleStruck-Regular |
| 29 |
zxxbl8a.pfb % BOONDOXDoubleStruck-Bold |
| 30 |
zxxrw8a.pfb % BOONDOXCalligraphic-Regular |
| 31 |
zxxbw8a.pfb % BOONDOXCalligraphic-Bold |
| 32 |
zxxrf8a.pfb % BOONDOXFraktur-Regular |
| 33 |
zxxbf8a.pfb % BOONDOXFraktur-Bold |
| 34 |
\end{verbatim} |
| 35 |
together with the corresponding {\tt.afm} files. (The names are almost Berry conformant: the initial {\tt z} warns that they break the rules, and the font id {\tt xx} is completely unblessed by any authority. The remaining parts are nearly OK, except that the font lack many glyphs normally in {\tt 8a} encoding, but all glyphs are in the correct slots.) |
| 36 |
|
| 37 |
Using \textsf{afm2tfm}, the afm files were transformed to raw tfm files (kern information discarded) |
| 38 |
\begin{verbatim} |
| 39 |
zxxrl7z.tfm |
| 40 |
zxxbl7z.tfm |
| 41 |
zxxrw7z.tfm |
| 42 |
zxxbw7z.tfm |
| 43 |
zxxrf7z.tfm |
| 44 |
zxxbf7z.tfm |
| 45 |
zxxrow7z.tfm % same as zxxrw7z, less oblique |
| 46 |
zxxbow7z.tfm % same as zxxbw7z, less oblique |
| 47 |
\end{verbatim} |
| 48 |
which serve as the basis for further virtual math fonts. Finally, using \textsf{FontForge} scripts and manual adjustments to the metrics to suit my personal taste, produces (no pretense of using Berry names): |
| 49 |
\begin{verbatim} |
| 50 |
BOONDOX-r-cal.tfm |
| 51 |
BOONDOX-b-cal.tfm |
| 52 |
BOONDOX-r-calo.tfm |
| 53 |
BOONDOX-b-calo.tfm |
| 54 |
BOONDOX-r-frak.tfm |
| 55 |
BOONDOX-b-frak.tfm |
| 56 |
BOONDOX-r-ds.tfm |
| 57 |
BOONDOX-b-ds.tfm |
| 58 |
\end{verbatim} |
| 59 |
and the corresponding {\tt.vf} files. |
| 60 |
|
| 61 |
There are two ways to use these. The traditional method is based on {\tt.sty} and {\tt.fd} files for each pair: {\tt BOONDOX-cal}, {\tt BOONDOX-calo}, {\tt BOONDOX-frak} and {\tt BOONDOX-ds}. For example, |
| 62 |
\begin{verbatim} |
| 63 |
\usepackage[scaled=.95]{BOONDOX-ds} |
| 64 |
\end{verbatim} |
| 65 |
defines the output from \verb|\mathbb| and \verb|\mathbbb| to come from {\tt BOONDOX-r-ds} and {\tt BOONDOX-b-ds} respectively, scaled to 95\% of normal size, and |
| 66 |
\begin{verbatim} |
| 67 |
\usepackage{BOONDOX-calo} |
| 68 |
\end{verbatim} |
| 69 |
defines the output from \verb|\mathcal| and \verb|\mathbcal| to come from {\tt BOONDOX-r-calo} and {\tt BOONDOX-b-calo} respectively. (These are \emph{less} oblique versions of the {\tt BOONDOX} calligraphic fonts.) |
| 70 |
|
| 71 |
The second method uses a different interface not depending on the {\tt.sty} and {\tt.fd} files at all. The package \textsf{mathalfa } permits you to say |
| 72 |
\begin{verbatim} |
| 73 |
\usepackage[bb=boondox,bbscaled=.95,cal=boondoxo]{mathalfa} |
| 74 |
\end{verbatim} |
| 75 |
to accomplish the same effect as the above. |
| 76 |
|
| 77 |
See the \textsf{mathalfa} documentation for font samples of these and many other math alphabets. |
| 78 |
|
| 79 |
\section*{Added 2017-02-23} |
| 80 |
A new BOONDOX alphabet was added, based on STIX-MathScr, but with the slant removed and glyphs reworked to have smaller swashes and smaller tails that intrude less into the space inhabited by subscripts. To call this alphabet as \verb|\mathscr|, use e.g., |
| 81 |
\begin{verbatim} |
| 82 |
\usepackage[scaled=.98]{BOONDOX-uprscr} |
| 83 |
\end{verbatim} |
| 84 |
This alphabet is also available through {\tt mathalfa}. Because using it in these ways adds an extra math family, it may be desirable to load it not as a math font. See the documentation to {\tt TXUprCal} for details of such usage. |
| 85 |
\end{document} |