我在LaTeX中有一个关于定理编号的问题。它将第一节中的定理1编号为定理11,而不是定理1.1。
我该如何让它工作呢?
发布于 2009-09-27 20:22:10
如果您使用的是AMS-LaTeX包中的定理环境,那么将以下代码放入文档的前言中应该是可行的:
\usepackage{amsthm}
\newtheorem{theorem}{Theorem}[section]
\renewcommand{\thetheorem}{\arabic{section}.\arabic{theorem}}下面是一个示例文档及其输出:
\documentclass{article}
\usepackage{amsthm}
\newtheorem{theorem}{Theorem}[section]
\renewcommand{\thetheorem}{\arabic{section}.\arabic{theorem}}
\begin{document}
\section{Lorem}
\begin{theorem}
Ipsum
\end{theorem}
\end{document}Sample output http://img12.imageshack.us/img12/8938/theorem.png
https://stackoverflow.com/questions/1484346
复制相似问题