Menu
CTAN
Comprehensive TeX Archive Network
Cover Upload Browse Search

Direc­tory tex-archive/macros/latex/contrib/mweights

This is the README for the mweights package, version 2013-07-21.

Many font families available for use with LaTeX have multiple
weights, especially when originally aimed at use on the web. For
example, Linux Libertine has both bold and semibold; Cabin, a
sans-serif family, has four weights (regular, medium, semibold,
bold); SourceCodePro, a monospaced family, has seven weights.

Traditionally the type1-oriented support packages for such fonts
re-define the standard \mddefault or \bfdefault macros. But this can
create difficulties if the weight desired for one font family isn't
available for another font family, or if it differs from the weight
desired for another font family. For example, there is no medium
weight font for Linux Libertine so that setting \mddefault to mb for
use with Cabin will be problematic for Libertine. And \bfdefault
cannot be both sb for use with Cabin and b for use with Libertine,
or vice versa.

This package provides a solution to these difficulties. The basic
idea (due to Michael Sharpe) is that font packages should *not*
re-define \mddefault or \bfdefault; instead they should define as
many of the following macros as is appropriate:

\mdseries@rm
\mdseries@sf
\mdseries@tt

\bfseries@rm
\bfseries@sf
\bfseries@tt

For example, 

\def\mdseries@sf{mb}
\def\bfseries@sf{b}

would be appropriate definitions for using a sans font such as Cabin 
with medium and bold, and

\def\bfseries@rm{sb}

would be appropriate for using a Roman font such as Libertine
with semibold. These macros should always be fully expanded; if
necessary, \edef should be used.

The package re-defines standard selection commands for series
(\mdseries and \bfseries) and family (\rmfamily, \sffamily,
\ttfamily) to use the macros. It should be a RequiredPackage (for
type1 font use only) in any such font package.

The package is licensed under the terms of the LaTeX Project Public
License. The maintainer is Bob Tennent (rdt at cs.queensu.ca).  

Files

Name Size Date Notes
README 1964 2013-07-21 02:39
mweights.sty 3457 2013-07-21 02:36

Down­load the con­tents of this pack­age in one zip archive (1.9k).

mweights – Sup­port for mul­ti­ple-weight font pack­ages

Many font fam­i­lies avail­able for use with LaTeX are avail­able at mul­ti­ple weights. Many Type 1-ori­ented sup­port pack­ages for such fonts re-de­fine the stan­dard \md­de­fault or \bfde­fault macros. This can cre­ate dif­fi­cul­ties if the weight de­sired for one font fam­ily isn’t avail­able for an­other font fam­ily, or if it dif­fers from the weight de­sired for an­other font fam­ily.

The pack­age pro­vides a so­lu­tion to these dif­fi­cul­ties.

Pack­age De­tailsmweights
Ver­sion 2013-07-21
Li­censeThe LaTeX Project Public Li­cense
Main­tainerBob Ten­nent
Con­tained inTeXlive as mweights
MikTeX as mweights
Topics met­rics, macro in­can­ta­tions and other font sup­port
font se­lec­tion, map­ping, etc.
Guest Book Sitemap Contact