定理內的&符號?

定理內的&符號?

當我嘗試在定理中寫入符號“&”時,它看起來與我想要的不同。有沒有辦法得到定理中的符號?這是我得到的:

在此輸入影像描述

這是代碼:

\documentclass[a4paper]{memoir}
\usepackage{amsmath}
\usepackage{amsthm}
\newtheorem{theo}{Theorem}

\begin{document}
    Outside theorem \&
\begin{theo}
    Inside theorem \&

    Inside theorem 2 \text{\&}
    \end{theo}
\end{document}

你知道如何解決這個問題嗎?

答案1

評論中的建議有效,但在我看來,您仍然想要一個正確的斜體&符號,只是不在該設計中。對此有兩種解決方案:

  1. 完全使用不同的字體。 Tgtermes 接近現代電腦(預設的 tex 字體),但為您提供了您想要的 & 符號。

    \documentclass[a4paper]{memoir}
    \usepackage{amsmath}
    \usepackage{amsthm}
    \usepackage{tgtermes}
    \newtheorem{theo}{Theorem}
    
    \begin{document}
        Outside theorem \&
    \begin{theo}
        Inside theorem \&
    
    Inside theorem 2 \&
    \end{theo}
    
    \end{document}
    
  2. 從另一種字體借用單一字元。參見例如使用 XeLaTeX 替換字體

在此輸入影像描述

相關內容