![公式列表中的字体错误](https://linux22.com/image/467180/%E5%85%AC%E5%BC%8F%E5%88%97%E8%A1%A8%E4%B8%AD%E7%9A%84%E5%AD%97%E4%BD%93%E9%94%99%E8%AF%AF.png)
我的整个文档都是 Palatino 字体(我认为),只有公式列表有衬线字体。我希望一切都统一。以下是示例代码:
\documentclass[a4paper,11pt,openright]{report}
\usepackage[ngerman]{babel} % Deutsche Trennmuster
\usepackage{newtxtext, newtxmath} % Schriftart Palatino & passende Mathe-Schrift
\usepackage[T1]{fontenc} % Einstellung Schriftkodierung
\newcounter{myequation}[chapter]
\renewcommand{\themyequation}{\thechapter.\arabic{myequation}}
\newcommand{\myequation}[1]{\refstepcounter{myequation}\label{#1}\addcontentsline{equ}{myequations}{\protect\numberline{\themyequation}\hspace{0.5em}$\displaystyle \texttt{#1}$}}
\newlistof{myequations}{equ}{Formelverzeichnis}
\setlength{\cftmyequationsnumwidth}{2em}
\begin{document}
\begin{align}
I = {\frac {U}{R}}
\myequation{Ohm'sches Gesetz}
\end{align}
\newpage
\listofmyequations
\addcontentsline{toc}{chapter}{Formelverzeichnis}
\end{document}