作者killyou (xxx)
看板LaTeX
标题Re: [问题] 定理,引理等连续编码问题
时间Fri Jul 16 13:34:14 2010
※ 引述《PanJC ((#‵Д′)f〒﹌﹌﹌﹌﹌ꄩ》之铭言:
: 请问各位板友, 我的文章定理及引理等都是分开计数, 如
: Lemma 1 .......
: Theorem 1 .......
: Corollary 1 ......
: 请问我应该要改变什麽设定才能连续计数, 如
: Lemma 1 ....
: Theorem 2 .....
: Corollary 3 .....
: 谢谢
\newtheorem{theorem}{Theorem}[section] %在Section n 就会 n.1,n.2,..
or
\newtheorem{theorem}{Theorem} %没写就全部 1,2,...
\newtheorem{cor}[theorem]{Corollary} %要有宣告theorem环境才行
\newtheorem{lem}[theorem]{Lemma} %这样就会跟着theorem编号
\newtheorem{alg}{Algorithm} %不想跟着编就这样
--
贴完发现/ theorem 就有...
--
※ 发信站: 批踢踢实业坊(ptt.cc)
◆ From: 114.39.150.237
※ 编辑: killyou 来自: 114.39.150.237 (07/16 13:37)
1F:推 PanJC:谢谢, definition 环境可以吗? 不太喜欢斜体... 07/16 16:04
2F:→ killyou:\newtheorem{defn}{Definition} %def好像会冲到原有的 07/16 18:58
3F:→ killyou:如果要用又不要斜体:\begin{defn}{\rm 内文}\end{defn} 07/16 19:20
4F:推 PanJC:多谢! 07/16 19:31