blob: 783129ea1e441abf8941661dc79b84d7e7434ae1 (
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
|
\ProvidesPackage{marcellus}[%
2019/05/11 (Bob Tennent) Supports Marcellus fonts for all LaTeX engines. ]
\RequirePackage{ifxetex,ifluatex,textcomp}
\newif\ifmarcellus@ttf
\ifxetex
\marcellus@ttftrue
\else\ifluatex
\marcellus@ttftrue
\else % [pdf]LaTeX
\marcellus@ttffalse
\fi\fi
\newcommand*{\Marcellus@scale}{1}
\RequirePackage{xkeyval}
\DeclareOptionX{scaled}{\renewcommand*{\Marcellus@scale}{#1}}
\DeclareOptionX{scale}{\renewcommand*{\Marcellus@scale}{#1}}
\DeclareOptionX{type1}{\marcellus@ttffalse}
\ProcessOptionsX\relax
\ifmarcellus@ttf
\RequirePackage{fontspec}
\else
\RequirePackage{fontenc,fontaxes,mweights}
\fi
\ifmarcellus@ttf
\ifxetex\XeTeXtracingfonts=1\fi
\defaultfontfeatures{
Ligatures = TeX ,
Extension = .ttf ,
}
\setmainfont
[ UprightFont = *-Regular ,
BoldFont = *-Regular,
SmallCapsFont = {MarcellusSmallcaps}
]
{Marcellus}
\newfontfamily\marcellus
[ UprightFont = *-Regular ,
BoldFont = *-Regular,
SmallCapsFont = {MarcellusSmallcaps}
]
{Marcellus}
\else % type1
\def\mdseries@rm{regular}
\def\bfseries@rm{regular}
\def\marcellusfamily{Marcellus-LF}
\renewcommand*\rmdefault{\marcellusfamily}
\newcommand*\marcellus{\fontfamily{\marcellusfamily}\selectfont}
\fi
% turn off defaults in case other fonts are selected:
\ifmarcellus@ttf
\defaultfontfeatures{}
\fi
\endinput
|