首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >删除段号胶乳

删除段号胶乳
EN

Stack Overflow用户
提问于 2016-07-10 13:50:44
回答 1查看 15.9K关注 0票数 11

我对乳胶的编号有问题。我想从标题和内容中删除节号,但我希望这些数字存在于引理、定理等中。我希望它看起来像:

代码语言:javascript
复制
 Section Whatever
   Some unimportant text.

 Section Whatever else
   Another unimportant text.
   Lemma 2.1
   Theorem 2.2 

 Section Whatever again
   Theorem 3.1

我该怎么做呢?我试过了

代码语言:javascript
复制
 \renewcommand\thesection{}

但它甚至从引理和定理中删除了这些数字。(非常感谢:)

EN

回答 1

Stack Overflow用户

发布于 2016-07-10 15:57:54

在默认的article类下,我们只需通过添加

代码语言:javascript
复制
\makeatletter
\renewcommand{\@seccntformat}[1]{}
\makeatother

序言部分。这将删除所有分区标题编号(\sections、\subsections、\subsubsections、.),但将它们保留在引用的位置或使用\thesection时。

代码语言:javascript
复制
\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}
票数 20
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/38292590

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档