summaryrefslogtreecommitdiff
path: root/macros/latex/contrib/mitthesis/MIT-thesis-template/fontsets/mitthesis-newtx.tex
blob: cc43427055bb4b3c81a53ef78004946de57d08c3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
% From mitthesis package
% Documentation: https://ctan.org/pkg/mitthesis

\ProvidesFile{mitthesis-newtx.tex}[2023/09/12 v1.03 Load newtx text and math fonts]

\ifpdftex
	\typeout{^^JLoading newtx fonts with inconsolata typewriter^^J}
	\RequirePackage[T1]{fontenc}
    \RequirePackage[subscriptcorrection,varvw,helvratio=0.91]{newtx}% stix2, upint
    \RequirePackage[varl,varqu,hyphenate,mono]{inconsolata}% sans typewriter font; mono = fixed word spacing, hyphenate = allow hyphenation 
	\RequirePackage{bm}
	\let\textsuperscript\textsu% newtx changes the default superiors font; this is needed to get commas aligned in sequential footnotes
\else
	\ClassWarning{mitnewthesis}{The newtx font set requires pdflatex.  Defaulting to LMR fonts}
    \RequirePackage[warnings-off={mathtools-colon,mathtools-overbracket}]{unicode-math}
    % suppress tiresome warnings about lack of integration between mathtools and unicode-math.
    % Unicode-math loads the fontspec package, but the default fonts are not selected by fontspec in this case.
\fi