2021-11-07

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开始前我们设定它章节号为罗马数字
在开始后设定章节后为阿拉伯数字

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值