| 1 |
This is the README for the mweights package, version |
| 2 |
2020-01-23. |
| 3 |
|
| 4 |
Many font families available for use with LaTeX have multiple |
| 5 |
weights, especially when originally aimed at use on the web. For |
| 6 |
example, Linux Libertine has both bold and semibold; Cabin, a |
| 7 |
sans-serif family, has four weights (regular, medium, semibold, |
| 8 |
bold); SourceCodePro, a monospaced family, has seven weights. |
| 9 |
|
| 10 |
Traditionally the type1-oriented support packages for such fonts |
| 11 |
re-define the standard \mddefault or \bfdefault macros. But this can |
| 12 |
create difficulties if the weight desired for one font family isn't |
| 13 |
available for another font family, or if it differs from the weight |
| 14 |
desired for another font family. For example, there is no medium |
| 15 |
weight font for Linux Libertine so that setting \mddefault to mb for |
| 16 |
use with Cabin will be problematic for Libertine. And \bfdefault |
| 17 |
cannot be both sb for use with Cabin and b for use with Libertine, |
| 18 |
or vice versa. |
| 19 |
|
| 20 |
This package provides a solution to these difficulties. The basic |
| 21 |
idea (due to Michael Sharpe) is that font packages should *not* |
| 22 |
re-define \mddefault or \bfdefault; instead they should define as |
| 23 |
many of the following macros as is appropriate: |
| 24 |
|
| 25 |
\mdseries@rm |
| 26 |
\mdseries@sf |
| 27 |
\mdseries@tt |
| 28 |
|
| 29 |
\bfseries@rm |
| 30 |
\bfseries@sf |
| 31 |
\bfseries@tt |
| 32 |
|
| 33 |
For example, |
| 34 |
|
| 35 |
\def\mdseries@sf{mb} |
| 36 |
\def\bfseries@sf{b} |
| 37 |
|
| 38 |
would be appropriate definitions for using a sans font such as Cabin |
| 39 |
with medium and bold, and |
| 40 |
|
| 41 |
\def\bfseries@rm{sb} |
| 42 |
|
| 43 |
would be appropriate for using a Roman font such as Libertine |
| 44 |
with semibold. These macros should always be fully expanded; if |
| 45 |
necessary, \edef should be used. |
| 46 |
|
| 47 |
The package re-defines standard selection commands for series |
| 48 |
(\mdseries and \bfseries) and family (\rmfamily, \sffamily, |
| 49 |
\ttfamily) to use the macros. It should be a RequiredPackage (for |
| 50 |
type1 font use only) in any such font package. |
| 51 |
|
| 52 |
This package need not be used with LaTeX releases after |
| 53 |
2020-02-02 which will incorporate mweights functionality |
| 54 |
into the LaTeX kernel; the mweights package itself will |
| 55 |
actually not be loaded by the kernel. |
| 56 |
|
| 57 |
The package is licensed under the terms of the LaTeX Project |
| 58 |
Public License. The maintainer is Bob Tennent (rdt at |
| 59 |
cs.queensu.ca). |