具有不同標題的多個定理列表(任何 TeX,在我的例子中是 XeLaTeX)

具有不同標題的多個定理列表(任何 TeX,在我的例子中是 XeLaTeX)

我已經找到瞭如何使用該thmtools套件來列出定理列表。我對此的問題是:

  1. \renewcommand{\listoftheoremname}{...}如果出現錯誤,如何更改標題LaTeX error: \listoftheoremname undefined
  2. 如何製作具有不同標題的不同類型定理的多個清單?
  3. 在(xxx 是定理的標題,...出現在清單中的標籤,yyy 定理類型)[name=xxx,label=thm:...]之後加上標記定理。\begin{yyy}如果我嘗試將超出上標和下標(目前我只嘗試過\mathbb)的任何數學內容放入標籤中,我會收到missing \endcsname inserted與 .aux 檔案行相關的錯誤。我該如何解決這個問題?微量元素:

    \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}  
    

這使:
TeXShop 控制台中的錯誤訊息。透過在標籤中
放置 a 也會得到相同的錯誤。\ref事實上,\mathbb在這些 [] 中的任何地方都會出現問題,就像試圖將 $(0,1)$ 放在那裡一樣,因為有逗號。

  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}

在此輸入影像描述

相關內容