| 1 |
% From mitthesis package |
| 2 |
% Documentation: https://ctan.org/pkg/mitthesis |
| 3 |
|
| 4 |
\ProvidesFile{mitthesis-defaultfonts.tex}[2026/01/31 v1.07 Load Computer/Latin Modern text and math fonts] |
| 5 |
|
| 6 |
%% Default fonts |
| 7 |
\ifpdftex |
| 8 |
\ClassNoteNoLine{\ClassName}{Loading Computer Modern text and math fonts (default for pdftex)} |
| 9 |
\RequirePackage[T1]{fontenc} % With T1 encoding, pdftex will silently load the cm-super fontset |
| 10 |
% \RequirePackage[]{babel} % load babel (with desired options) if using a language other than English |
| 11 |
\RequirePackage{bm} |
| 12 |
% |
| 13 |
\RequirePackage{etoolbox} % may already be loaded by the .cls file |
| 14 |
% Patch headings to automatically use \mathversion{bold}. Compare to report.cls. |
| 15 |
\patchcmd{\section}{\normalfont}{\mathversion{bold}\normalfont}{}{} |
| 16 |
\patchcmd{\subsection}{\normalfont}{\mathversion{bold}\normalfont}{}{} |
| 17 |
\patchcmd{\subsubsection}{\normalfont}{\mathversion{bold}\normalfont}{}{} |
| 18 |
\patchcmd{\paragraph}{\normalfont}{\mathversion{bold}\normalfont}{}{} |
| 19 |
\patchcmd{\subparagraph}{\normalfont}{\mathversion{bold}\normalfont}{}{} |
| 20 |
\else |
| 21 |
\ClassNoteNoLine{\ClassName}{Loading Latin Modern text and math fonts (default for unicode engines)} |
| 22 |
% |
| 23 |
% \RequirePackage[]{babel} % load babel (with desired options) if using a language other than English |
| 24 |
\RequirePackage[warnings-off={mathtools-colon,mathtools-overbracket},mathbf=sym]{unicode-math} |
| 25 |
% suppress warnings about lack of integration between mathtools and unicode-math. |
| 26 |
% Unicode-math loads fontspec package, but default fonts are not selected by fontspec in this case. |
| 27 |
\fi |