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

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

问题描述

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

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

定理 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

我用


ewtheorem{thm}{Theorem}[subsection]

用于编号.

推荐答案

把下面的代码放在前言里好像有预期的效果:

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

usepackage{amsthm}

ewtheorem{thm}{Theorem}[subsection]

enewcommand{	hethm}{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天全站免登陆