我一直在使用以下
\newtheorem{myDefn}{Definition}[section]
\newtheorem{myTeor}{Theorem}[section]
\newtheorem{myCorl}{Corollary}[myTeor]
在对每个部分进行编号时,我发现该方案存在问题。
考虑以下情况。编号让我感到困惑,因为查找时它们不会遵循章节编号。例如,有人可能会认为Definition 1.1.3
与小节相关1.1.3
。此外,我可能会得到许多编号细分,例如Corollary 1.1.1.1
。
更希望能够使用一些文本来定义标识,使得环境更具适应性。
例如,输出为
Definition ID TITLE
Text
其中ID
某个标识符,而另一个则TITLE
是描述符。
例如,考虑
Definition GCHQ The Doughnut
其中,GCHQ
是标识符,The Doughnut
是标题。
请参阅下面我的分段问题的示例。
\documentclass[a4paper,12pt]{book}
\title{Sections and Chapters}
\author{Ramanujan}
\date{\today}
\begin{document}
\maketitle
\chapter {This is an introduction
to some topic}
\section{Some Section}
Some Text Here
\begin{mfDefn} This Definition
A \textit{prime number} is a natural number greater than 1 that has no
positive divisors other than 1 and itself.
\end{myDefn}
\begin{myDefn} That Definition
A \textit{prime number} is a natural number greater than 1 that has no
positive divisors other than 1 and itself.
\end{myDefn}
\subsection{Test}
\begin{myDefn} Another Definition
A \textit{prime number} is a natural number greater than 1 that has no
positive divisors other than 1 and itself.
\end{myDefn}
\begin{myTeor} This Theorem
A \textit{prime number} is a natural number greater than 1 that has no
positive divisors other than 1 and itself.
\end{myTeor}
\begin{myCorl} This Corollary
A \textit{prime number} is a natural number greater than 1 that has no
positive divisors other than 1 and itself.
\end{myCorl}
\end{document}