再述可能なネストされていない部分定理

再述可能なネストされていない部分定理

ネストせずに再述可能なサブ定理を作成したいと考えています。パッケージthmtoolsとを使用していますthm-restate

ネストされていないサブ定理とは、セクションやサブセクションに使用する構造に似た構造を意味します。セクションは段落やサブセクションを囲みませんが、概念的にはすべてセクションの子です。私の MWE では、再述可能な定理 (番号 1) を作成し、その後に通常の段落のテキストを作成します。次に、いくつかのサブ定理 (番号 1.x) を追加し、それぞれのサブ定理の後にテキストを追加します。

私の知る限りこの答え再ステータス可能では機能せず、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}

目標とサブ目標

関連情報