
textsc
정리 환경에 나타나는 방정식 내부를 사용하고 있습니다 . 방정식 내부 의 텍스트가 textsc
이탤릭체(Theorem 환경에서 적용됨)가 아닌 일반 글꼴로 표시되기를 원합니다.
즉, 여기서 발견된 차이점을 피하고 싶습니다(CLIQUE는 첫 번째 줄과 동일한 스타일로 정리 내부에서 렌더링되어야 합니다).
We have the following result for $\textsc{Clique}$.
\begin{proposition}
$\textsc{Clique}$ is $\NP$-complete.
\end{proposition}
이를 수행할 수 있는 방법이 있습니까? 이상적으로는 명령 이름을 바꿔서 이 작업을 수행할 수 있습니까 textsc
? (이를 사용하는 더 복잡한 매크로가 있고 이런 방식으로 모양을 변경해야 하기 때문입니다)
답변1
NP 완전성과 관련하여 분석하고 싶은 몇 가지 문제가 있을 수 있으므로 특정 명령을 정의하는 것이 가장 좋습니다. 가장 큰 장점은 타이포그래피 구현을 마지막 순간에도 결정할 수 있다는 점입니다.
\documentclass{article}
\usepackage{amsmath,amsthm}
\newcommand{\NP}{\mathbf{NP}}
\newcommand{\prb}[1]{\textnormal{\scshape #1}}
\newtheorem{proposition}{Proposition}
\begin{document}
We have the following result for \prb{Clique}.
\begin{proposition}
\prb{Clique} is $\NP$-complete.
\end{proposition}
Also in math mode: $\prb{Clique}^2$
\end{document}