Is it possible to avoid brackets surrounding the name of a theorem in the \listoftheorems from package thmtools? And if so, how do I do that?
Asked
Active
Viewed 926 times
1
1 Answers
0
You have to redefine the \thmtformatoptarg command.
Because the thmtools kept ignoring my redefinitions, I copied the thm-listof.sty file to the current directory. I changed
\providecommand\thmtformatoptarg[1]{ (#1)}
into
\providecommand\thmtformatoptarg[1]{#1}
to remove the parentheses around the theorem's name.
If you additionally want to remove 'Theorem' (or whatever) from your list of theorems, you could change the definition of \thmt@mklistcmd and remove \thmt@thmname from the definition.
timothymctim
- 422
-
1Changing style files is not recommended. Better adding
\renewcommand{\thmtformatoptarg[1]{ #1}to the document preamble. – egreg Sep 29 '15 at 21:22
\listoftheoremsdoes this by default. – egreg Mar 30 '14 at 16:12[name=part. In fact, this question is the leftover of http://tex.stackexchange.com/questions/167593/special-theorem-command/168535#168535 after a bit of research and a few other questions. – MickG Mar 30 '14 at 17:51thmtoolsdocumentation and in particular at its implementation. The problem lies in the\thmtformatoptargcommand, defined with them. It appears that the only solution is manually.redefining that command or changing thethmtoolspackage. – MickG Mar 30 '14 at 18:52