.png)
thmtools
パッケージを使用して定理のリストを作成する 方法を見つけました。これに関する私の質問は次のとおりです。
\renewcommand{\listoftheoremname}{...}
エラーが発生する場合、タイトルを変更するにはどうすればよいでしょうかLaTeX error: \listoftheoremname undefined
?- 異なるタイトルを持つ異なる種類の定理のリストを複数作成するにはどうすればよいですか?
(xxx は定理のタイトル、... はリストに表示されるラベル、yyy は定理の種類)の
[name=xxx,label=thm:...]
後にを追加すると、定理にラベルが付きます。上付き文字と下付き文字以外の数式をラベルに入力しようとすると(今のところ だけを試しました)、.aux ファイルの行に関連するエラーが発生します。どうすれば解決できますか? MWE:\begin{yyy}
\mathbb
missing \endcsname inserted
\documentclass[a4paper]{report} \usepackage{thmtools,amssymb} \declaretheorem[name=Definizione]{defi} \begin{document} \begin{defi}[name=$\mathbb R$,label=thm:$\mathbb R$definizione] Ah beh, s\`i beh. \end{defi} \listoftheorems \end{document}
結果は次のようになります
。ラベルに
を配置した場合も同じエラーが発生します\ref
。実際、 は、\mathbb
カンマがあるために、そこに $(0,1)$ を配置した場合と同じように、[] 内のどこでも問題が発生します。
- (4 であるべき) そして最後に、
[subsection]
番号付きの定理を使用しています。現在、リストでは、番号が定理の種類と重複しています (つまり、重複しています1.2.1.1
)Definizione (Spazio Metrico)
。どうすれば解決できますか?
答え1
これで開始できますが、明確な仕様がなければ、より正確にすることは困難です。
\documentclass{article}
\usepackage{amsthm,thmtools}
\declaretheorem{theorem}
\declaretheorem[style=definition]{definition}
\begin{document}
\renewcommand{\listtheoremname}{List of theorems}
\listoftheorems[ignoreall,show=theorem]
\renewcommand{\listtheoremname}{List of definitions}
\listoftheorems[ignoreall,show=definition]
\begin{theorem}[Sum]
$1+1=2$
\end{theorem}
\begin{definition}[Nice numbers]
A number is \emph{nice} if it looks beautiful.
\end{definition}
\begin{theorem}[About $C^{1}(0,1)$]
The set $C^{1}(0,1)$ is interesting.
\end{theorem}
\end{document}