| 1 |
% !TEX TS-program = pdflatexmk |
| 2 |
\documentclass[11pt]{article} |
| 3 |
\usepackage[margin=1in]{geometry} |
| 4 |
\usepackage[parfill]{parskip}% Begin paragraphs with an empty line rather than an indent |
| 5 |
\usepackage{graphicx} |
| 6 |
\pdfmapfile{=Baskervaldx.map} |
| 7 |
%SetFonts |
| 8 |
% libertine+newtxmath |
| 9 |
\usepackage[full]{textcomp} |
| 10 |
\usepackage[osf,tabular,sups]{Baskervaldx} |
| 11 |
\usepackage[T1]{fontenc} |
| 12 |
\usepackage[scaled=.95]{cabin} |
| 13 |
\usepackage[varqu,varl]{zi4}% inconsolata |
| 14 |
\usepackage[bigdelims,vvarbb]{newtxmath} |
| 15 |
|
| 16 |
\usepackage[cal=boondoxo]{mathalfa} |
| 17 |
%SetFonts |
| 18 |
\usepackage{trace} |
| 19 |
\usepackage{fonttable} |
| 20 |
\title{The Baskervaldx package} |
| 21 |
\author{Michael Sharpe} |
| 22 |
\date{\today} % Activate to display a given date or no date |
| 23 |
|
| 24 |
\begin{document} |
| 25 |
\maketitle |
| 26 |
The fonts included in this package are extensions and modifications of regular and bold weights of the \textsf{baskervald} fonts, which serve as a replacement for \textsf{Baskerville}. The changes provide small caps in all four styles, and a total of four ordinary figure types \{tabular, proportional\}$\times$\{lining, oldstyle\} in each of those styles. The xheights of the two upright shapes has been increased from 415{\tt em} to 432{\tt em} to better match the Italic and other subsidiary fonts, and the ascender sizes have been shortened to avoid height problems. Many new accented glyphs have been added so that |
| 27 |
all characters in T$1$ encoding are available except for the Sami characters Eng and eng. This left three unused slots in T$1$, and those have been filled with three ligatures \verb|f_j|, \verb|f_f_j| and \verb|c_t|, only the first two of which are activated by default, along with the usual f-ligatures \verb|f_i|, \verb|f_l|, \verb|f_f_i|, \verb|f_f_l|, \verb|f_f|. (In LY$1$, an additional two ligatures are available: \verb|s_p| and \verb|s_t|, also not activated by default.) |
| 28 |
|
| 29 |
The package has the following options: |
| 30 |
\begin{itemize} |
| 31 |
\item |
| 32 |
{\tt scaled=1.02} would magnify all Baskervaldx fonts by the factor $1.02$. |
| 33 |
\item {\tt lining} (or {\tt lf}) chooses lining figure style. This is the default. |
| 34 |
\item {\tt osf} (or {\tt oldstyle}) sets the figure style to oldstyle rather than lining for text. (Math mode will in any case use tabular lining figures.) |
| 35 |
\item {\tt tabular} sets the figure alignment to fixed width rather than proportional. This is the default. |
| 36 |
\item {\tt proportional} sets the figure alignment to depend on the figure rather than be fixed width. |
| 37 |
\item {\tt sups} mandates the use of superior figures from \textsf{Baskervaldx} as footnote and endnote markers, replacing \LaTeX's default method. For greater control, use the {\tt superiors} package. |
| 38 |
\item {\tt swash} determines which additional ligatures will be used throughout text in the document. As mentioned above, in both T$1$ and LY$1$ encodings (the only ones supported), the following are always used: |
| 39 |
\begin{itemize} |
| 40 |
\item |
| 41 |
\verb|f_f| (ff) replaces f{}f. |
| 42 |
\item |
| 43 |
\verb|f_i| (fi) replaces f{}i. |
| 44 |
\item |
| 45 |
\verb|f_l| (fl) replaces f{}l. |
| 46 |
\item |
| 47 |
\verb|f_f_i| (ffi) replaces f{}f{}i. |
| 48 |
\item |
| 49 |
\verb|f_f_l| (ffl) replaces f{}f{}l. |
| 50 |
\item |
| 51 |
\verb|f_j| (fj) replaces f{}j. |
| 52 |
\item |
| 53 |
\verb|f_f_j| (ffj) replaces f{}f{}j. |
| 54 |
\end{itemize} |
| 55 |
The option {\tt swash} adds the following, depending on the encoding:\\ |
| 56 |
\textbf{T\textlf{1} encoding:} |
| 57 |
\begin{itemize} |
| 58 |
\item |
| 59 |
\verb|c_t| ({\usefont{LY1}{Baskervaldx-LF}{m}{nw} ct}) replaces c{}t. |
| 60 |
\end{itemize} |
| 61 |
\textbf{LY\textlf{1} encoding:} |
| 62 |
\begin{itemize} |
| 63 |
\item |
| 64 |
\verb|c_t| ({\usefont{LY1}{Baskervaldx-LF}{m}{nw} ct}) replaces c{}t. |
| 65 |
\item |
| 66 |
\verb|s_p| ({\usefont{LY1}{Baskervaldx-LF}{m}{nw} sp}) replaces s{}p. |
| 67 |
\item |
| 68 |
\verb|s_t| ({\usefont{LY1}{Baskervaldx-LF}{m}{nw} st}) replaces s{}t. |
| 69 |
\end{itemize} |
| 70 |
\end{itemize} |
| 71 |
Macros defined by the package: |
| 72 |
\begin{itemize} |
| 73 |
\item |
| 74 |
Figure styles may be set locally by the macros \verb|\textlf|, \verb|\texttlf|, \verb|\textosf|, \verb|\texttosf| and \verb|\textsu|, whose meaning are: |
| 75 |
\begin{itemize} |
| 76 |
\item |
| 77 |
\verb|\textlf| (lining, proportional) |
| 78 |
\item \verb|\texttlf| (lining, tabular) |
| 79 |
\item \verb|\textosf| (osf, proportional) |
| 80 |
\item \verb|\texttosf| (osf, tabular) |
| 81 |
\item \verb|\textsu| (superior) |
| 82 |
\end{itemize} |
| 83 |
For example, though this document uses the options {\tt osf, tabular}, \verb|\textlf{123}| uses proportional lining figures for its argument---\textlf{123}, and \verb|\textsu{123}| sets its argument in superior figures---\textsu{123}. |
| 84 |
%\newdimen\myex \myex=1ex |
| 85 |
%\showthe\myex |
| 86 |
\item \verb|\textcircled| draws a circle around a small cap rendition of its argument, which should be exactly one unaccented character. |
| 87 |
For example, \verb|\textcircled{A}| yields \textcircled{A} and \verb|\textcircled{8}| yields \textcircled{8}. |
| 88 |
\item \verb|\swshape| switches on italic shape with all possible ligatures activated. (This depends of course on the encoding chosen.) For example, in both T\textlf{1} and LY\textlf{1}, |
| 89 |
\begin{verbatim} |
| 90 |
{\swshape Act effectively\/} |
| 91 |
\end{verbatim} |
| 92 |
produces {\swshape Act effectively\/}. |
| 93 |
\end{itemize} |
| 94 |
\newpage |
| 95 |
\section*{Textcomp coverage} |
| 96 |
This is rather sparse at the moment. |
| 97 |
|
| 98 |
\fonttable{Baskervaldx-Reg-TOsF-ts1} |
| 99 |
%\end{document} |
| 100 |
%There are \textthreequartersemdash and \texttwelveudash. |
| 101 |
|
| 102 |
|
| 103 |
\section*{Accompanying math packages} |
| 104 |
Baskervaldx works well with Times, so one may use math packages based on Times, or on one using Baskervaldx italics in place of Times italics. |
| 105 |
|
| 106 |
For example, ordinary {\tt newtxmath} works quite well, as in: |
| 107 |
\begin{verbatim} |
| 108 |
% If you use babel, load it here, before Baskervaldx |
| 109 |
\usepackage[osf]{Baskervaldx} % tosf in text, tlf in math |
| 110 |
\usepackage[vvarbb]{newtxmath} % math italic letters from Times |
| 111 |
\usepackage[cal=boondoxo]{mathalfa} % mathcal from STIX, unslanted a bit |
| 112 |
\end{verbatim} |
| 113 |
Here's an example to show both source and typeset text with this combination. |
| 114 |
\begin{verbatim} |
| 115 |
\textbf{Simplest form of the \textit{Central Limit Theorem}:} \textit{Let |
| 116 |
$X_1$, $X_2,\cdots$ be a sequence of iid random variables with mean $0$ |
| 117 |
and variance $1$ on a probability space $(\Omega,\mathcal{F},\mathbb{P})$. Then} |
| 118 |
\[\mathbb{P}\left(\frac{X_1+\cdots+X_n}{\sqrt{n}}\le y\right) \to\mathfrak{N}(y) |
| 119 |
\coloneq\int_{-\infty}^y \frac{\mathrm{e}^{-t^2/2}}{\sqrt{2\uppi}}\, |
| 120 |
\mathrm{d}t\quad\mbox{as $n\to\infty$,}\] |
| 121 |
\textit{or, equivalently, letting} $S_n\coloneq\sum_1^n X_k$, |
| 122 |
\[\mathbb{E} f\left(S_n/\sqrt{n}\right)\to \int_{-\infty}^\infty f(t) |
| 123 |
\frac{\mathrm{e}^{-t^2/2}}{\sqrt{2\uppi}}\, \mathrm{d}t |
| 124 |
\quad\mbox{as $n\to\infty$, for every $f\in\mathrm{b} |
| 125 |
\mathcal{C}(\mathbb{R})$.}\] |
| 126 |
\end{verbatim} |
| 127 |
|
| 128 |
\textbf{Simplest form of the \textit{Central Limit Theorem}:} \textit{Let |
| 129 |
$X_1$, $X_2,\cdots$ be a sequence of iid random variables with mean $0$ |
| 130 |
and variance $1$ on a probability space $(\Omega,\mathcal{F},\mathbb{P})$. Then} |
| 131 |
\[\mathbb{P}\left(\frac{X_1+\cdots+X_n}{\sqrt{n}}\le y\right)\to\mathfrak{N}(y)\coloneq |
| 132 |
\int_{-\infty}^y \frac{\mathrm{e}^{-t^2/2}}{\sqrt{2\uppi}}\, |
| 133 |
\mathrm{d}t\quad\mbox{as $n\to\infty$,}\] |
| 134 |
\textit{or, equivalently, letting} $S_n\coloneq\sum_1^n X_k$, |
| 135 |
\[\mathbb{E} f\left(S_n/\sqrt{n}\right)\to \int_{-\infty}^\infty f(t) |
| 136 |
\frac{\mathrm{e}^{-t^2/2}}{\sqrt{2\uppi}}\,\mathrm{d}t |
| 137 |
\quad\mbox{as $n\to\infty$, for every $f\in\mathrm{b} |
| 138 |
\mathcal{C}(\mathbb{R})$.}\] |
| 139 |
|
| 140 |
To use the version of {\tt newtxmath} with Baskervaldx math italics, use the following:\\ |
| 141 |
\begin{verbatim} |
| 142 |
% If you use babel, load it here, before Baskervaldx |
| 143 |
\usepackage[osf]{Baskervaldx} % tosf in text, tlf in math |
| 144 |
\usepackage[baskervaldx,vvarbb]{newtxmath} % math italic letters from Baskervaldx |
| 145 |
\usepackage[cal=boondoxo]{mathalfa} % mathcal from STIX, unslanted a bit |
| 146 |
\end{verbatim} |
| 147 |
Here's the same source rendered with this preamble.\\[10pt] |
| 148 |
\includegraphics{baskervaldxmatheg-crop} |
| 149 |
|
| 150 |
|
| 151 |
\end{document} |