LaTeX中的定理编号 [英] Theorem numbering in LaTeX

查看:3174
本文介绍了LaTeX中的定理编号的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我对LaTeX中的定理编号有疑问.我可以按小节编号,例如

I have a problem with theorem numbering in LaTeX. I can make it number by subsection, e.g

定理1.2.1

Theorem 1.2.1

第一部分第二部分中的第一个定理.但我需要它来告诉我 仅是小节和定理的数字,而不是小节的数字,例如:

for the first theorem in the second subsection of the first section. But I need it to show me only the numbers of the subsection and the theorem, but not the section number, like this:

定理2.1

Theorem 2.1

我用

\newtheorem{thm}{Theorem}[subsection]

进行编号.

推荐答案

将以下代码放在序言中似乎具有预期的效果:

Putting the following code in the preamble seems to have the desired effect:

\usepackage{amsthm}
\newtheorem{thm}{Theorem}[subsection]
\renewcommand{\thethm}{\arabic{subsection}.\arabic{thm}}

我不明白您为什么要使用这个特定的定理编号系统,但是代码可以满足您的要求:

I don't understand why you want this particular theorem numbering system, but the code does what you want:

这篇关于LaTeX中的定理编号的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆