Debian Codegraph @

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

raw
1 % From mitthesis package
2 % Documentation: https://ctan.org/pkg/mitthesis
3
4 \ProvidesFile{mitthesis-newtx.tex}[2026/01/31 v1.05 Load newtx text and math fonts]
5
6 \ifpdftex
7 \ClassNoteNoLine{\ClassName}{Loading newtx fonts with inconsolata typewriter}
8 \RequirePackage[T1]{fontenc}
9 \RequirePackage[subscriptcorrection,varvw,helvratio=0.91]{newtx}% stix2, upint
10 \RequirePackage[varl,varqu,hyphenate,mono]{inconsolata}% sans typewriter font; mono = fixed word spacing, hyphenate = allow hyphenation
11 \RequirePackage{bm}
12 \let\textsuperscript\textsu% newtx changes the default superiors font; this is needed to get commas aligned in sequential footnotes
13 %
14 \RequirePackage{etoolbox} % may already be loaded by the .cls file
15 % Patch headings to automatically use \mathversion{bold}. Compare to report.cls.
16 \patchcmd{\section}{\normalfont}{\mathversion{bold}\normalfont}{}{}
17 \patchcmd{\subsection}{\normalfont}{\mathversion{bold}\normalfont}{}{}
18 \patchcmd{\subsubsection}{\normalfont}{\mathversion{bold}\normalfont}{}{}
19 \patchcmd{\paragraph}{\normalfont}{\mathversion{bold}\normalfont}{}{}
20 \patchcmd{\subparagraph}{\normalfont}{\mathversion{bold}\normalfont}{}{}
21 \else
22 \ClassWarning{\ClassName}{The newtx font set requires pdflatex. Defaulting to LMR fonts}
23 \RequirePackage[warnings-off={mathtools-colon,mathtools-overbracket}]{unicode-math}
24 % suppress warnings about lack of integration between mathtools and unicode-math.
25 % Unicode-math loads the fontspec package, but the default fonts are not selected by fontspec in this case.
26 \fi
27
28