summaryrefslogtreecommitdiff
path: root/fonts/montserrat/doc/montserrat-doc.tex
blob: 87d14bd023eebd525e3df65f1da82a4c1db8afaa (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
% !TEX TS-program = pdflatexmk
% Template file for TeXShop by Michael Sharpe, LPPL
\documentclass[11pt]{article} 
\usepackage[margin=1in]{geometry} 
\usepackage[parfill]{parskip}% Begin paragraphs with an empty line rather than an indent
\usepackage{graphicx}
%\usepackage{amssymb}% don't use with newtxmath
%\pdfmapfile{+montserrat.map}
%SetFonts
% libertine+newtxmath
\usepackage{newtxtext} % use sb in place of bold
\usepackage[T1]{fontenc}
\usepackage{textcomp}
\usepackage{nimbusmononarrow}% narrow
\usepackage{amsmath,amsthm}
\usepackage[scaled=.9,defaultfam]{montserrat}
\usepackage[libertine,bigdelims,vvarbb]{newtxmath}
% option vvarbb gives you stix blackboard bold
\useosf % use oldstyle figures except in math
\usepackage[cal=boondoxo]{mathalfa}% less slanted than STIX cal
%SetFonts
\usepackage{booktabs}
\title{The Montserrat Font Package}
\author{Michael Sharpe}
\date{\today}  % Activate to display a given date or no date
\def\TeXShop{\TeX Shop}
%\renewcommand*{\familydefault}{\sfdefault}
\begin{document}
\maketitle
%\expandafter\show\csname lfstyle \endcsname
Montserrat is a geometric sans-serif typeface designed by  Julieta Ulanovsky, inspired by posters and signage from her historical Buenos Aires neighborhood of the same name. It is rather close in spirit to Gotham and Proxima Nova, but has its own individual appearance---more informal, less extended and more idiosyncratic. It is provided in a total of nine different weights, with upright and italic shapes, and every one of them has \textsc{Small Caps} and \textit{\textsc{Small Caps}}. There are two quite different versions that don't fit into the usual \LaTeX\ classifications. The version having the appellation Alternates has letter shapes that are much more rounded than the default version, reflecting the signage in the neighborhood of Montserrat. For example, here are the same four letters displayed in both the default and  Alternates styles: ATWl, {\montserratalt ATWl}.

As it currently set up, a preamble entry of the form
\begin{verbatim}
\usepackage{montserrat}
\end{verbatim}
which should be made \textbf{after} loading the text font and \textbf{before} loading the math font, will set \verb|\sfdefault| to \verb|Montserrat|, so that \verb|\textsf{some Montserrat}| will render in that font. 

There are some options that can can change the default behaviors.
\begin{itemize}
\item {\tt scale} (or {\tt scaled}) will cause Montserrat to render magnified by the specified scale factor.
\item
{\tt defaultfam} will cause \verb|\familydefault| to be set to \verb|\sfdefault|, so that Montserrat becomes the default text font for the document.
\item {\tt alternates} will result in \verb|\sfdefault| being set to MontserratAlternates, with the rounder shapes.
\item One of the options {\tt thin}, {\tt extralight}, {\tt light}, {\tt regular} may be specified to select the weight that should be used to render \LaTeX's {\tt regular}. (The default is {\tt regular}.)
\item One of the options {\tt medium}, {\tt semibold}, {\tt bold}, {\tt extrabold}, {\tt black} may be specified to select the weight that should be used to render \LaTeX's {\tt bold}. (The default is {\tt bold}.)
\item One of the options {\tt lining}, {\tt oldstyle} may be specified to select the figure style. (The default is {\tt lining}.)
\item One of the options {\tt proportional}, {\tt tabular} may be specified to select the figure alignment. (The default is {\tt proportional}.)
\end{itemize}
No matter which style you choose, you may specify the other using the construction \verb|{\montserratalt ...}|. (For example, this was used at the end of the first paragraph of this document to show the alternate version of ATWl.)

The abbreviations for the weights in the {\tt fd} files are as follows.


  \begin{tabular}{@{} ll @{}}
    \toprule
    Weight & abbrev \\ 
    \midrule
    thin & t \\ 
    extralight & el \\ 
    light & l \\ 
    regular & m \\ 
    medium & mb \\ 
    semibold & sb \\ 
    bold & b \\ 
    extrabold & eb \\ 
    black & k \\ 
    \bottomrule
  \end{tabular}

These may be used to render text in other weights. For example, while in a block of sans serif text, 
\begin{verbatim}
{\fontseries{t}\selectfont x}
\end{verbatim}
will show as {\fontseries{t}\selectfont 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.

  \begin{tabular}{@{} llll @{}}
    \toprule
    Figure spec & abbrev & example &call with \\ 
    \midrule
    Tabular lining & TLF & {\fontfamily{Montserrat-TLF}\selectfont 1} & \verb|{\fontfamily{Montserrat-TLF}\selectfont 1}| \\
    Proportional lining & LF & {\fontfamily{Montserrat-LF}\selectfont 1} & \verb|{\fontfamily{Montserrat-LF}\selectfont 1}| \\
    Tabular Oldstyle & TOsF & {\fontfamily{Montserrat-TOsF}\selectfont 1} & \verb|{\fontfamily{Montserrat-TOsF}\selectfont 1}| \\
    Oldstyle & OsF & {\fontfamily{Montserrat-OsF}\selectfont 1} & \verb|{\fontfamily{Montserrat-OsF}\selectfont 1}| \\
    Superiors & Sup & {\sufigures 1} & \verb|{\sufigures 1}| or \textsu{1}\\
    Inferiors & Inf & {\infigures 1} & \verb|{\infigures 1}|  or \textin{1}\\
    Numerators & Numr & {\nufigures 1} & \verb|{\nufigures 1}|  or \textnu{1}\\
    Denominators & Dnom & {\defigures 1} & \verb|{\defigures 1}|  or \textde{1}\\
    \bottomrule
  \end{tabular}

\textsc{Examples showing vertical position:}\\
\verb|\textde{1} \textin{1}|  produces  \textde{1} \textin{1}.
 
\verb|\textnu{1} \textsu{1}|  produces  \textnu{1} \textsu{1}. 



\textsc{Example macro definition:}\\
Suppose you have set your default figure style in sans serif to proportional lining. (This is the default---you need not set any options to get this.) If you wish to have the option of proportional lining figures in sans serif made easier, you could modify the definitions in the {\tt.sty} file, as follows. Place the following in your preamble after loading Montserrat.
\begin{verbatim}
\makeatletter
\DeclareRobustCommand{\sfosfstyle}{%
  \not@math@alphabet\sfosfstyle\relax
  \fontfamily{Montserrat-OsF}\selectfont %
}
\DeclareRobustCommand{\textsfosf}[1]{%
  {\sfosfstyle #1}%
\makeatother
\end{verbatim}

\end{document}