summaryrefslogtreecommitdiff
path: root/macros/latex/contrib/mitthesis/fontsets/newtx.tex
diff options
context:
space:
mode:
Diffstat (limited to 'macros/latex/contrib/mitthesis/fontsets/newtx.tex')
-rw-r--r--macros/latex/contrib/mitthesis/fontsets/newtx.tex22
1 files changed, 22 insertions, 0 deletions
diff --git a/macros/latex/contrib/mitthesis/fontsets/newtx.tex b/macros/latex/contrib/mitthesis/fontsets/newtx.tex
new file mode 100644
index 0000000000..f59c916a58
--- /dev/null
+++ b/macros/latex/contrib/mitthesis/fontsets/newtx.tex
@@ -0,0 +1,22 @@
+% From mitthesis package
+% Version: 1.00, 2023/06/17
+% Documentation: https://ctan.org/pkg/mitthesis
+
+
+\ifpdftex
+ \typeout{^^JLoading newtx fonts with inconsolata typewriter^^J}
+ \RequirePackage[T1]{fontenc}
+ \RequirePackage[subscriptcorrection,varvw,helvratio=0.91]{newtx}% stix2, upint
+ \RequirePackage[varl,varqu,hyphenate,mono]{inconsolata}% sans typewriter font; mono = fixed word spacing, hyphenate = allow hyphenation
+ \RequirePackage{bm}
+ \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}
+ % 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
+ % you cannot use \addfontfeatures to alter the fonts. The command is used on titlepage, so defeat it:
+ \def\addfontfeature#1#2{\ignorespaces}
+\fi
+
+ \ No newline at end of file