I've found out how to use the thmtools package to make lists of theorems. My questions on this are:
Adding
[name=xxx,label=thm:...]after\begin{yyy}(xxx is a title for the theorem, ... a label appearing in the list, yyy the theorem kind) labels a theorem. If I try to put any maths beyond superscript and subscript (for now I've only tried\mathbb) into a label, I get amissing \endcsname insertederror related to a line of the .aux files. 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}
which gives:
.
The same error is obtained by placing a \ref in a label. In fact, \mathbb gives problems anywhere in those [], just like a comma in the middle of a name or label, even within dollars to mark an interval like (0,1). How do I solve that?
- (should be 2) And finally, I'm using theorems with
[subsection]numbering. Now, in the list, the number overlaps the theorem kind (i.e. I get1.2.1.1overlappingDefinizione (Spazio Metrico)). How do I solve that?
label=<string>defines a string to be used for\ref; it shouldn't contain any command or special character. – egreg Dec 28 '13 at 12:01