
내 정리 중 하나에 대한 설명 내에 방정식이 있습니다. 이 방정식에는 함수 이름을 지정하는 텍스트가 있습니다. 그러나 이 방정식이 정리 환경에 나타나면 출력에서는 함수 이름의 각 문자를 변수인 것처럼 처리합니다. 이 문제를 어떻게 해결할 수 있나요?
\documentclass[11pt]{article}
\usepackage{amsmath}
\newtheorem{theorem}{Theorem}
\begin{document}
$\text{Function}(x) = 1$
\begin{theorem}
$\text{Function}(x) = 1$
\end{theorem}
\end{document}
답변1
\text
주변 글꼴을 존중합니다. 원하는 글꼴과 적절한 간격을 얻는 더 나은 방법은 다음을 사용하는 것입니다 \DeclareMathOperator
.
\documentclass[11pt]{article}
\usepackage{amsmath}
\newtheorem{theorem}{Theorem}
\DeclareMathOperator{\Func}{Function}
\begin{document}
$\text{Function}(x) = 1\quad\Func(x) = 1$
\begin{theorem}
$\text{Function}(x) = 1\quad\Func(x) = 1$
\end{theorem}
\end{document}