TexStudio章节号定理号设定问题
如果想让章节号是罗马数字,则在\section{} 前一行加
\renewcommand\thesection{\Roman{section}}
或者写在开头环境搭建里
但若是想在章节号是罗马数字的前提下,让定理形如Theorem 1.1 , 1.2 , 2.3 , 2.4
又要跟着章节序号定,又要与引理定理统一
则在文章开头设定如下
\begin{document}
\newtheorem{lemma}{Lemma}[section] %这是使用章节号
\newtheorem{theorem}[lemma]{Theorem}
\newtheorem{example}[lemma]{Example}
\newtheorem{definition}[lemma]{Definition}
\newtheorem{proposition}[lemma]{Proposition}
\newtheorem{conjecture}[lemma]{Conjecture}
\newtheorem{corollary}[lemma]{Corollary}
\newtheorem{remark}{Remark}
…
\end{document}
仅仅这样还是不够的,因为在用定理时,会生成
所以我们还要在
\begin{document}
\end{document}
中的
\section{}
后一行写一句
\renewcommand\thesection{\arabic{section}}
后面碰到第二个section时
我们有
\renewcommand\thesection{\Romen{section}}
\section{}
\renewcommand\thesection{\arabic{section}}
相当于,在开始每个section开始前我们设定它章节号为罗马数字
在开始后设定章节后为阿拉伯数字