diff options
Diffstat (limited to 'macros/latex/contrib/mitthesis/mitthesis.cls')
-rw-r--r-- | macros/latex/contrib/mitthesis/mitthesis.cls | 24 |
1 files changed, 19 insertions, 5 deletions
diff --git a/macros/latex/contrib/mitthesis/mitthesis.cls b/macros/latex/contrib/mitthesis/mitthesis.cls index 92e237e18d..b0453036a9 100644 --- a/macros/latex/contrib/mitthesis/mitthesis.cls +++ b/macros/latex/contrib/mitthesis/mitthesis.cls @@ -7,8 +7,8 @@ %% MIT Libraries' requirements as of 2023. %% %% This file's version and date: - \def\versionno{1.03} - \def\versiondate{2023/06/26\space} + \def\versionno{1.04} + \def\versiondate{2023/07/03\space} %% %% Author: John H. Lienhard, V %% Department of Mechanical Engineering @@ -227,12 +227,26 @@ \titleformat{\section}{\mathversion{bold}\normalfont\Large\bfseries}{\thesection }{1em}{} \titleformat{\subsection}{\mathversion{bold}\normalfont\large\bfseries}{\thesubsection}{1em}{} \titleformat{\subsubsection}{\mathversion{bold}\normalfont\normalsize\bfseries}{\thesubsubsection}{1em}{} - % ==> NOT every font includes a bold math version, so you may need to use other math macros in the headings to get bold math <== + % ==> NOT every font includes a bold math version, so you may need to use other math macros in the headings to get bold math <== \fi %% Font loading -\typeout{^^JFontset key is \mit@fontset^^J} -\input{fontsets/\ClassName-\mit@fontset.tex} +\typeout{^^JFontset key is \mit@fontset.^^J} +\IfFileExists{fontsets/\ClassName-\mit@fontset.tex}{% 2023/07/03 + \input{fontsets/\ClassName-\mit@fontset.tex} +}{% + \typeout{^^JFontset file \ClassName-\mit@fontset.tex not found, using defaultfonts.} + \ifpdftex + \typeout{^^JLoading Computer Modern text and math fonts (default for pdftex).^^J} + \RequirePackage[T1]{fontenc} + \RequirePackage{bm} + \else + \typeout{^^JLoading Latin Modern text and math fonts (default for unicode engines).^^J} + \RequirePackage[warnings-off={mathtools-colon,mathtools-overbracket}]{unicode-math} + % suppress tiresome warnings about lack of integration between mathtools and unicode-math. + % Unicode-math loads fontspec package, but default fonts are not selected by fontspec in this case. + \fi +} \RequirePackage{graphicx} |