% From mitthesis package
% Documentation: https://ctan.org/pkg/mitthesis

\ProvidesFile{mitthesis-newtx.tex}[2026/01/31 v1.05 Load newtx text and math fonts]

\ifpdftex
	\ClassNoteNoLine{\ClassName}{Loading newtx fonts with inconsolata typewriter}
	\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
	%
	\RequirePackage{etoolbox} % may already be loaded by the .cls file
	% Patch headings to automatically use \mathversion{bold}. Compare to report.cls. 
	\patchcmd{\section}{\normalfont}{\mathversion{bold}\normalfont}{}{}
	\patchcmd{\subsection}{\normalfont}{\mathversion{bold}\normalfont}{}{}
	\patchcmd{\subsubsection}{\normalfont}{\mathversion{bold}\normalfont}{}{}
	\patchcmd{\paragraph}{\normalfont}{\mathversion{bold}\normalfont}{}{}
	\patchcmd{\subparagraph}{\normalfont}{\mathversion{bold}\normalfont}{}{}
\else
	\ClassWarning{\ClassName}{The newtx font set requires pdflatex.  Defaulting to LMR fonts}
    \RequirePackage[warnings-off={mathtools-colon,mathtools-overbracket}]{unicode-math}
    % suppress 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

	