summaryrefslogtreecommitdiff
path: root/macros/latex/contrib/mitthesis
diff options
context:
space:
mode:
authorNorbert Preining <norbert@preining.info>2023-07-05 03:01:54 +0000
committerNorbert Preining <norbert@preining.info>2023-07-05 03:01:54 +0000
commit973c785dccc1812d63162178e8362e83e8c263c2 (patch)
treeb2cb12a6b36a0a59e90f1611d32cf7e8d125d575 /macros/latex/contrib/mitthesis
parentab7f5e4df027c13f5aef4fbdb032184cf2f3d5c3 (diff)
CTAN sync 202307050301
Diffstat (limited to 'macros/latex/contrib/mitthesis')
-rw-r--r--macros/latex/contrib/mitthesis/MIT-Thesis.pdfbin489171 -> 489171 bytes
-rw-r--r--macros/latex/contrib/mitthesis/MIT-thesis-template/MIT-Thesis.tex2
-rw-r--r--macros/latex/contrib/mitthesis/MIT-thesis-template/mitthesis-sample.bib4
-rw-r--r--macros/latex/contrib/mitthesis/README.md5
-rw-r--r--macros/latex/contrib/mitthesis/fontsets/mitthesis-defaultfonts.tex7
-rw-r--r--macros/latex/contrib/mitthesis/fontsets/mitthesis-fira-newtxsf.tex6
-rw-r--r--macros/latex/contrib/mitthesis/fontsets/mitthesis-heros-stix2.tex4
-rw-r--r--macros/latex/contrib/mitthesis/fontsets/mitthesis-libertine.tex14
-rw-r--r--macros/latex/contrib/mitthesis/fontsets/mitthesis-lucida.tex4
-rw-r--r--macros/latex/contrib/mitthesis/fontsets/mitthesis-newtx-sans-text.tex6
-rw-r--r--macros/latex/contrib/mitthesis/fontsets/mitthesis-newtx.tex6
-rw-r--r--macros/latex/contrib/mitthesis/fontsets/mitthesis-stix2.tex4
-rw-r--r--macros/latex/contrib/mitthesis/fontsets/mitthesis-termes-stix2.tex4
-rw-r--r--macros/latex/contrib/mitthesis/fontsets/mitthesis-termes.tex4
-rw-r--r--macros/latex/contrib/mitthesis/mitthesis.cls24
15 files changed, 55 insertions, 39 deletions
diff --git a/macros/latex/contrib/mitthesis/MIT-Thesis.pdf b/macros/latex/contrib/mitthesis/MIT-Thesis.pdf
index d859b8cbfd..51f4a87371 100644
--- a/macros/latex/contrib/mitthesis/MIT-Thesis.pdf
+++ b/macros/latex/contrib/mitthesis/MIT-Thesis.pdf
Binary files differ
diff --git a/macros/latex/contrib/mitthesis/MIT-thesis-template/MIT-Thesis.tex b/macros/latex/contrib/mitthesis/MIT-thesis-template/MIT-Thesis.tex
index bcd15c440b..c0a22d37d7 100644
--- a/macros/latex/contrib/mitthesis/MIT-thesis-template/MIT-Thesis.tex
+++ b/macros/latex/contrib/mitthesis/MIT-thesis-template/MIT-Thesis.tex
@@ -3,7 +3,7 @@
% !BIB program = biber
% This file is MIT-Thesis.tex, a template for producing MIT theses with the mitthesis class.
-% Version: 1.03, 2023/06/26
+% Version: 1.04, 2023/07/03
% Author: John H. Lienhard (c) 2023. Reuse under the MIT license: https://ctan.org/license/mit
% Documentation: https://ctan.org/pkg/mitthesis
diff --git a/macros/latex/contrib/mitthesis/MIT-thesis-template/mitthesis-sample.bib b/macros/latex/contrib/mitthesis/MIT-thesis-template/mitthesis-sample.bib
index 87828e0351..786739e5ea 100644
--- a/macros/latex/contrib/mitthesis/MIT-thesis-template/mitthesis-sample.bib
+++ b/macros/latex/contrib/mitthesis/MIT-thesis-template/mitthesis-sample.bib
@@ -1,6 +1,6 @@
%% Sample bibliography file for mitthesis.cls
%%
-%% Revised: 13 June 2023
+%% Revised: 30 June 2023
%% Copyright John H. Lienhard, MIT
%% Offered under the MIT license: https://ctan.org/license/mit
@@ -218,7 +218,7 @@
@bookinbook{churchill1948,
author = {Winston S. Churchill},
year = {1948},
- title = {The Gathering Storm},
+ title = {{The Gathering Storm}},
series = {The Second World War},
volume = {1},
chapter = {5, {``The Locust Years''}},
diff --git a/macros/latex/contrib/mitthesis/README.md b/macros/latex/contrib/mitthesis/README.md
index bfc1c21905..be1ebfe217 100644
--- a/macros/latex/contrib/mitthesis/README.md
+++ b/macros/latex/contrib/mitthesis/README.md
@@ -1,7 +1,7 @@
#mitthesis --- A LaTeX template for MIT theses#
- v1.03 dated 2023/06/26.
+ v1.04 dated 2023/07/03.
####Overview####
This class provides a LaTeX template for MIT theses formatted according to
@@ -53,6 +53,9 @@
---
####Change log####
+ v1.04 (3 July 2023):
+ - Embed default fontset in class file, in case fontset directory is missing
+
v1.03 (26 June 2023):
- Bug fix: fontset naming for older LaTeX formats
- Change default biblatex style to IEEE
diff --git a/macros/latex/contrib/mitthesis/fontsets/mitthesis-defaultfonts.tex b/macros/latex/contrib/mitthesis/fontsets/mitthesis-defaultfonts.tex
index 826945277d..935408ea07 100644
--- a/macros/latex/contrib/mitthesis/fontsets/mitthesis-defaultfonts.tex
+++ b/macros/latex/contrib/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/macros/latex/contrib/mitthesis/fontsets/mitthesis-fira-newtxsf.tex b/macros/latex/contrib/mitthesis/fontsets/mitthesis-fira-newtxsf.tex
index 6cebc4054c..55e6a7de52 100644
--- a/macros/latex/contrib/mitthesis/fontsets/mitthesis-fira-newtxsf.tex
+++ b/macros/latex/contrib/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/macros/latex/contrib/mitthesis/fontsets/mitthesis-heros-stix2.tex b/macros/latex/contrib/mitthesis/fontsets/mitthesis-heros-stix2.tex
index 943fe6a84b..fabfd030cf 100644
--- a/macros/latex/contrib/mitthesis/fontsets/mitthesis-heros-stix2.tex
+++ b/macros/latex/contrib/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/macros/latex/contrib/mitthesis/fontsets/mitthesis-libertine.tex b/macros/latex/contrib/mitthesis/fontsets/mitthesis-libertine.tex
index 81d33bff72..12e2a80ef6 100644
--- a/macros/latex/contrib/mitthesis/fontsets/mitthesis-libertine.tex
+++ b/macros/latex/contrib/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/macros/latex/contrib/mitthesis/fontsets/mitthesis-lucida.tex b/macros/latex/contrib/mitthesis/fontsets/mitthesis-lucida.tex
index a6689059d5..57107e7624 100644
--- a/macros/latex/contrib/mitthesis/fontsets/mitthesis-lucida.tex
+++ b/macros/latex/contrib/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/macros/latex/contrib/mitthesis/fontsets/mitthesis-newtx-sans-text.tex b/macros/latex/contrib/mitthesis/fontsets/mitthesis-newtx-sans-text.tex
index 174aae2d17..faa64929b0 100644
--- a/macros/latex/contrib/mitthesis/fontsets/mitthesis-newtx-sans-text.tex
+++ b/macros/latex/contrib/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/macros/latex/contrib/mitthesis/fontsets/mitthesis-newtx.tex b/macros/latex/contrib/mitthesis/fontsets/mitthesis-newtx.tex
index ec240a7cea..2d4f5b0110 100644
--- a/macros/latex/contrib/mitthesis/fontsets/mitthesis-newtx.tex
+++ b/macros/latex/contrib/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/macros/latex/contrib/mitthesis/fontsets/mitthesis-stix2.tex b/macros/latex/contrib/mitthesis/fontsets/mitthesis-stix2.tex
index 9e4e7c68b6..b85f36d727 100644
--- a/macros/latex/contrib/mitthesis/fontsets/mitthesis-stix2.tex
+++ b/macros/latex/contrib/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/macros/latex/contrib/mitthesis/fontsets/mitthesis-termes-stix2.tex b/macros/latex/contrib/mitthesis/fontsets/mitthesis-termes-stix2.tex
index 8d08f84a89..62a5013a50 100644
--- a/macros/latex/contrib/mitthesis/fontsets/mitthesis-termes-stix2.tex
+++ b/macros/latex/contrib/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/macros/latex/contrib/mitthesis/fontsets/mitthesis-termes.tex b/macros/latex/contrib/mitthesis/fontsets/mitthesis-termes.tex
index a1d5aece4e..6579eb4f31 100644
--- a/macros/latex/contrib/mitthesis/fontsets/mitthesis-termes.tex
+++ b/macros/latex/contrib/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/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}