我要做什么,创建一个定理环境,其中定理名称的风格与标准定理名称不同?
我希望名称全部为大写字母。显然这\newtheorem*{new thm*}{\textsc{newtheorem}}
行不通,因为它不会改变任何东西 - 但这\textsc{Newtheorem}
正是我希望我的定理名称显示的方式。以下是 MWE,希望可以清楚地说明这一点:
\documentclass{article}
\theoremstyle{theorem}
\newtheorem*{newthm*}{\textsc{Newtheorem}}
%Change \textsc, so that indeed has all letters capital
\begin{document}
\maketitle
I want the "Newtheorem" to look like \textsc{Newtheorem}.
But instead, it looks like:
\begin{newthm*} A Theorem
\end{newthm*}
\end{document}
答案1
声明\theoremstyle{theorem}
是错误的:它是\usepackage{amsthm}
。那么这将起作用:
\documentclass{article}
\usepackage{amsthm}
\newtheorem*{newthm*}{\normalfont\scshape Newtheorem}
\begin{document}
I want the "Newtheorem" to look like \textsc{Newtheorem}.
But instead, it looks like:
\begin{newthm*}
A Theorem
\end{newthm*}
\end{document}