• Tidak ada hasil yang ditemukan

The Montserrat Font Package - CTAN

N/A
N/A
Protected

Academic year: 2024

Membagikan "The Montserrat Font Package - CTAN"

Copied!
3
0
0

Teks penuh

(1)

The Montserrat Font Package

Michael Sharpe November 7, 2019

Montserrat is a geometric sans-serif typeface designed by Julieta Ulanovsky, inspired by posters and signage from her historic 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 up- right and italic shapes, and every one of them has Small Caps andSmall 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,ATWl.

As it currently set up, a preamble entry of the form

\usepackage{montserrat}

which should be made afterloading the text font andbefore 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.

defaultfam

will cause

\familydefault

to be set to

\sfdefault

, so that Montserrat becomes the default text font for the document.

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

(2)

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

Figure spec abbrev example call with

Tabular lining TLF 1

{\fontfamily{Montserrat-TLF}\selectfont 1}

Proportional lining LF 1

{\fontfamily{Montserrat-LF}\selectfont 1}

Tabular Oldstyle TOsF 1

{\fontfamily{Montserrat-TOsF}\selectfont 1}

Oldstyle OsF 1

{\fontfamily{Montserrat-OsF}\selectfont 1}

Superiors Sup ¹

{\sufigures 1}

or

\textsu{1}

Inferiors Inf ₁

{\infigures 1}

or

\textin{1}

Numerators Numr 1

{\nufigures 1}

or

\textnu{1}

Denominators Dnom 1

{\defigures 1}

or

\textde{1}

Examples showing vertical position:

\textde{1} \textin{1}

produces 1 ₁.

\textnu{1} \textsu{1}

produces 1 ¹.

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 oldstyle figures in sans serif made easier, you could modify the definitions in the

.sty

file, as follows. Place the following in your preamble after loading Montserrat.

\makeatletter

\DeclareRobustCommand{\sfosfstyle}{%

\not@math@alphabet\sfosfstyle\relax

\fontfamily{Montserrat-OsF}\selectfont % }

\DeclareRobustCommand{\textsfosf}[1]{%

2

(3)

{\sfosfstyle #1}%

\makeatother

Usage with fontspec

Because the package supplies a file named

montserrat.fontspec

whose contents list the

otf

files that correspond to each of nine styles you may load

montserrat

as the main text font with just

\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

.

3

Referensi

Dokumen terkait

8 Your name. and candidate number should be left aligned in black using a 12 point sans serif font. To do this. highlight the details in the footer like this:. Click on rome and

Default: 0.83333 scale-relative choice If set totrue the font size of the numerator and denominator is scaled with respect to the height of the slash-symbol.. If set tofalse the font is

Note that some keys default to this value every listing, namely the keys which can be used on individual listings only.. Regarding the parameters, please keep in mind the following:

By default, acronyms will be added to the main glossary, but if you use theacronym package option, acronyms will be placed in a separate list of acronyms:

For instance, put this line into this file, if you want to haveA4 as paper format: \PassOptionsToClass{a4paper}{article} An example follows how to generate the documentation with

For instance, put this line into this file, if you want to have A4 as paper format: \PassOptionsToClass{a4paper}{article} An example follows how to generate the documentation with

The sectionning commands \chapter and \section are not defined by the document class, hence the \mtcfixindex macro cannot be used without an optional argument try \part.. This

This is why, with fonts like Minion Pro, which use proportional figures by default, you have to specifically adapt your document class or even the LATEX kernel to employ tabular figures