| 1 |
% From mitthesis package |
| 2 |
% Documentation: https://ctan.org/pkg/mitthesis |
| 3 |
|
| 4 |
\ProvidesFile{mitthesis-newtx-sans-text.tex}[2026/01/31 v1.05 Load newtx sans-serif text and regular math fonts] |
| 5 |
|
| 6 |
%% newtx package with sans-serif text (Helvetica-like text with Times-like math) |
| 7 |
% |
| 8 |
\ifpdftex |
| 9 |
\ClassNoteNoLine{\ClassName}{Loading newtx sans-serif text and newtx serif math fonts} |
| 10 |
\RequirePackage[T1]{fontenc} |
| 11 |
\RequirePackage[subscriptcorrection,varvw,helvratio=0.91,defaultsups]{newtx}% upint for upright integrals |
| 12 |
\AtEndPreamble{% added to accommodate v1.731 of newtx, 2023/11/03 |
| 13 |
\renewcommand{\familydefault}{\sfdefault}% use sans for main text |
| 14 |
% \renewcommand{\rmdefault}{\sfdefault}% uses sans for \textrm{}, if that's desired. |
| 15 |
} |
| 16 |
% these two commands enable hyphenation of the typewriter font - https://tex.stackexchange.com/a/204421/119566 |
| 17 |
% \input{t1ntxtt.fd} |
| 18 |
% \DeclareFontFamily{\encodingdefault}{\ttdefault}{\hyphenchar\font=`\-} % |
| 19 |
\RequirePackage{bm}% bold math |
| 20 |
% |
| 21 |
\RequirePackage{etoolbox} % may already be loaded by the .cls file |
| 22 |
% Patch headings to automatically use \mathversion{bold}. Compare to report.cls. |
| 23 |
\patchcmd{\section}{\normalfont}{\mathversion{bold}\normalfont}{}{} |
| 24 |
\patchcmd{\subsection}{\normalfont}{\mathversion{bold}\normalfont}{}{} |
| 25 |
\patchcmd{\subsubsection}{\normalfont}{\mathversion{bold}\normalfont}{}{} |
| 26 |
\patchcmd{\paragraph}{\normalfont}{\mathversion{bold}\normalfont}{}{} |
| 27 |
\patchcmd{\subparagraph}{\normalfont}{\mathversion{bold}\normalfont}{}{} |
| 28 |
\else |
| 29 |
\ClassWarning{\ClassName}{The newtx font set requires pdflatex. Defaulting to LMR fonts} |
| 30 |
\RequirePackage[warnings-off={mathtools-colon,mathtools-overbracket}]{unicode-math} |
| 31 |
% suppress warnings about lack of integration between mathtools and unicode-math. |
| 32 |
% Unicode-math loads the fontspec package, but the default fonts are not selected by fontspec in this case. |
| 33 |
\fi |
| 34 |
|
| 35 |
|