From 0873b12963d49655a15e9f87f8d493eebd0aaa49 Mon Sep 17 00:00:00 2001 From: Karl Berry Date: Tue, 4 Jul 2023 19:52:56 +0000 Subject: mitthesis (4jul23) git-svn-id: svn://tug.org/texlive/trunk@67544 c570f23f-e606-0410-a88d-b1316a301751 --- .../mitthesis/fontsets/mitthesis-defaultfonts.tex | 7 +++---- .../mitthesis/fontsets/mitthesis-fira-newtxsf.tex | 6 +++--- .../mitthesis/fontsets/mitthesis-heros-stix2.tex | 4 ++-- .../mitthesis/fontsets/mitthesis-libertine.tex | 14 ++++++------- .../latex/mitthesis/fontsets/mitthesis-lucida.tex | 4 ++-- .../fontsets/mitthesis-newtx-sans-text.tex | 6 +++--- .../latex/mitthesis/fontsets/mitthesis-newtx.tex | 6 +++--- .../latex/mitthesis/fontsets/mitthesis-stix2.tex | 4 ++-- .../mitthesis/fontsets/mitthesis-termes-stix2.tex | 4 ++-- .../latex/mitthesis/fontsets/mitthesis-termes.tex | 4 ++-- .../texmf-dist/tex/latex/mitthesis/mitthesis.cls | 24 +++++++++++++++++----- 11 files changed, 48 insertions(+), 35 deletions(-) (limited to 'Master/texmf-dist/tex/latex') diff --git a/Master/texmf-dist/tex/latex/mitthesis/fontsets/mitthesis-defaultfonts.tex b/Master/texmf-dist/tex/latex/mitthesis/fontsets/mitthesis-defaultfonts.tex index 826945277de..935408ea071 100644 --- a/Master/texmf-dist/tex/latex/mitthesis/fontsets/mitthesis-defaultfonts.tex +++ b/Master/texmf-dist/tex/latex/mitthesis/fontsets/mitthesis-defaultfonts.tex @@ -1,8 +1,7 @@ % From mitthesis package -% Version: 1.01, 2023/06/19 +% Version: 1.02, 2023/07/03 % Documentation: https://ctan.org/pkg/mitthesis - %% Default fonts % \ifpdftex @@ -12,7 +11,7 @@ \else \typeout{^^JLoading Latin Modern text and math fonts (default for unicode engines).^^J} % - \usepackage[warnings-off={mathtools-colon,mathtools-overbracket}]{unicode-math} + \RequirePackage[warnings-off={mathtools-colon,mathtools-overbracket}]{unicode-math} % suppress tiresome 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, so + % Unicode-math loads fontspec package, but default fonts are not selected by fontspec in this case. \fi diff --git a/Master/texmf-dist/tex/latex/mitthesis/fontsets/mitthesis-fira-newtxsf.tex b/Master/texmf-dist/tex/latex/mitthesis/fontsets/mitthesis-fira-newtxsf.tex index 6cebc4054c4..55e6a7de526 100644 --- a/Master/texmf-dist/tex/latex/mitthesis/fontsets/mitthesis-fira-newtxsf.tex +++ b/Master/texmf-dist/tex/latex/mitthesis/fontsets/mitthesis-fira-newtxsf.tex @@ -1,5 +1,5 @@ % From mitthesis package -% Version: 1.01, 2023/06/19 +% Version: 1.02, 2023/07/03 % Documentation: https://ctan.org/pkg/mitthesis @@ -14,7 +14,7 @@ \RequirePackage{bm} \else \ClassWarning{mitnewthesis}{The newtx font set requires pdflatex. Defaulting to LMR fonts} - \usepackage[warnings-off={mathtools-colon,mathtools-overbracket}]{unicode-math} + \RequirePackage[warnings-off={mathtools-colon,mathtools-overbracket}]{unicode-math} % suppress tiresome 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, so + % Unicode-math loads the fontspec package, but the default fonts are not selected by fontspec in this case. \fi diff --git a/Master/texmf-dist/tex/latex/mitthesis/fontsets/mitthesis-heros-stix2.tex b/Master/texmf-dist/tex/latex/mitthesis/fontsets/mitthesis-heros-stix2.tex index 943fe6a84b5..fabfd030cfd 100644 --- a/Master/texmf-dist/tex/latex/mitthesis/fontsets/mitthesis-heros-stix2.tex +++ b/Master/texmf-dist/tex/latex/mitthesis/fontsets/mitthesis-heros-stix2.tex @@ -1,5 +1,5 @@ % From mitthesis package -% Version: 1.00, 2023/06/17 +% Version: 1.01, 2023/07/03 % Documentation: https://ctan.org/pkg/mitthesis @@ -18,7 +18,7 @@ \else \typeout{^^JTeX Gyre Heros (sans serif) text font with STIX2 math font and Inconsolata monospaced font.^^J} % - \usepackage[warnings-off={mathtools-colon,mathtools-overbracket}]{unicode-math} + \RequirePackage[warnings-off={mathtools-colon,mathtools-overbracket}]{unicode-math} % suppress tiresome warnings about lack of integration between mathtools and unicode-math % unicode-math loads the fontspec package diff --git a/Master/texmf-dist/tex/latex/mitthesis/fontsets/mitthesis-libertine.tex b/Master/texmf-dist/tex/latex/mitthesis/fontsets/mitthesis-libertine.tex index 81d33bff727..12e2a80ef63 100644 --- a/Master/texmf-dist/tex/latex/mitthesis/fontsets/mitthesis-libertine.tex +++ b/Master/texmf-dist/tex/latex/mitthesis/fontsets/mitthesis-libertine.tex @@ -1,5 +1,5 @@ % From mitthesis package -% Version: 1.00, 2023/06/17 +% Version: 1.01, 2023/07/03 % Documentation: https://ctan.org/pkg/mitthesis %% Linux Libertine (serif) text font with newtxmath[libertine] (pdftex) or Libertinus (unicode) math font @@ -10,16 +10,16 @@ % \ifpdftex \typeout{^^JLoading newtx-libertine text and math fonts with insolata typewriter font^^J} - \usepackage[lining,semibold]{libertine} - \usepackage[T1]{fontenc} - \usepackage[varqu,varl]{inconsolata}% typewriter + \RequirePackage[lining,semibold]{libertine} + \RequirePackage[T1]{fontenc} + \RequirePackage[varqu,varl]{inconsolata}% typewriter % \usepackage{amsthm}% must be loaded before newtxmath - \usepackage[libertine,vvarbb]{newtxmath} - \usepackage{bm}% load after all math to give access to bold math + \RequirePackage[libertine,vvarbb]{newtxmath} + \RequirePackage{bm}% load after all math to give access to bold math \else \typeout{^^JLoading Linux Libertine (serif) text font with Libertinus math font^^J} % - \usepackage[warnings-off={mathtools-colon,mathtools-overbracket}]{unicode-math} + \RequirePackage[warnings-off={mathtools-colon,mathtools-overbracket}]{unicode-math} % suppress tiresome warnings about lack of integration between mathtools and unicode-math % unicode math loads the fontspec package % diff --git a/Master/texmf-dist/tex/latex/mitthesis/fontsets/mitthesis-lucida.tex b/Master/texmf-dist/tex/latex/mitthesis/fontsets/mitthesis-lucida.tex index a6689059d54..57107e7624b 100644 --- a/Master/texmf-dist/tex/latex/mitthesis/fontsets/mitthesis-lucida.tex +++ b/Master/texmf-dist/tex/latex/mitthesis/fontsets/mitthesis-lucida.tex @@ -1,5 +1,5 @@ % From mitthesis package -% Version: 1.00, 2023/06/17 +% Version: 1.01, 2023/07/03 % Documentation: https://ctan.org/pkg/mitthesis @@ -12,7 +12,7 @@ \RequirePackage[expert,vargreek,altbullet,seriftt]{lucidabr} % switch text and math fonts \RequirePackage{bm} \else - \usepackage[warnings-off={mathtools-colon,mathtools-overbracket}]{unicode-math} + \RequirePackage[warnings-off={mathtools-colon,mathtools-overbracket}]{unicode-math} % suppress tiresome warnings about lack of integration between mathtools and unicode-math % unicode-math loads the fontspec package diff --git a/Master/texmf-dist/tex/latex/mitthesis/fontsets/mitthesis-newtx-sans-text.tex b/Master/texmf-dist/tex/latex/mitthesis/fontsets/mitthesis-newtx-sans-text.tex index 174aae2d176..faa64929b05 100644 --- a/Master/texmf-dist/tex/latex/mitthesis/fontsets/mitthesis-newtx-sans-text.tex +++ b/Master/texmf-dist/tex/latex/mitthesis/fontsets/mitthesis-newtx-sans-text.tex @@ -1,5 +1,5 @@ % From mitthesis package -% Version: 1.01, 2023/06/19 +% Version: 1.01, 2023/07/03 % Documentation: https://ctan.org/pkg/mitthesis @@ -15,9 +15,9 @@ \RequirePackage{bm}% bold math \else \ClassWarning{mitnewthesis}{The newtx font set requires pdflatex. Defaulting to LMR fonts} - \usepackage[warnings-off={mathtools-colon,mathtools-overbracket}]{unicode-math} + \RequirePackage[warnings-off={mathtools-colon,mathtools-overbracket}]{unicode-math} % suppress tiresome 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, so + % Unicode-math loads the fontspec package, but the default fonts are not selected by fontspec in this case. \fi \ No newline at end of file diff --git a/Master/texmf-dist/tex/latex/mitthesis/fontsets/mitthesis-newtx.tex b/Master/texmf-dist/tex/latex/mitthesis/fontsets/mitthesis-newtx.tex index ec240a7cea0..2d4f5b0110b 100644 --- a/Master/texmf-dist/tex/latex/mitthesis/fontsets/mitthesis-newtx.tex +++ b/Master/texmf-dist/tex/latex/mitthesis/fontsets/mitthesis-newtx.tex @@ -1,5 +1,5 @@ % From mitthesis package -% Version: 1.01, 2023/06/19 +% Version: 1.02, 2023/07/03 % Documentation: https://ctan.org/pkg/mitthesis @@ -12,9 +12,9 @@ \let\textsuperscript\textsu% newtx changes the default superiors font; this is needed to get commas aligned in sequential footnotes \else \ClassWarning{mitnewthesis}{The newtx font set requires pdflatex. Defaulting to LMR fonts} - \usepackage[warnings-off={mathtools-colon,mathtools-overbracket}]{unicode-math} + \RequirePackage[warnings-off={mathtools-colon,mathtools-overbracket}]{unicode-math} % suppress tiresome 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, so + % Unicode-math loads the fontspec package, but the default fonts are not selected by fontspec in this case. \fi \ No newline at end of file diff --git a/Master/texmf-dist/tex/latex/mitthesis/fontsets/mitthesis-stix2.tex b/Master/texmf-dist/tex/latex/mitthesis/fontsets/mitthesis-stix2.tex index 9e4e7c68b6e..b85f36d727c 100644 --- a/Master/texmf-dist/tex/latex/mitthesis/fontsets/mitthesis-stix2.tex +++ b/Master/texmf-dist/tex/latex/mitthesis/fontsets/mitthesis-stix2.tex @@ -1,5 +1,5 @@ % From mitthesis package -% Version: 1.01, 2023/06/19 +% Version: 1.02, 2023/07/03 % Documentation: https://ctan.org/pkg/mitthesis @@ -18,7 +18,7 @@ \else \typeout{^^JLoading STIX Two text and math fonts with Heros sans serif font and Inconsolata monospaced font.^^J} % - \usepackage[warnings-off={mathtools-colon,mathtools-overbracket}]{unicode-math} + \RequirePackage[warnings-off={mathtools-colon,mathtools-overbracket}]{unicode-math} % suppress tiresome warnings about lack of integration between mathtools and unicode-math % unicode-math loads the fontspec package % diff --git a/Master/texmf-dist/tex/latex/mitthesis/fontsets/mitthesis-termes-stix2.tex b/Master/texmf-dist/tex/latex/mitthesis/fontsets/mitthesis-termes-stix2.tex index 8d08f84a89d..62a5013a508 100644 --- a/Master/texmf-dist/tex/latex/mitthesis/fontsets/mitthesis-termes-stix2.tex +++ b/Master/texmf-dist/tex/latex/mitthesis/fontsets/mitthesis-termes-stix2.tex @@ -1,5 +1,5 @@ % From mitthesis package -% Version: 1.01, 2023/06/19 +% Version: 1.02, 2023/07/03 % Documentation: https://ctan.org/pkg/mitthesis @@ -18,7 +18,7 @@ \else \typeout{^^JLoading TeX Gyre Termes text font with STIX2 math font, Heros sans serif font, and Inconsolata monospaced font.^^J} % - \usepackage[warnings-off={mathtools-colon,mathtools-overbracket}]{unicode-math} + \RequirePackage[warnings-off={mathtools-colon,mathtools-overbracket}]{unicode-math} % suppress tiresome warnings about lack of integration between mathtools and unicode-math % unicode-math loads the fontspec package % diff --git a/Master/texmf-dist/tex/latex/mitthesis/fontsets/mitthesis-termes.tex b/Master/texmf-dist/tex/latex/mitthesis/fontsets/mitthesis-termes.tex index a1d5aece4e4..6579eb4f312 100644 --- a/Master/texmf-dist/tex/latex/mitthesis/fontsets/mitthesis-termes.tex +++ b/Master/texmf-dist/tex/latex/mitthesis/fontsets/mitthesis-termes.tex @@ -1,5 +1,5 @@ % From mitthesis package -% Version: 1.01, 2023/06/19 +% Version: 1.02, 2023/07/03 % Documentation: https://ctan.org/pkg/mitthesis @@ -14,7 +14,7 @@ \RequirePackage{bm} \else \typeout{^^JLoading TeX Gyre Termes text and math fonts, Heros sans serif font, and Cursor monospaced font^^J} - \usepackage[warnings-off={mathtools-colon,mathtools-overbracket}]{unicode-math} + \RequirePackage[warnings-off={mathtools-colon,mathtools-overbracket}]{unicode-math} % suppress tiresome warnings about lack of integration between mathtools and unicode-math % unicode-math loads the fontspec package % diff --git a/Master/texmf-dist/tex/latex/mitthesis/mitthesis.cls b/Master/texmf-dist/tex/latex/mitthesis/mitthesis.cls index 92e237e18d6..b0453036a90 100644 --- a/Master/texmf-dist/tex/latex/mitthesis/mitthesis.cls +++ b/Master/texmf-dist/tex/latex/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} -- cgit v1.2.3