| 1 |
\documentclass[11pt]{article} |
| 2 |
\usepackage[margin=1.25in]{geometry} |
| 3 |
\usepackage[parfill]{parskip} % Activate to begin paragraphs with an empty line rather than an indent |
| 4 |
\usepackage{graphicx} |
| 5 |
\DeclareFontFamily{OT1}{pzc}{} |
| 6 |
\DeclareFontShape{OT1}{pzc}{m}{it}% |
| 7 |
{<-> s * [1.15] pzcmi7t}{} |
| 8 |
\DeclareMathAlphabet{\mathpzc}{OT1}{pzc}{m}{it} |
| 9 |
\usepackage[scaled=1.15]{urwchancal} |
| 10 |
\title{A virtual font for URW Chancery Math} |
| 11 |
\author{Michael Sharpe\\msharpe at ucsd dot edu} |
| 12 |
%\date{} % Activate to display a given date or no date |
| 13 |
|
| 14 |
\begin{document} |
| 15 |
\maketitle |
| 16 |
The URW clone of the universally available PostScript font Zapf Chancery may be used as a math calligraphic font by means of the following lines in the preamble: |
| 17 |
\begin{verbatim} |
| 18 |
\DeclareFontFamily{OT1}{pzc}{} |
| 19 |
\DeclareFontShape{OT1}{pzc}{m}{it}% |
| 20 |
{<-> s * [1.15] pzcmi7t}{} |
| 21 |
\DeclareMathAlphabet{\mathpzc}{OT1}{pzc}{m}{it} |
| 22 |
\end{verbatim} |
| 23 |
|
| 24 |
The results are not always good if you attach math accents or sub-/super-scripts as the metrics are designed for a text font rather than a math font. |
| 25 |
|
| 26 |
This small package provides a virtual math font linked to \verb|uzcmi8r| with side-bearings, subscript position and accent position adjusted manually for each glyph. |
| 27 |
Following |
| 28 |
\begin{verbatim} |
| 29 |
\usepackage[scaled=1.15]{urwchancal} |
| 30 |
\end{verbatim} |
| 31 |
which redefines \verb|\mathcal| to output URW Chancery glyphs, the input line |
| 32 |
\begin{verbatim} |
| 33 |
\[A=\bar{\mathcal{M}}^2_k+\hat{\mathcal{Z}}.\] |
| 34 |
\end{verbatim} |
| 35 |
yields |
| 36 |
\[A=\bar{\mathcal{M}}^2_k+\hat{\mathcal{Z}}.\] |
| 37 |
In addition to \verb|scaled|, there is on option \verb|mathscr|, which enables \verb|\mathscr| rather than \verb|\mathcal| to point to URW Chancery. |
| 38 |
|
| 39 |
The long tails on some of the glyphs make this font problematic as a math font, but it has some virtues, not the least being its universal availability. For a font of similar appearance without the long-tail problems, consider the script font in Mathematica5. |
| 40 |
\end{document} |