我对乳胶的编号有问题。我想从标题和内容中删除节号,但我希望这些数字存在于引理、定理等中。我希望它看起来像:
Section Whatever
Some unimportant text.
Section Whatever else
Another unimportant text.
Lemma 2.1
Theorem 2.2
Section Whatever again
Theorem 3.1我该怎么做呢?我试过了
\renewcommand\thesection{}但它甚至从引理和定理中删除了这些数字。(非常感谢:)
发布于 2016-07-10 15:57:54
在默认的article类下,我们只需通过添加
\makeatletter
\renewcommand{\@seccntformat}[1]{}
\makeatother序言部分。这将删除所有分区标题编号(\sections、\subsections、\subsubsections、.),但将它们保留在引用的位置或使用\thesection时。

\documentclass{article}
\newtheorem{theorem}{Theorem}[section]% Theorems numbered by section
\newtheorem{lemma}[theorem]{Lemma}% Lemma uses theorem's counter
\makeatletter
\renewcommand{\@seccntformat}[1]{}
\makeatother
\begin{document}
\section{Section whatever}
Some uninportant text.
\section{Section whatever else}
Another uninportant text.
\begin{lemma}
Some lemma.
\end{lemma}
\begin{theorem}
Some theorem.
\end{theorem}
\section{Section whatever again}
\begin{theorem}
Another theorem.
\end{theorem}
\end{document}https://stackoverflow.com/questions/38292590
复制相似问题