CTAN Comprehensive TeX Archive Network

Direc­tory macros/latex/contrib/mweights

This is the README for the mweights package, version

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:



For example, 


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


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).  

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

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

Many font fam­i­lies avail­able for use with 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.

Ver­sion 2017-03-30
Li­censesThe Project Public Li­cense
Main­tainerBob Ten­nent
Con­tained inTeX Live as mweights
MiKTeX as mweights
TopicsFont use
Font sup­port
Guest Book Sitemap Contact Contact Author