Debian Codegraph @

texmf-dist/doc/latex/sansmath/sansmath.tex

raw
1 \documentclass[a4paper]{article}
2 \usepackage[a4paper]{geometry}
3 \usepackage{miscdoc}
4 \usepackage[scaled=0.85]{luximono}
5 \begin{document}
6 \title{The \Package{sansmath} package}
7 \author{Donald Arseneau\thanks{Documentation file assembled by Robin
8 Fairbairns}}
9 \date{2003-08-13, version 1.0}
10 \maketitle
11
12 \section{Outline}
13 The package is designed to offer sans-serif mathematics in the absence
14 of proper sans maths fonts.
15
16 The package's name could be misconstrued: there was an ambition to
17 do the job for ``non-standard'' sans fonts (as indicated by the value
18 of \cs{sfdefault}), but the only good results have been with Computer
19 Modern and \FontName{cmss}.
20
21 \section{Use}
22
23 After \cmdinvoke{usepackage}{sansmath}, a new ``math version''
24 \texttt{sans} is defined, together with a command \cs{sansmath}, which
25 behaves as \cs{boldmath} does.
26
27 There is also a command \cs{unsansmath} (which does what you might
28 imagine), but if maths are to be sans-serif for a limited area of
29 document, it is better to limit it to a local group, for example by
30 \cmdinvoke{begin}{sansmath} \texttt{\dots} \cmdinvoke{end}{sansmath}
31
32 Within the scope of the \cs{sansmath} declaration, maths characters
33 will be taken from the text sans-serif family as much as possible.
34 The actual sans fonts are OT1 encodings of those indicated by the
35 meaning of \cs{sfdefault} \emph{WHEN THE PACKAGE WAS LOADED}, not the
36 meaning at each maths environment!
37
38 Since the \texttt{OT1} text fonts do not provide the lower-case greek letters,
39 there is a package option \option[eulergreek] to take the lowercase
40 greek from the Euler maths fonts.
41
42 Since some (many) sans fonts have no uppercase greek letters either
43 (missing characters from the \texttt{OT1} encoding), there is an
44 option \option[EULERGREEK] to take \emph{all} greek letters from the
45 euler fonts. In this case one should also investigate using
46 \FontName{Euler} fonts for \emph{all maths} in the document, using
47 package \Package{euler} instead of this one!
48
49 \texttt{OT1} encoding is normally required to get the uppercase greek
50 letters, but if you use the \option[EULERGREEK] option or don't use
51 any uppercase greek letters, then you are welcome to define
52 \cs{sansmathencoding} \emph{before} loading this package. There is
53 also a package option \option[T1] to perform that particuler
54 definition. Note the comment above about only \FontName{cmss} being
55 good~--- even the \texttt{T1}-encoded \FontName{ec} fonts are poor
56 substitutes.
57
58 The package achieves maths-italic by reloading the slanted version of
59 the text sans-serif font, and changing a \texttt{fontdimen} parameter
60 (spaceskip). This causes the italic correction to be applied between
61 letters (good) but does not break up the `fi' and `fl' ligatures
62 (bad). (Why does a sans font have these ligatures anyway?) As yet,
63 nothing is done about this bug.
64
65 \end{document}