| 1 |
% !TEX TS-program = pdflatexmk |
| 2 |
\documentclass[11pt]{amsart} |
| 3 |
\usepackage[margin=1.5in]{geometry} |
| 4 |
\usepackage[parfill]{parskip}% Begin paragraphs with an empty line rather than an indent |
| 5 |
\usepackage{graphicx} |
| 6 |
\pdfmapfile{=heuristica.map} |
| 7 |
%SetFonts |
| 8 |
% heuristica+newtxmath |
| 9 |
\usepackage[sups,osf,scaled=.92,space]{heuristica} |
| 10 |
\usepackage[T1]{fontenc} |
| 11 |
\usepackage{textcomp} |
| 12 |
\usepackage[varqu,varl]{zi4}% inconsolata |
| 13 |
\usepackage[utopia,vvarbb,bigdelims]{newtxmath} |
| 14 |
%SetFonts |
| 15 |
\title{\LaTeX\ Support for Heuristica} |
| 16 |
\author{Michael Sharpe} |
| 17 |
\date{\today} % Activate to display a given date or no date |
| 18 |
\begin{document} |
| 19 |
\maketitle |
| 20 |
Andrey V. Panov's \emph{Heuristica} font family extends the \emph{Utopia} font family, adding many accented glyphs, Cyrillic glyphs, ligatures, superior and oldstyle fixed-width figures in all styles, and Small Caps in Regular style only. The font package is widely distributed as a free font collection in OpenType, TrueType and Type$1$ formats, but not until now on \textsc{ctan} with complete \LaTeX\ support files in encodings T$1$+TS$1$, LY$1$, T$2$A, T$2$B and T$2$C. |
| 21 |
|
| 22 |
The {\tt newtx} package has been modified, as of version $1.26$, to offer a new option {\tt utopia} (or, equivalently, {\tt heuristica}) that uses math italic glyphs taken from Utopia and oldstyle figures from \emph{Heuristica}. Its slanted Greek alphabets are constructed from the {\tt txfonts} slanted Greek letters by reducing their italic angle from $15.5$\textdegree\ to $13$\textdegree, matching Utopia's italic angle. So, for Heuristica text and matching math, you can use\footnote{There is most likely also a way to use {\tt MathDesign} or {\tt fourier} with at least partial compatibility.}: |
| 23 |
\begin{verbatim} |
| 24 |
\usepackage[osf,scaled=.92]{heuristica} |
| 25 |
\usepackage[varqu,varl]{inconsolata} % typewriter |
| 26 |
\usepackage[type1,scaled=.95]{cabin} % sans serif like Gill Sans |
| 27 |
\usepackage[utopia,vvarbb,bigdelims]{newtxmath} |
| 28 |
\end{verbatim} |
| 29 |
The effect of the option {\tt osf} is to force the default figure style in {\tt heuristica} to be oldstyle 0123456789 while using lining figures $0123456789$ in math mode. The only other option of interest is {\tt sups}, which changes the footnote marker style to use the superior figures from \emph{Heuristica} rather than the default mathematical superscripts. (The {\tt superiors} package offers further options.) |
| 30 |
|
| 31 |
\emph{Heuristica} is so austere for a text font and \emph{inconsolata} is so fancy for a typewriter font that you may find they blend together all too well. For more of a distinction replace the {\tt inconsolata} line above with |
| 32 |
\begin{verbatim} |
| 33 |
\usepackage{zlmtt} % serifed typewriter font extending cmtt |
| 34 |
\end{verbatim} |
| 35 |
|
| 36 |
As I find Utopia text rather cramped, I suggest applying a small amount of letterspacing (tracking) and increasing the interword spacing by means of the {\tt microtype} package. Alternatively, as of version $1.09$, this package offers complete control over word-spacing by specifying the options described below. Heuristica word-spacing is governed by three quantities: |
| 37 |
\begin{itemize} |
| 38 |
\item |
| 39 |
{\tt spacing} (default value {\tt .211em}), \verb|\fontdimen2| of the main text font. |
| 40 |
\item |
| 41 |
{\tt stretch} (default value {\tt 1.055em}), \verb|\fontdimen3| of the main text font. |
| 42 |
\item |
| 43 |
{\tt shrink} (default value {\tt .0703em}), \verb|\fontdimen4| of the main text font. |
| 44 |
\end{itemize} |
| 45 |
(Note the use of {\tt em} values rather than absolute values so that word spacing responds to scale changes.) You may modify these values individually or by setting a value for the option {\tt space} or by specifying {\tt looser} or {\tt loosest}. |
| 46 |
\begin{itemize} |
| 47 |
\item |
| 48 |
Option {\tt spacing=.24em} would change the spacing from {\tt.211em} to {\tt.24em}. |
| 49 |
\item |
| 50 |
Option {\tt stretch=.14em} would change the stretch from {\tt.1055em} to {\tt.14em}. |
| 51 |
\item |
| 52 |
Option {\tt shrink=.1em} would change the shrink from {\tt.0703em} to {\tt.1em}. |
| 53 |
\item |
| 54 |
Option {\tt space=1.2} would multiply each word-spacing parameter by the factor {\tt1.2}. (The option {\tt space} with no value would result in a factor of {\tt 1.23}, leading to a spacing value of close to {\tt.26em}. This documentation uses option {\tt space} with no value specified.) |
| 55 |
\item |
| 56 |
Option {\tt looser} would change the three parameters to {\tt.25em, .125em,.1em} respectively. |
| 57 |
\item |
| 58 |
Option {\tt loosest} would change the three parameters to {\tt.28em, .125em,.13em} respectively. |
| 59 |
\end{itemize} |
| 60 |
\textsc{Macros:} |
| 61 |
\begin{itemize} |
| 62 |
\item |
| 63 |
\verb|\textlf| and \verb|\texttlf| render their arguments in tabular lining figures, no matter what the default figure style. Eg, \verb|\textlf{345}| produces \textlf{345}. |
| 64 |
\item |
| 65 |
\verb|\textosf| and \verb|\texttosf| render their arguments in tabular oldstyle figures, no matter what the default figure style. Eg, \verb|\textosf{345}| produces \textosf{345}. |
| 66 |
\item |
| 67 |
\verb|\textsu| renders its argument in superior figures, no matter what the default figure style. Eg, \verb|\textsu{345}| produces \textsu{345}. |
| 68 |
\item |
| 69 |
\verb|\textin| renders its argument in inferior figures, no matter what the default figure style. Eg, \verb|\textin{345}| produces \textin{345}. |
| 70 |
\item |
| 71 |
\verb|\textfrac| renders its two arguments as a fraction, using \verb|\textsu| for the numerator and \verb|\textin| for the denominator. Eg, \verb|\textfrac{31}{64}| produces \textfrac{31}{64}. |
| 72 |
\end{itemize} |
| 73 |
\textsc{Very Brief, Nonsensical Math Example:}\\ |
| 74 |
Let $B(X)$ be the set of blocks of $\Lambda_{X}$ |
| 75 |
and let $b(X) \coloneq |{B(X)}|$ so that $\hat\phi=\sum_{Y\subset X}(-1)^{b(Y)}b(Y)$. |
| 76 |
\end{document} |