![可重述非嵌套子定理](https://linux22.com/image/286519/%E5%8F%AF%E9%87%8D%E8%BF%B0%E9%9D%9E%E5%B5%8C%E5%A5%97%E5%AD%90%E5%AE%9A%E7%90%86.png)
我想创建可重述子定理而不进行嵌套。我正在使用包thmtools
和thm-restate
。
所谓非嵌套子定理,是指与我们用于章节和小节的结构类似的结构:章节不包含其段落和小节,但从概念上讲,它们都是章节的子项。在我的 MWE 中,我想创建一个可重述定理(编号 1),后跟一段普通的文本。然后,我想添加一些子定理(编号为 1.x),每个子定理后跟一段文本。
AFAIK这个答案不适用于可恢复状态,并且thmtools 文档也不要提这样的事。
\documentclass[a4paper]{article}
\usepackage{thmtools,thm-restate}
\newtheorem{goal}{Learning Goal}
\begin{document}
\section{Numbers}
We want to learn about numbers.
\subsection{Small Numbers}
Let's start with small numbers.
\begin{restatable}{goal}{gI}
Count to 3.
\end{restatable}
Counting to 3 is the most essential skill in the `small number department'.
We will master this skill in a number of steps which are described below.
%This should be sub-goal 1.1
\begin{restatable}{goal}{gI_i}
The number 1.
\end{restatable}
We will ask Elmo to tell us about the number 1.
%This should be sub-goal 1.2
\begin{restatable}{goal}{gI_ii}
The number 2.
\end{restatable}
This one will be taken care of by Cookie Monster.
%This should be sub-goal 1.3
\begin{restatable}{goal}{gI_iii}
The number 3.
\end{restatable}
This is the toughest one so far.
We will have to rely on the Count to explain all about this number.
\section{Letters}
\ldots
\end{document}
答案1
这样的东西能行得通吗?它只是使用了 提供的功能thmtools
,这似乎与 相同thm-restate
。(我对此不确定,但对于您的示例来说,后者的添加似乎没有必要。)
\documentclass[a4paper]{article}
\usepackage{thmtools}
\declaretheorem[name=Learning Goal]{goal}
\declaretheorem[
name=Learning Goal,
parent=goal]
{subgoal}
\begin{document}
\section{Numbers}
We want to learn about numbers.
\subsection{Small Numbers}
Let's start with small numbers.
\begin{restatable}{goal}{gI}
Count to 3.
\end{restatable}
Counting to 3 is the most essential skill in the `small number department'.
We will master this skill in a number of steps which are described below.
%This should be sub-goal 1.1
\begin{restatable}{subgoal}{gI_i}
The number 1.
\end{restatable}
We will ask Elmo to tell us about the number 1.
%This should be sub-goal 1.2
\begin{restatable}{subgoal}{gI_ii}
The number 2.
\end{restatable}
This one will be taken care of by Cookie Monster.
%This should be sub-goal 1.3
\begin{restatable}{subgoal}{gI_iii}
The number 3.
\end{restatable}
This is the toughest one so far.
We will have to rely on the Count to explain all about this number.
\section{Letters}
\ldots
\end{document}