summaryrefslogtreecommitdiff
path: root/fonts/heuristica/doc/heuristica-doc.tex
blob: 94783d037da87cf6b89b632f94edc9b89460bf67 (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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
% !TEX TS-program = pdflatexmk
\documentclass[11pt]{amsart}
\usepackage[margin=1.5in]{geometry} 
\usepackage[parfill]{parskip}% Begin paragraphs with an empty line rather than an indent
\usepackage{graphicx}
\pdfmapfile{=heuristica.map}
%SetFonts
% heuristica+newtxmath
\usepackage[sups,osf,scaled=.92,space]{heuristica}
\usepackage[T1]{fontenc}
\usepackage{textcomp}
\usepackage[varqu,varl]{zi4}% inconsolata
\usepackage[utopia,vvarbb,bigdelims]{newtxmath}
%SetFonts
\title{\LaTeX\ Support for Heuristica}
\author{Michael Sharpe}
\date{\today}  % Activate to display a given date or no date
\begin{document}
\maketitle
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.

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.}:
\begin{verbatim}
\usepackage[osf,scaled=.92]{heuristica}
\usepackage[varqu,varl]{inconsolata} % typewriter
\usepackage[type1,scaled=.95]{cabin} % sans serif like Gill Sans
\usepackage[utopia,vvarbb,bigdelims]{newtxmath}
\end{verbatim}
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.)

\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
\begin{verbatim}
\usepackage{zlmtt} % serifed typewriter font extending cmtt
\end{verbatim}

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: 
\begin{itemize}
\item
{\tt spacing} (default value {\tt .211em}), \verb|\fontdimen2| of the main text font.
\item
{\tt stretch} (default value {\tt 1.055em}), \verb|\fontdimen3| of the main text font.
\item
{\tt shrink} (default value {\tt .0703em}), \verb|\fontdimen4| of the main text font.
\end{itemize}
(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}.
\begin{itemize}
\item
Option {\tt spacing=.24em} would change the spacing from {\tt.211em} to {\tt.24em}.
\item
Option {\tt stretch=.14em} would change the stretch from {\tt.1055em} to {\tt.14em}.
\item
Option {\tt shrink=.1em} would change the shrink from {\tt.0703em} to {\tt.1em}.
\item
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.)
\item
Option {\tt looser} would change the three parameters to {\tt.25em, .125em,.1em} respectively. 
\item
Option {\tt loosest} would change the three parameters to {\tt.28em, .125em,.13em} respectively. 
\end{itemize}
\textsc{Macros:}
\begin{itemize}
\item
\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}.
\item
\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}.
\item
\verb|\textsu|  renders its argument in superior figures, no matter what the default figure style. Eg, \verb|\textsu{345}| produces \textsu{345}.
\item
\verb|\textin|  renders its argument in inferior figures, no matter what the default figure style. Eg, \verb|\textin{345}| produces \textin{345}.
\item
\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}.
\end{itemize}
\textsc{Very Brief, Nonsensical Math Example:}\\
Let $B(X)$ be the set of blocks of $\Lambda_{X}$
and let $b(X) \coloneq |{B(X)}|$ so that $\hat\phi=\sum_{Y\subset X}(-1)^{b(Y)}b(Y)$. 
\end{document}