.png)
Descubrí cómo usar el thmtools
paquete para hacer listas de teoremas. Mis preguntas sobre esto son:
- ¿Cómo cambio el título, dado que
\renewcommand{\listoftheoremname}{...}
daLaTeX error: \listoftheoremname undefined
error? - ¿Cómo hago varias listas de diferentes tipos de teoremas con diferentes títulos?
Agregar
[name=xxx,label=thm:...]
después\begin{yyy}
(xxx es el título del teorema, ... una etiqueta que aparece en la lista, yyy el tipo de teorema) etiqueta un teorema. Si intento poner cálculos más allá del superíndice y el subíndice (por ahora solo lo he intentado\mathbb
) en una etiqueta, aparece unmissing \endcsname inserted
error relacionado con una línea de los archivos .aux. ¿Cómo soluciono eso? MWE:\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}
lo que da:
.
El mismo error se obtiene colocando a \ref
en una etiqueta. De hecho, \mathbb
da problemas en cualquier parte de esos [], al igual que intentar poner $(0,1)$ allí, debido a esa coma.
- (debería ser 4) Y finalmente, estoy usando teoremas con
[subsection]
numeración. Ahora, en la lista, el número se superpone al tipo de teorema (es decir, aparece1.2.1.1
superposiciónDefinizione (Spazio Metrico)
). ¿Cómo soluciono eso?
Respuesta1
Esto podría ayudarle a empezar; pero sin un conjunto claro de especificaciones por su parte es difícil ser más preciso.
\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}