我想定義定理 xy 說 x,y 是 1 到 20 之間的整數。
然後,我需要寫 400 個句子,例如
\newtheorem*{theorem1.1}{Theorem 1.1}.
編輯:我正在以乳膠形式列印一些舊書,它有自己的定理編號系統。為了遵循它,我想先驗地定義這樣的定理環境(例如使用循環語句)。有沒有一個好的方法來做到這一點?
先致謝!
答案1
使用不同的策略:
\newtheorem*{blurb}{Theorem \whatever}
\newcommand{\whatever}{}
\newenvironment{theorem}[1]
{\renewcommand\whatever{#1}\begin{blurb}}
{\end{blurb}}
所以你可以做
\begin{theorem}{3.25}
在你的文檔中。