如何調整定理環境中數字的斜體字體?

如何調整定理環境中數字的斜體字體?

在定理環境中,文字的字體樣式為斜體,其中包括數字。然而,數字的預設斜體樣式似乎是裝飾性的筆法。我想調整為舒適的斜體。

\documentclass[a4paper,12pt]{article}
\usepackage{amsmath,amsthm,amssymb,mathrsfs,lineno}
\newtheorem{theorem}{Theorem}[section]
\begin{document}
\begin{theorem}
  Any simple 1-planar graph with minimum degree 7 has at least 24 vertices of degree 7.
\end{theorem}
\end{document}

在此輸入影像描述

下圖24和7的斜體樣式正是我所期望的。

在此輸入影像描述

我想知道如何在定理環境中調整數字斜體樣式字體。提前致謝。

答案1

您看到的結果只是斜體 Computer Modern 字體。聽起來您更喜歡數字傾斜而不是斜體。

為此,您可以\textsl僅對數字使用傾斜字體。然後,結果如下所示。

\documentclass[a4paper,12pt]{article}
\usepackage{amsmath,amsthm,amssymb,mathrsfs,lineno}
\newtheorem{theorem}{Theorem}[section]
\begin{document}
\begin{theorem}
  Any simple \textsl{1}-planar graph with minimum degree \textsl{7} has at least \textsl{24} vertices of degree \textsl{7}.
\end{theorem}
\end{document}

另一種可能性是改變整個plain定理的風格(或定義一個新的定理風格),使定理的主體全部傾斜。結果看起來像這樣。

\documentclass[a4paper,12pt]{article}
\usepackage{amsmath,amsthm,amssymb,mathrsfs,lineno}
\newtheoremstyle{plain}
  {\topsep}   % ABOVESPACE
  {\topsep}   % BELOWSPACE
  {\slshape}  % BODYFONT
  {0pt}       % INDENT (empty value is the same as 0pt)
  {\bfseries} % HEADFONT
  {.}         % HEADPUNCT
  {5pt plus 1pt minus 1pt} % HEADSPACE
  {}          % CUSTOM-HEAD-SPEC
\newtheorem{theorem}{Theorem}[section]
\begin{document}
\begin{theorem}
  Any simple 1-planar graph with minimum degree 7 has at least 24 vertices of degree 7.
\end{theorem}
\end{document}

相關內容