summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/fonts/urwchancal/urwchancal-doc.tex
blob: d2a44f28f5170c5d412a06897ad21e5d9be72ae1 (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
\documentclass[11pt]{article}
\usepackage[margin=1.25in]{geometry}
\usepackage[parfill]{parskip}    % Activate to begin paragraphs with an empty line rather than an indent
\usepackage{graphicx}
\DeclareFontFamily{OT1}{pzc}{}
\DeclareFontShape{OT1}{pzc}{m}{it}%
              {<-> s * [1.2] pzcmi7t}{}
\DeclareMathAlphabet{\mathpzc}{OT1}{pzc}{m}{it}
\usepackage[scaled=1.15]{urwchancal}
\title{A virtual font for URW Chancery Math}
\author{Michael Sharpe\\msharpe at ucsd dot edu}
%\date{}                                           % Activate to display a given date or no date

\begin{document}
\maketitle
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:
\begin{verbatim}
\DeclareFontFamily{OT1}{pzc}{}
\DeclareFontShape{OT1}{pzc}{m}{it}%
              {<-> s * [1.2] pzcmi7t}{}
\DeclareMathAlphabet{\mathpzc}{OT1}{pzc}{m}{it}
\end{verbatim}
The results are not always good if you attach math accents or sub-/super-scripts, as the following fragment shows. The display below is the result of
\begin{verbatim}
\[A^2_k\quad\mathpzc{M}_1\hat{\mathpzc{C}}\mathpzc{\hat{C}}\mathpzc{M}_k^2\]
\end{verbatim}


(Computer Modern (cmmi10) A followed by URW Chancery:)\\
\[A^2_k\quad\mathpzc{M}_1\hat{\mathpzc{C}}\mathpzc{\hat{C}} \mathpzc{M}_k^2\]
(The accents are not always where you might expect, letters may inexplicably vanish, and spacing of subscripts and superscripts can be unpredictable.)

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. 
Following 
\begin{verbatim}
\usepackage[scaled=1.15]{urwchancal}
\end{verbatim}
 which redefines \verb|\mathcal| to output URW Chancery glyphs, the input line 
\begin{verbatim}
\[A=\bar{\mathcal{M}}^2_k+\hat{\mathcal{Z}}.\]
\end{verbatim}
yields
\[A=\bar{\mathcal{M}}^2_k+\hat{\mathcal{Z}}.\]
In addition to \verb|scaled|, there is on option \verb|mathscr|, which enables \verb|\mathscr| rather than \verb|\mathcal| to point to URW Chancery.

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.
\end{document}