| 1 |
% !TEX TS-program = LuaLaTeX |
| 2 |
|
| 3 |
% sansmathfonts.tex |
| 4 |
% |
| 5 |
% Documentation for the sansmathfonts package |
| 6 |
% |
| 7 |
% author: Ariel Barton |
| 8 |
% |
| 9 |
% Copyright Ariel Barton, 2013--2024 |
| 10 |
% |
| 11 |
% This work may be distributed and/or modified under the |
| 12 |
% conditions of the LaTeX Project Public License, either |
| 13 |
% version 1.3c of this license or (at your option) any |
| 14 |
% later version. |
| 15 |
% The latest version of the license is in |
| 16 |
% http://www.latex-project.org/lppl.txt |
| 17 |
% and version 1.3 or later is part of all distributions of |
| 18 |
% LaTeX version 2003/06/01 or later. |
| 19 |
% |
| 20 |
% This work has the LPPL maintenance status "author-maintained". |
| 21 |
% |
| 22 |
% The complete list of files considered part of this work is in |
| 23 |
% the file `sansmathfonts.pdf' and its source code `sansmathfonts.tex'. |
| 24 |
% |
| 25 |
% Date: 2026/02/10 |
| 26 |
|
| 27 |
\documentclass{amsart} |
| 28 |
|
| 29 |
\raggedbottom |
| 30 |
|
| 31 |
\usepackage[OT1]{fontenc} |
| 32 |
\usepackage[I,AMS,letters]{sansmathfonts} |
| 33 |
%\renewcommand{\sfdefault}{xcmss}\let\mathserif\mathrm |
| 34 |
\usepackage{hyperref, amsfonts, amssymb, esint, slantsc, bm, enumitem} |
| 35 |
|
| 36 |
%\let\mathserif\mathrm |
| 37 |
|
| 38 |
\typeout{********************************} |
| 39 |
\typeout{Current font encoding: \csname f@encoding\endcsname} |
| 40 |
|
| 41 |
\def\sectionautorefname{Section} |
| 42 |
|
| 43 |
\title{The \textsf{sansmathfonts} package} |
| 44 |
\author{Ariel Barton} |
| 45 |
|
| 46 |
\DeclareTextFontCommand{\cmsmf} |
| 47 |
{\fontencoding{OT1}\fontfamily{cmsmf}\selectfont} |
| 48 |
|
| 49 |
\begin{document} |
| 50 |
|
| 51 |
|
| 52 |
|
| 53 |
\maketitle |
| 54 |
|
| 55 |
|
| 56 |
|
| 57 |
The Computer Modern font family has a sans serif typeface. However, compared to the serif typeface, it is incomplete: there are no sans serif small caps or math fonts. Furthermore, the bold slanted font is not available as an outline font. |
| 58 |
This leads to highly unsatisfactory typography of documents that use sans serif for the body text. |
| 59 |
|
| 60 |
|
| 61 |
The \textsf{sansmathfonts} package provides these ``missing'' fonts. Most of the usefulness of the package is in the fonts; \texttt{sansmathfonts.sty} is a small package providing \LaTeX\ support. To use it, simply say \texttt{\char`\\usepackage\char`\{sansmathfonts\char`\}} in the document preamble. |
| 62 |
|
| 63 |
In the default (OT1) text font encoding, and also in the T1 and U font encodings, this will redefine the document's default sans serif font family from \textsf{cmss} to \textsf{xcmss}; this will make the \textsf{\textbf{\textit{bold slanted}}} and \textsf{\textsc{Caps and small caps}} fonts available via normal \LaTeX\ font commands (\verb|\textbf|, \verb|\textit| and \verb|\textsc|). If you additionally load Harald Harder's \textsf{slantsc} package, this will make \textsf{\textit{\textsc{slanted caps and small caps}}} available. |
| 64 |
|
| 65 |
This will also switch the math fonts to sans serif: |
| 66 |
\[\Im \mathop{\mathrm{exp}}(i\omega)=\sin(\omega) \] |
| 67 |
If you use symbols from the \textsf{amsfonts} or \textsf{esint} packages, they will also be replaced by appropriate sans serif versions: |
| 68 |
\[\ointclockwise \quad \mho \quad \hbar\] |
| 69 |
By default, the commands \verb|\mathrm| and \verb|\mathsf| both produce sans serif text. To get serifed roman text, use the command \verb|\mathserif|: |
| 70 |
\[\mathrm{mathrm}\quad\mathsf{mathsf}\quad\mathserif{mathserif}\] |
| 71 |
\textsf{sansmathfonts} knows about the \textsf{beamer} document class and will automatically use \textsf{beamer}'s \texttt{professionalfonts} theme. |
| 72 |
|
| 73 |
The math fonts differ slightly from Knuth's standard sans serif fonts. Specifically, for ease of reading I have chosen to put (some of) the serifs back on the uppercase I, Pi and~Xi: |
| 74 |
\[{I}\quad\mathrm{I}\quad\mathbf{I}\quad\bm{I}\quad |
| 75 |
\mathit{\Pi}\quad{\Pi}\quad\mathbf{\Pi}\quad |
| 76 |
\mathit{\Xi}\quad{\Xi}\quad\mathbf{\Xi}\quad |
| 77 |
\text{and not\quad \textsf{\font \rawfont = cmss10 \rawfont I\quad \char5\quad\char4}}\] |
| 78 |
\textsf{Sans serif Is outside of math mode} still have no serifs unless the package option \texttt{[I]} is used; note that this option as yet only works with the OT1 and U font encodings. |
| 79 |
|
| 80 |
|
| 81 |
Feedback is appreciated and may be sent to \texttt{[email protected]}. |
| 82 |
|
| 83 |
\section{Package options} |
| 84 |
|
| 85 |
\begin{itemize}[leftmargin=*] |
| 86 |
\item \texttt{[I]} The \texttt{[I]} package option puts the serifs back on the capital I even in text mode. This option only works with the OT1 and U font encodings. It will work under \textsf{pdflatex}'s defaults; in Lua\LaTeX\ or Xe\LaTeX, you will need to change the text encoding by saying \texttt{\string\usepackage[OT1]\char`\{fontenc\char`\}}. |
| 87 |
\item \texttt{[onlymath]}, \texttt{[nottext]}. These options provide sans serif math but do not change the text sans serif font. |
| 88 |
\item \texttt{[onlytext]}, \texttt{[notmath]}. These options provide sans serif text fonts and improve the behavior of \texttt{\char`\\mathsf} but do not change the default math font from roman to sans serif. You can get a similar effect by not using the \textsf{sansmathfonts} package and instead using the lines |
| 89 |
\\\null\qquad\texttt{\char`\\renewcommand\char`\{\char`\\sfdefault\char`\}\char `\{xcmss\char`\}} |
| 90 |
\\\null\qquad\texttt{\char`\\DeclareFontFamilySubstitution\char`\{TS1\char`\}\char`\{xcmss\char`\}\char`\{cmss\char`\}} |
| 91 |
\\ |
| 92 |
or |
| 93 |
\\\null\qquad |
| 94 |
\texttt{\char`\\renewcommand\char`\{\char`\\sfdefault\char`\}\char `\{cmsmf\char`\}} |
| 95 |
\\\null\qquad\texttt{\char`\\DeclareFontFamilySubstitution\char`\{TS1\char`\}\char`\{cmsmf\char`\}\char`\{cmss\char`\}} |
| 96 |
\\ |
| 97 |
in the document preamble. |
| 98 |
\item \texttt{[AMS]} This package option defines the following five commands: |
| 99 |
|
| 100 |
\begin{tabular}{lc} |
| 101 |
\texttt{\char`\\sanshbar}&$\sanshbar$\\ |
| 102 |
\texttt{\char`\\sanshslash}&$\sanshslash$\\ |
| 103 |
\texttt{\char`\\sansmho}&$\sansmho$\\ |
| 104 |
\texttt{\char`\\sanseth}&$\sanseth$\\ |
| 105 |
\texttt{\char`\\sansbackepsilon}&$\sansbackepsilon$\\ |
| 106 |
\end{tabular} |
| 107 |
|
| 108 |
If the \texttt{[onlytext]} and \texttt{[notmath]} options are not selected, these commands are simply aliases for the corresponding AMS symbols \texttt{\char`\\hbar}, \texttt{\char`\\hslash}, \texttt{\char`\\mho}, \texttt{\char`\\eth}, \texttt{\char`\\backepsilon} (and will only work if the \textsf{amssymb} package is loaded). |
| 109 |
|
| 110 |
However, if the \texttt{[onlytext]} or \texttt{[notmath]} option is selected, then the above five commands will be redefined to produce sans serif symbols, even though \texttt{\char`\\hbar} and so on produce serifed symbols. |
| 111 |
|
| 112 |
\item\texttt{[letters]} This package option is similar to the \texttt{[AMS]} option. It defines sans serif versions of all the math symbols included in \TeX's letters font: |
| 113 |
|
| 114 |
\begin{tabular}[t]{lc} |
| 115 |
\texttt{\char`\\sansalpha}&$\sansalpha$\\ |
| 116 |
\texttt{\char`\\sansbeta}&$\sansbeta$\\ |
| 117 |
\texttt{\char`\\sansgamma}&$\sansgamma$\\ |
| 118 |
\texttt{\char`\\sansdelta}&$\sansdelta$\\ |
| 119 |
\texttt{\char`\\sansepsilon}&$\sansepsilon$\\ |
| 120 |
\texttt{\char`\\sanszeta}&$\sanszeta$\\ |
| 121 |
\texttt{\char`\\sanseta}&$\sanseta$\\ |
| 122 |
\texttt{\char`\\sanstheta}&$\sanstheta$\\ |
| 123 |
\texttt{\char`\\sansiota}&$\sansiota$\\ |
| 124 |
\texttt{\char`\\sanskappa}&$\sanskappa$\\ |
| 125 |
\texttt{\char`\\sanslambda}&$\sanslambda$\\ |
| 126 |
\texttt{\char`\\sansmu}&$\sansmu$\\ |
| 127 |
\texttt{\char`\\sansnu}&$\sansnu$\\ |
| 128 |
\end{tabular} |
| 129 |
\begin{tabular}[t]{lc} |
| 130 |
\texttt{\char`\\sansxi}&$\sansxi$\\ |
| 131 |
\texttt{\char`\\sanspi}&$\sanspi$\\ |
| 132 |
\texttt{\char`\\sansrho}&$\sansrho$\\ |
| 133 |
\texttt{\char`\\sanssigma}&$\sanssigma$\\ |
| 134 |
\texttt{\char`\\sanstau}&$\sanstau$\\ |
| 135 |
\texttt{\char`\\sansupsilon}&$\sansupsilon$\\ |
| 136 |
\texttt{\char`\\sansphi}&$\sansphi$\\ |
| 137 |
\texttt{\char`\\sanschi}&$\sanschi$\\ |
| 138 |
\texttt{\char`\\sanspsi}&$\sanspsi$\\ |
| 139 |
\texttt{\char`\\sansomega}&$\sansomega$\\ |
| 140 |
\texttt{\char`\\sansvarepsilon}&$\sansvarepsilon$\\ |
| 141 |
\texttt{\char`\\sansvartheta}&$\sansvartheta$\\ |
| 142 |
\texttt{\char`\\sansvarpi}&$\sansvarpi$\\ |
| 143 |
\end{tabular} |
| 144 |
\begin{tabular}[t]{lc} |
| 145 |
\texttt{\char`\\sansvarrho}&$\sansvarrho$\\ |
| 146 |
\texttt{\char`\\sansvarsigma}&$\sansvarsigma$\\ |
| 147 |
\texttt{\char`\\sansvarphi}&$\sansvarphi$\\ |
| 148 |
\texttt{\char`\\sansstar}&$\sansstar$\\ |
| 149 |
\texttt{\char`\\sanspartial}&$\sanspartial$\\ |
| 150 |
\texttt{\char`\\sansflat}&$\sansflat$\\ |
| 151 |
\texttt{\char`\\sansnatural}&$\sansnatural$\\ |
| 152 |
\texttt{\char`\\sanssharp}&$\sanssharp$\\ |
| 153 |
\texttt{\char`\\sanssmile}&$\sanssmile$\\ |
| 154 |
\texttt{\char`\\sansfrown}&$\sansfrown$\\ |
| 155 |
\texttt{\char`\\sansell}&$\sansell$\\ |
| 156 |
\texttt{\char`\\sanswp}&$\sanswp$\\ |
| 157 |
\end{tabular} |
| 158 |
|
| 159 |
As with \texttt{[AMS]}, these are aliases to the corresponding standard commands if \texttt{[onlytext]} and \texttt{[notmath]} are not selected, and are a new math alphabet if \texttt{[onlytext]} or \texttt{[notmath]} is selected. |
| 160 |
|
| 161 |
Note that sans symbols for uppercase Greek letters are \emph{not} provided, as \texttt{\char`\\mathsf\char`\{\char`\\Gamma\char`\}} produces $\mathsf{\Gamma}$ (not \char0) even if \texttt{[onlytext]} or \texttt{[notmath]} is selected. |
| 162 |
|
| 163 |
|
| 164 |
\end{itemize} |
| 165 |
|
| 166 |
|
| 167 |
|
| 168 |
\section{List of new fonts}\label{sec:fonts} |
| 169 |
|
| 170 |
All of the Type 1 fonts in this package were generated using mftrace 1.2.18 and Fontforge. |
| 171 |
|
| 172 |
The following fonts are based mainly on Donald Knuth's Computer Modern fonts. |
| 173 |
|
| 174 |
\textsf{\fontshape{ui}\selectfont Unslanted italic} (needed in some versions of \TeX\ for the pounds symbol \textsf{\pounds}): |
| 175 |
|
| 176 |
\nobreak |
| 177 |
|
| 178 |
\noindent\hskip0.06\textwidth\parbox[t]{0.235\textwidth}{ |
| 179 |
\begin{itemize}[leftmargin=*] |
| 180 |
\item \textsf{cmssu10} |
| 181 |
\end{itemize}} |
| 182 |
|
| 183 |
\bigskip |
| 184 |
|
| 185 |
Text \textsf{\textsc{caps and small caps}}, OT1 encoding: |
| 186 |
|
| 187 |
\nobreak |
| 188 |
|
| 189 |
\noindent\hskip0.06\textwidth\parbox[t]{0.235\textwidth}{ |
| 190 |
\begin{itemize}[leftmargin=*] |
| 191 |
\item \textsf{cmssbxcsc10} |
| 192 |
\item \textsf{cmssxicsc10} |
| 193 |
\end{itemize}}\parbox[t]{0.235\textwidth}{\begin{itemize}[leftmargin=*] |
| 194 |
\item \textsf{cmsscsc8} |
| 195 |
\item \textsf{cmsscsci8} |
| 196 |
\end{itemize}}\parbox[t]{0.235\textwidth}{\begin{itemize}[leftmargin=*] |
| 197 |
\item \textsf{cmsscsc9} |
| 198 |
\item \textsf{cmsscsci9} |
| 199 |
\end{itemize}}\parbox[t]{0.235\textwidth}{\begin{itemize}[leftmargin=*] |
| 200 |
\item \textsf{cmsscsc10} |
| 201 |
\item \textsf{cmsscsci10} |
| 202 |
\end{itemize}} |
| 203 |
|
| 204 |
\bigskip |
| 205 |
|
| 206 |
Math italic ($\alpha \beta \gamma abc \ell \wp$): |
| 207 |
|
| 208 |
\nobreak |
| 209 |
|
| 210 |
\noindent\hskip0.06\textwidth\parbox[t]{0.235\textwidth}{ |
| 211 |
\begin{itemize}[leftmargin=*] |
| 212 |
\item \textsf{cmssmi5} |
| 213 |
\item \textsf{cmssmi6} |
| 214 |
\item \textsf{cmssmi7} |
| 215 |
\end{itemize}}\parbox[t]{0.235\textwidth}{\begin{itemize}[leftmargin=*] |
| 216 |
\item \textsf{cmssmi8} |
| 217 |
\item \textsf{cmssmi9} |
| 218 |
\item \textsf{cmssmi10} |
| 219 |
\end{itemize}}\parbox[t]{0.235\textwidth}{\begin{itemize}[leftmargin=*] |
| 220 |
\item \textsf{cmssmib5} |
| 221 |
\item \textsf{cmssmib6} |
| 222 |
\item \textsf{cmssmib7} |
| 223 |
\end{itemize}}\parbox[t]{0.235\textwidth}{\begin{itemize}[leftmargin=*] |
| 224 |
\item \textsf{cmssmib8} |
| 225 |
\item \textsf{cmssmib9} |
| 226 |
\item \textsf{cmssmib10} |
| 227 |
\end{itemize}} |
| 228 |
|
| 229 |
\bigskip |
| 230 |
|
| 231 |
Math symbols ($\Re\oplus \Im $): |
| 232 |
|
| 233 |
\nobreak |
| 234 |
|
| 235 |
\noindent\hskip0.06\textwidth\parbox[t]{0.235\textwidth}{ |
| 236 |
\begin{itemize}[leftmargin=*] |
| 237 |
\item \textsf{cmsssy5} |
| 238 |
\item \textsf{cmsssy6} |
| 239 |
\item \textsf{cmsssy7} |
| 240 |
\end{itemize}}\parbox[t]{0.235\textwidth}{\begin{itemize}[leftmargin=*] |
| 241 |
\item \textsf{cmsssy8} |
| 242 |
\item \textsf{cmsssy9} |
| 243 |
\item \textsf{cmsssy10} |
| 244 |
\end{itemize}}\parbox[t]{0.235\textwidth}{\begin{itemize}[leftmargin=*] |
| 245 |
\item \textsf{cmssbsy5} |
| 246 |
\item \textsf{cmssbsy6} |
| 247 |
\item \textsf{cmssbsy7} |
| 248 |
\end{itemize}}\parbox[t]{0.235\textwidth}{\begin{itemize}[leftmargin=*] |
| 249 |
\item \textsf{cmssbsy8} |
| 250 |
\item \textsf{cmssbsy9} |
| 251 |
\item \textsf{cmssbsy10} |
| 252 |
\end{itemize}} |
| 253 |
|
| 254 |
\bigskip |
| 255 |
|
| 256 |
|
| 257 |
Math extended fonts ($\int \sum \prod$): |
| 258 |
|
| 259 |
\nobreak |
| 260 |
|
| 261 |
\noindent\hskip0.06\textwidth\parbox[t]{0.235\textwidth}{ |
| 262 |
\begin{itemize}[leftmargin=*] |
| 263 |
\item \textsf{cmssex7} |
| 264 |
\end{itemize}}\parbox[t]{0.235\textwidth}{\begin{itemize}[leftmargin=*] |
| 265 |
\item \textsf{cmssex8} |
| 266 |
\end{itemize}}\parbox[t]{0.235\textwidth}{\begin{itemize}[leftmargin=*] |
| 267 |
\item \textsf{cmssex9} |
| 268 |
\end{itemize}}\parbox[t]{0.235\textwidth}{\begin{itemize}[leftmargin=*] |
| 269 |
\item \textsf{cmssex10} |
| 270 |
\end{itemize}} |
| 271 |
|
| 272 |
\bigskip |
| 273 |
|
| 274 |
\cmsmf{Sans serif text fonts with serifed capital~I:} |
| 275 |
|
| 276 |
\noindent\hskip0.06\textwidth\parbox[t]{0.235\textwidth}{ |
| 277 |
\begin{itemize}[leftmargin=*] |
| 278 |
\item \textsf{cmsmf8} |
| 279 |
\item \textsf{cmsmf9} |
| 280 |
\item \textsf{cmsmf10} |
| 281 |
\item \textsf{cmsmf12} |
| 282 |
\item \textsf{cmsmf17} |
| 283 |
\item \textsf{cmsmfcsc8} |
| 284 |
\item \textsf{cmsmfcsc9} |
| 285 |
\item \textsf{cmsmfcsc10} |
| 286 |
\end{itemize}\par}\parbox[t]{0.235\textwidth} |
| 287 |
{\begin{itemize}[leftmargin=*] |
| 288 |
\item \textsf{cmsmfbx8} |
| 289 |
\item \textsf{cmsmfbx9} |
| 290 |
\item \textsf{cmsmfbx10} |
| 291 |
\item \textsf{cmsmfbx12} |
| 292 |
\item \textsf{cmsmfbx17} |
| 293 |
\item \textsf{cmsmfbxcsc10} |
| 294 |
\end{itemize}}\parbox[t]{0.235\textwidth} |
| 295 |
{\begin{itemize}[leftmargin=*] |
| 296 |
\item \textsf{cmsmfi8} |
| 297 |
\item \textsf{cmsmfi9} |
| 298 |
\item \textsf{cmsmfi10} |
| 299 |
\item \textsf{cmsmfi12} |
| 300 |
\item \textsf{cmsmfi17} |
| 301 |
\item \textsf{cmsmfcsci8} |
| 302 |
\item \textsf{cmsmfcsci9} |
| 303 |
\item \textsf{cmsmfcsci10} |
| 304 |
\end{itemize}}\parbox[t]{0.235\textwidth} |
| 305 |
{\begin{itemize}[leftmargin=*] |
| 306 |
\item \textsf{cmsmfxi8} |
| 307 |
\item \textsf{cmsmfxi9} |
| 308 |
\item \textsf{cmsmfxi10} |
| 309 |
\item \textsf{cmsmfxi12} |
| 310 |
\item \textsf{cmsmfxi17} |
| 311 |
\item \textsf{cmsmfxicsc10} |
| 312 |
\end{itemize}} |
| 313 |
|
| 314 |
|
| 315 |
\bigskip |
| 316 |
|
| 317 |
|
| 318 |
The following fonts are based on fonts by other authors. |
| 319 |
|
| 320 |
\nobreak |
| 321 |
|
| 322 |
\noindent\hskip0.06\textwidth\parbox[t]{0.31\textwidth}{ |
| 323 |
\raggedright |
| 324 |
Eddie Saudrais's \textsf{esint} package |
| 325 |
\begin{itemize}[leftmargin=*] |
| 326 |
\item \textsf{ssesint7} |
| 327 |
\item \textsf{ssesint8} |
| 328 |
\item \textsf{ssesint9} |
| 329 |
\item \textsf{ssesint10} |
| 330 |
\end{itemize}}\parbox[t]{0.31\textwidth}{ |
| 331 |
\raggedright |
| 332 |
AMS symbols (\textsf{amsfonts} package) |
| 333 |
\begin{itemize}[leftmargin=*] |
| 334 |
\item \textsf{ssmsam5} |
| 335 |
\item \textsf{ssmsam6} |
| 336 |
\item \textsf{ssmsam7} |
| 337 |
\item \textsf{ssmsam8} |
| 338 |
\item \textsf{ssmsam9} |
| 339 |
\item \textsf{ssmsam10} |
| 340 |
\end{itemize}}\parbox[t]{0.31\textwidth}{ |
| 341 |
\raggedright |
| 342 |
AMS symbols (\textsf{amsfonts} package) |
| 343 |
\begin{itemize}[leftmargin=*] |
| 344 |
\item \textsf{ssmsbm5} |
| 345 |
\item \textsf{ssmsbm6} |
| 346 |
\item \textsf{ssmsbm7} |
| 347 |
\item \textsf{ssmsbm8} |
| 348 |
\item \textsf{ssmsbm9} |
| 349 |
\item \textsf{ssmsbm10} |
| 350 |
\end{itemize}} |
| 351 |
|
| 352 |
\bigskip |
| 353 |
|
| 354 |
The following fonts are based on J\"org Knappen's European Computer Modern fonts. |
| 355 |
|
| 356 |
\nobreak |
| 357 |
|
| 358 |
\bigskip |
| 359 |
\noindent\hskip0.06\textwidth |
| 360 |
\parbox[t]{0.235\textwidth}{ |
| 361 |
\font\temp = eczz1000 \temp |
| 362 |
Normal |
| 363 |
\begin{itemize}[leftmargin=*] |
| 364 |
\item \textsf{eczz0500} |
| 365 |
\item \textsf{eczz0600} |
| 366 |
\item \textsf{eczz0700} |
| 367 |
\item \textsf{eczz0800} |
| 368 |
\item \textsf{eczz0900} |
| 369 |
\item \textsf{eczz1000} |
| 370 |
\item \textsf{eczz1095} |
| 371 |
\item \textsf{eczz1200} |
| 372 |
\item \textsf{eczz1440} |
| 373 |
\item \textsf{eczz1728} |
| 374 |
\item \textsf{eczz2074} |
| 375 |
\item \textsf{eczz2488} |
| 376 |
\item \textsf{eczz2986} |
| 377 |
\item \textsf{eczz3583} |
| 378 |
\end{itemize} |
| 379 |
}\parbox[t]{0.235\textwidth}{ |
| 380 |
\font\temp = eczi1000 \temp |
| 381 |
Slanted |
| 382 |
\begin{itemize}[leftmargin=*] |
| 383 |
\item \textsf{eczi0500} |
| 384 |
\item \textsf{eczi0600} |
| 385 |
\item \textsf{eczi0700} |
| 386 |
\item \textsf{eczi0800} |
| 387 |
\item \textsf{eczi0900} |
| 388 |
\item \textsf{eczi1000} |
| 389 |
\item \textsf{eczi1095} |
| 390 |
\item \textsf{eczi1200} |
| 391 |
\item \textsf{eczi1440} |
| 392 |
\item \textsf{eczi1728} |
| 393 |
\item \textsf{eczi2074} |
| 394 |
\item \textsf{eczi2488} |
| 395 |
\item \textsf{eczi2986} |
| 396 |
\item \textsf{eczi3583} |
| 397 |
\end{itemize} |
| 398 |
}\parbox[t]{0.235\textwidth}{ |
| 399 |
\font\temp = eczx1000 \temp |
| 400 |
Bold |
| 401 |
\begin{itemize}[leftmargin=*] |
| 402 |
\item \textsf{eczx0500} |
| 403 |
\item \textsf{eczx0600} |
| 404 |
\item \textsf{eczx0700} |
| 405 |
\item \textsf{eczx0800} |
| 406 |
\item \textsf{eczx0900} |
| 407 |
\item \textsf{eczx1000} |
| 408 |
\item \textsf{eczx1095} |
| 409 |
\item \textsf{eczx1200} |
| 410 |
\item \textsf{eczx1440} |
| 411 |
\item \textsf{eczx1728} |
| 412 |
\item \textsf{eczx2074} |
| 413 |
\item \textsf{eczx2488} |
| 414 |
\item \textsf{eczx2986} |
| 415 |
\item \textsf{eczx3583} |
| 416 |
\end{itemize} |
| 417 |
}\parbox[t]{0.235\textwidth}{ |
| 418 |
\font\temp = eczo1000 \temp |
| 419 |
Bold slanted |
| 420 |
\begin{itemize}[leftmargin=*] |
| 421 |
\item \textsf{eczo0500} |
| 422 |
\item \textsf{eczo0600} |
| 423 |
\item \textsf{eczo0700} |
| 424 |
\item \textsf{eczo0800} |
| 425 |
\item \textsf{eczo0900} |
| 426 |
\item \textsf{eczo1000} |
| 427 |
\item \textsf{eczo1095} |
| 428 |
\item \textsf{eczo1200} |
| 429 |
\item \textsf{eczo1440} |
| 430 |
\item \textsf{eczo1728} |
| 431 |
\item \textsf{eczo2074} |
| 432 |
\item \textsf{eczo2488} |
| 433 |
\item \textsf{eczo2986} |
| 434 |
\item \textsf{eczo3583} |
| 435 |
\end{itemize} |
| 436 |
} |
| 437 |
|
| 438 |
\bigskip |
| 439 |
|
| 440 |
The following fonts are part of the \textsf{sauter} package and are supplied with Mac\TeX\ 2012 as Metafont (\texttt{.mf}) fonts. These provide \textsf{\textbf{bold}} and \textsf{\textsl{\textbf{bold slanted}}} fonts at varying sizes. |
| 441 |
The \textsf{sansmathfonts} package provides outline versions. |
| 442 |
|
| 443 |
\noindent\hskip0.06\textwidth\parbox[t]{0.235\textwidth}{ |
| 444 |
\font\temp = eczo1000 \temp |
| 445 |
\begin{itemize}[leftmargin=*] |
| 446 |
\item \textsf{cmssxi8} |
| 447 |
\item \textsf{cmssxi9} |
| 448 |
\item \textsf{cmssxi10} |
| 449 |
\end{itemize} |
| 450 |
}\parbox[t]{0.235\textwidth}{ |
| 451 |
\begin{itemize}[leftmargin=*] |
| 452 |
\item \textsf{cmssxi12} |
| 453 |
\item \textsf{cmssxi17} |
| 454 |
\end{itemize} |
| 455 |
}\parbox[t]{0.235\textwidth}{ |
| 456 |
\begin{itemize}[leftmargin=*] |
| 457 |
\item \textsf{cmssbx8} |
| 458 |
\item \textsf{cmssbx9} |
| 459 |
\end{itemize} |
| 460 |
}\parbox[t]{0.235\textwidth}{ |
| 461 |
\begin{itemize}[leftmargin=*] |
| 462 |
\item \textsf{cmssbx12} |
| 463 |
\item \textsf{cmssbx17} |
| 464 |
\end{itemize} |
| 465 |
} |
| 466 |
|
| 467 |
|
| 468 |
\section{Files in this package}\label{sec:files} |
| 469 |
|
| 470 |
\subsection{New fonts} |
| 471 |
109 of the 146 new fonts listed in \autoref{sec:fonts} come in three files each: the \TeX\ Font Metric files (extension \texttt{.tfm}), the Type 1 font file (extension \texttt{.pfb}), and Metafont source file (extension \texttt{.mf}). |
| 472 |
|
| 473 |
\subsection{Virtual fonts} |
| 474 |
The 28 \textsf{cmsmf} fonts are almost identical to their \textsf{cmss} counterparts. Thus, these fonts are provided as \emph{virtual} fonts, and so come in five parts: the virtual font file (\texttt{cmsmf10.vf}), the \TeX\ Font Metric file (\texttt{cmsmf10.tfm}), and the font \textsf{cmsmfIPiXi10} containing only the altered letters \cmsmf{I}, \cmsmf{\char4} and \cmsmf{\char5} (and \cmsmf{\textsc{i}}, in the small caps fonts); this font comes as MetaFont source (\texttt{cmsmfIPiXi10.mf}), \TeX\ font metric (\texttt{cmsmfIPiXi10.tfm}) and Type 1 font (\texttt{cmsmfIPiXi10.pfb}). |
| 475 |
|
| 476 |
\subsection{Outline versions of preexisting fonts} |
| 477 |
The Metafont source for the 9 \textsf{cmssxi} and \textsf{cmssbx} fonts are part of the \textsf{sauter} package. As such, I have not included any new \texttt{.mf} files for these fonts. I have provided outline versions (\texttt{.pfb} files) of these 9 fonts, as without the \texttt{.pfb} files these fonts are provided as bitmaps only, which looks very ugly on most modern displays. |
| 478 |
|
| 479 |
I have also not included the files \texttt{cmssxi10.tfm}, etc., because they may be automatically generated from the corresponding \texttt{.mf} files and may already be included in some distributions. |
| 480 |
|
| 481 |
However, in order to allow compilation on systems without the \textsf{sauter} package, I wanted to include \texttt{.tfm} files for these 9 fonts. For the reasons given above, I cannot title these fonts with the expected name of \texttt{cmssxi10.tfm}; instead I have provided a file called \texttt{cmssxi10-cmsmfcopy.tfm} and included instructions (in the \texttt{.map} file) stating that both \texttt{cmssxi10-cmsmfcopy.tfm} and \texttt{cmssxi10.tfm} should use the outline font \texttt{cmssxi10.pfb}. |
| 482 |
|
| 483 |
\subsection{Metafont source} |
| 484 |
In addition, this package should come with the following 29 supplementary Metafont source files: |
| 485 |
|
| 486 |
\begin{itemize}[leftmargin=*] |
| 487 |
\item \texttt{eczi.mf} |
| 488 |
\item \texttt{eczo.mf} |
| 489 |
\item \texttt{eczx.mf} |
| 490 |
\item \texttt{eczz.mf} |
| 491 |
\item \texttt{sans-amsya.mf} |
| 492 |
\item \texttt{sans-amsyb.mf} |
| 493 |
\item \texttt{sans-asymbols.mf} |
| 494 |
\item \texttt{sans-bigdel.mf} |
| 495 |
\item \texttt{sans-bigint.mf} |
| 496 |
\item \texttt{sans-bigop.mf} |
| 497 |
\item \texttt{sans-bsymbols.mf} |
| 498 |
\item \texttt{sans-calu.mf} |
| 499 |
\item \texttt{sans-csc.mf} |
| 500 |
\item \texttt{sans-greekl.mf} |
| 501 |
\item \texttt{sans-greeku.mf} |
| 502 |
\item \texttt{sans-IPiXi.mf} |
| 503 |
\item \texttt{sans-IPiXicsc.mf} |
| 504 |
\item \texttt{sans-mathex.mf} |
| 505 |
\item \texttt{sans-mathint.mf} |
| 506 |
\item \texttt{sans-mathsl.mf} |
| 507 |
\item \texttt{sans-mathsy.mf} |
| 508 |
\item \texttt{sans-roman.mf} |
| 509 |
\item \texttt{sans-romanu.mf} |
| 510 |
\item \texttt{sans-romms.mf} |
| 511 |
\item \texttt{sans-slantms.mf} |
| 512 |
\item \texttt{sans-sym.mf} |
| 513 |
\item \texttt{sans-symbol.mf} |
| 514 |
\item \texttt{sans-xbbold.mf} |
| 515 |
\item \texttt{sansfontbase.mf} |
| 516 |
\end{itemize} |
| 517 |
|
| 518 |
This package should also come with the following 11 \LaTeX\ Font Definition files: |
| 519 |
|
| 520 |
\begin{itemize}[leftmargin=*] |
| 521 |
\item \texttt{omlcmssm.fd} |
| 522 |
\item \texttt{omscmsssy.fd} |
| 523 |
\item \texttt{omxcmssex.fd} |
| 524 |
|
| 525 |
\item \texttt{ot1cmsmf.fd} |
| 526 |
\item \texttt{ot1xcmss.fd} |
| 527 |
\item \texttt{t1xcmss.fd} |
| 528 |
|
| 529 |
\item \texttt{ucmsmf.fd} |
| 530 |
\item \texttt{ussesint.fd} |
| 531 |
\item \texttt{ussmsa.fd} |
| 532 |
\item \texttt{ussmsb.fd} |
| 533 |
\item \texttt{uxcmss.fd} |
| 534 |
\end{itemize} |
| 535 |
|
| 536 |
Finally, it should come with the font map file, LaTeX package, and documentation: |
| 537 |
|
| 538 |
\begin{itemize}[leftmargin=*] |
| 539 |
\item \texttt{sansmathfonts.map} |
| 540 |
\item \texttt{sansmathfonts.sty} |
| 541 |
\item \texttt{sansmathfonts.tex} |
| 542 |
\item \texttt{sansmathfonts.pdf} |
| 543 |
\end{itemize} |
| 544 |
|
| 545 |
% The subfolders should contain: |
| 546 |
|
| 547 |
% doc: 2 files |
| 548 |
% map: 1 file |
| 549 |
% tex: 12 files |
| 550 |
|
| 551 |
% New Type 1 fonts: 137 |
| 552 |
% Old fonts as Type 1: 9 |
| 553 |
% Virtual fonts: 28 |
| 554 |
% Supplementary .mf: 29 |
| 555 |
|
| 556 |
% source: 166 files (=137+29) |
| 557 |
% tfm: 174 files (=137+28+9) |
| 558 |
% type1: 146 files (=137+9) |
| 559 |
% vf: 28 (=28) |
| 560 |
|
| 561 |
\section{License} |
| 562 |
|
| 563 |
This work (the \textsf{sansmathfonts} package) consists of the |
| 564 |
files listed in \autoref{sec:files}. |
| 565 |
|
| 566 |
This work may be distributed and/or modified under the |
| 567 |
conditions of the \LaTeX\ Project Public License, either |
| 568 |
version 1.3c of this license or (at your option) any |
| 569 |
later version. |
| 570 |
|
| 571 |
The latest version of the license is in |
| 572 |
\begin{quote} |
| 573 |
\href {http://www.latex-project.org/lppl.txt} |
| 574 |
{\texttt{http://www.latex-project.org/lppl.txt}} |
| 575 |
\end{quote} |
| 576 |
and version 1.3 or later is part of all distributions of |
| 577 |
\LaTeX\ version 2003/06/01 or later. |
| 578 |
|
| 579 |
This work has the LPPL maintenance status ``maintained''. |
| 580 |
|
| 581 |
Almost all of the Metafont files in this package are very closely based on existing files in the 2011 \TeX\ Live distribution; see comments near the start of the individual files for notes on their sources. Also, note that the |
| 582 |
files |
| 583 |
\begin{itemize}[leftmargin=*] |
| 584 |
\item \texttt{cmssxi8.pfb}, \texttt{cmssxi8-cmsmfcopy.tfm} |
| 585 |
\item \texttt{cmssxi9.pfb}, \texttt{cmssxi9-cmsmfcopy.tfm} |
| 586 |
\item \texttt{cmssxi10.pfb}, \texttt{cmssxi10-cmsmfcopy.tfm} |
| 587 |
\item \texttt{cmssxi12.pfb}, \texttt{cmssxi12-cmsmfcopy.tfm} |
| 588 |
\item \texttt{cmssxi17.pfb}, \texttt{cmssxi17-cmsmfcopy.tfm} |
| 589 |
\item \texttt{cmssbx8.pfb}, \texttt{cmssbx8-cmsmfcopy.tfm} |
| 590 |
\item \texttt{cmssbx9.pfb}, \texttt{cmssbx9-cmsmfcopy.tfm} |
| 591 |
\item \texttt{cmssbx12.pfb}, \texttt{cmssbx12-cmsmfcopy.tfm} |
| 592 |
\item \texttt{cmssbx17.pfb}, \texttt{cmssbx17-cmsmfcopy.tfm} |
| 593 |
\end{itemize} |
| 594 |
were derived from unedited MetaFont source files in the \textsf{sauter} package using \textsf{mktextfm}, \textsf{mftrace 1.2.18} and Fontforge. |
| 595 |
|
| 596 |
\section{Revision history} |
| 597 |
|
| 598 |
\begin{itemize}[leftmargin=*] |
| 599 |
\item |
| 600 |
April 2013: Original upload |
| 601 |
|
| 602 |
\item |
| 603 |
February 2017: Corrected the font names in \texttt{sansmathfonts.map}; this allowed the package to be used correctly with \textsf{dvips}. |
| 604 |
|
| 605 |
\item |
| 606 |
April 2019: Fixed a bug in the file \texttt{ucmsmf.fd} that prevented the \texttt{[I]} package option from working correctly; rewrote most of the \texttt{.fd} files to allow fonts to be loaded at arbitrary sizes; changed maintenance status from ``author-maintained'' to ``maintained''. |
| 607 |
|
| 608 |
\item |
| 609 |
June 2019: Rewrote the file \texttt{omxcmssex.fd} to allow the math extended characters to be loaded at arbitrary sizes. |
| 610 |
|
| 611 |
\item |
| 612 |
June 2021: Rewrote the OT1, T1, and U font definition files to substitute bold-extended fonts for bold fonts as necessary. Added some package errors and warnings if the document font encoding is not supported. |
| 613 |
|
| 614 |
\item |
| 615 |
October 2022: Bug fix to allow compatibility with Lua\LaTeX\ and Xe\LaTeX. |
| 616 |
|
| 617 |
\item |
| 618 |
November 2023: Corrected the spacing of the lowercase \textsc{i} in the caps and small caps fonts used with the \texttt{[I]} package option. |
| 619 |
|
| 620 |
\item October 2024: |
| 621 |
|
| 622 |
Added the \texttt{[letters]} and \texttt{[AMS]} options. |
| 623 |
|
| 624 |
Fixed a bug in the \textsf{cmsmf} fonts; in previous versions, when \LaTeX\ asked for bold non-extended fonts, it would substitute \textsf{xcmss} bold-extended fonts rather than \textsf{cmsmf} bold-extended fonts. |
| 625 |
|
| 626 |
Added two lines in \texttt{sansmathfonts.sty} to allow \LaTeX\ to use \texttt{ts1cmss.fd} for TS1 symbols. This is what in modern \LaTeX\ \emph{actually} allows for a correct text mode \texttt{\char`\\pounds} symbol: \texttt{\char`\\pounds}~\pounds \space \texttt{\char`\\textsf\char`\{\char`\\pounds\char`\}}~\textsf{\pounds}. (A bug remains in that \texttt{\$\char`\\pounds\$} produces $\pounds$ rather than \textsf{\pounds} in math mode; as a workaround, try \texttt{\char`\$\char`\\text\char`\{\char`\\textsf\char`\{\char`\\pounds\char`\}\char`\}\char`\$}.) |
| 627 |
|
| 628 |
Certain \texttt{.tfm} files are supplied with \TeX\ Live as part of the \textsf{sauter} package; I have added copies of these \texttt{.tfm} files to make the \textsf{cmsmf} font family (the \texttt{[I]} package option) work even if the \textsf{sauter} package is not installed. |
| 629 |
|
| 630 |
\item February 2026: |
| 631 |
|
| 632 |
Minor bug fixes |
| 633 |
|
| 634 |
\end{itemize} |
| 635 |
|
| 636 |
|
| 637 |
|
| 638 |
|
| 639 |
\end{document} |