Debian Codegraph @

texmf-dist/doc/latex/mitthesis/MIT-thesis-template/fontsets/mitthesis-termes.tex

raw
1 % From mitthesis package
2 % Documentation: https://ctan.org/pkg/mitthesis
3
4 \ProvidesFile{mitthesis-termes.tex}[2025/09/23 v1.07 Load TeX Gyre Termes text and math fonts, Heros sans serif font, and Cursor monospaced font]
5
6 %% TeX Gyre Termes (Times-like) text font with Termes math font and Heros sans serif font and Cursor monospaced font
7 %
8 % These fonts are in TeX Live and on CTAN. They are included in a complete LaTeX installation.
9 % They are also available at: http://www.gust.org.pl/projects/e-foundry/tex-gyre
10 %
11 \ifpdftex
12 \ClassError{\ClassName}{The termes fontset requires a unicode engine. Defaulting to CMR fonts}{To use the class option [fontset=termes], use a unicode engine such as LuaLaTeX.}
13 \RequirePackage[T1]{fontenc}
14 \RequirePackage{bm}
15 \else
16 \ClassNoteNoLine{\ClassName}{Loading TeX Gyre Termes text and math fonts, Heros sans serif font, and Cursor monospaced font}
17 \RequirePackage[warnings-off={mathtools-colon,mathtools-overbracket},mathbf=sym]{unicode-math}
18 % suppress warnings about lack of integration between mathtools and unicode-math
19 % unicode-math loads the fontspec package
20 %
21 \setmainfont{TeXGyreTermesX}[
22 WordSpace = {1,1.4,1},
23 Extension = .otf,
24 UprightFont = *-Regular,
25 ItalicFont = *-Italic,
26 BoldFont = *-Bold,
27 BoldItalicFont = *-BoldItalic,
28 SlantedFont = *-Italic,
29 Numbers = Lining,
30 ]
31 \setsansfont{texgyreheros}[
32 WordSpace = {1,1.4,1},
33 Extension = .otf,
34 UprightFont = *-regular,
35 ItalicFont = *-italic,
36 BoldFont = *-bold,
37 BoldItalicFont = *-bolditalic,
38 Numbers = Lining,
39 Scale=0.91,% same as used in newtx; former value 0.9 too small 2022/01/15
40 ]
41 \setmonofont{texgyrecursor}[
42 %Scale=0.97,
43 Scale=1.03, % adjusted 2024/10/12 to bring x-size closer to other fonts
44 Extension = .otf,
45 UprightFont = *-Regular,
46 ItalicFont = *-Italic,
47 BoldFont = *-Bold,
48 BoldItalicFont = *-BoldItalic,
49 % BoldFeatures = { Color = VioletRed3 },
50 ]
51 \setmathfont{texgyretermes-math}[
52 Scale=MatchUppercase,
53 Extension = .otf,
54 % BoldFont = *, % termes-math does not have a bold version
55 % Color=Red3,
56 ]
57 %
58 \newcommand*{\FRAC}[1]{{\addfontfeature{Fractions=On}#1}}% use OpenType feature for fractions, \FRAC{1/2}
59 \fi