Montserrat
Montserrat
Michael Sharpe
November 7, 2019
\usepackage{montserrat}
which should be made after loading the text font and before loading the math font, will set
\sfdefault to Montserrat, so that \textsf{some Montserrat} will render in that font.
There are some options that can can change the default behaviors.
• scale (or scaled) will cause Montserrat to render magnified by the specified scale factor.
• alternates will result in \sfdefault being set to MontserratAlternates, with the rounder
shapes.
• One of the options thin, extralight, light, regular, medium may be specified to select the
weight that should be used to render LATEX’s regular. (The default is regular.)
• One of the options semibold, bold, extrabold, black may be specified to select the weight
that should be used to render LATEX’s bold. (The default is bold.)
• One of the options lining, oldstyle (or osf) may be specified to select the figure style. (The
default is lining.)
• One of the options proportional (or p), tabular (or t) may be specified to select the figure
alignment. (The default is proportional.)
No matter which style you choose, you may specify the other using the construction {\montserratalt ...}.
(For example, this was used at the end of the first paragraph of this document to show the alter-
nate version of ATWl.)
1
As of version 1.02, it is easier to remember how to obtain weights other than LaTeX’s regular and
bold, however they may be have been selected. The available weights are named as follows:
thin
extralight
light
regular
medium
semibold
bold
extrabold
black
These names be used to render text any of these weights. For example, while in a block of sans
serif text,
{\fontseries{thin}\selectfont x}
will render as x in thin weight.
Montserrat has four basic figure options, plus another four at smaller size. Other than the default
figure style and alignment set in the package options, access to all other possible figure options
is a little complicated, and you should devise macros for any you might use regularly.
\makeatletter
\DeclareRobustCommand{\sfosfstyle}{%
\not@math@alphabet\sfosfstyle\relax
\fontfamily{Montserrat-OsF}\selectfont %
}
\DeclareRobustCommand{\textsfosf}[1]{%
2
{\sfosfstyle #1}%
\makeatother
\usepackage{fontspec}
\setmainfont{montserrat}
This will use regular and bold weights for LATEX’s regular and bold. If you wish other choices, you
will have to suitably modify montserrat.fontspec.