我感谢那些帮助我解决 newtxtext、newtxmath 问题的人的努力。我现在已经更新了我的 TeX 发行版 (MiKTeX),现在我可以运行这里编辑的代码了,而最初并没有运行。现在,我尝试使用 mtpro2 运行如下代码,但出现了以下错误。
\documentclass[a4paper, 11pt, openany, oneside]{book}
\usepackage{phfthm}
\usepackage{float}
\usepackage[T1]{fontenc}
\usepackage[lite]{mtpro2}
\usepackage{newtxtext,newtxmath}
\usepackage{amsmath}
\usepackage[dvipsnames]{xcolor}
\usepackage{tikz}
\usetikzlibrary{patterns}
\usepackage{venndiagram}
\usepackage{fancyhdr}
\usepackage{authblk}
\usepackage[inline]{enumitem}
\usepackage{multicol}
\usepackage[Glenn]{fncychap}
\usepackage{currency}
\usepackage{tasks}
\usepackage{longtable}
\usepackage{caption}
\usepackage{tabstackengine}
\usepackage{nicematrix}
\usepackage[urlcolor=blue, colorlinks=true, linkcolor=blue, citecolor=red]{hyperref}
\DeclareMathAlphabet{\mathcal}{OMS}{cmsy}{m}{n}
%%% theorems
\theoremstyle{definition}
\newtheorem{ex}{Example}
\newtheorem*{sol}{Solution}
%%% commands
\newcommand{\lra}{\Longrightarrow}
\newcommand{\llra}{\Longleftrightarrow}
\newcommand{\call}{\mathcal}
\newcommand{\inl}{\textup}
\newcommand{\sbs}{\subset}
\makeatletter
\newcommand*{\rom}[1]{\expandafter\@slowromancap\romannumeral #1@}
\makeatother
%%% metadata
\title{Title}
\author{Author}
\begin{document}
Body
\end{document}
从日志文件中:
Couldn't open `mt2e.cfg'
[…]
miktex-maketfm: major issue: User/administrator updates are out-of-sync.
! Font \MTEXA@=mt2exa at 10.95pt not loadable: Metric (TFM) file not found.
<to be read again>
\font
l.130 \font
\MTXL@=mt2xl at \the\dimen@
?