1

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?

Yossi Gil
  • 15,951
MickG
  • 5,426
  • 2
    I've already edited this once, so won't again, but there is no need to have 'LaTeX' in the title here: the 'standing assumption' on the site is that we assume LaTeX without other evidence, and in any case have tags such as [tag:plain-tex] and [tag:context] for other formats. – Joseph Wright Mar 30 '14 at 16:01
  • An example? I don't think \listoftheorems does this by default. – egreg Mar 30 '14 at 16:12
  • It does @egreg, but only around the [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:51
  • I've taken a look at the thmtools documentation and in particular at its implementation. The problem lies in the \thmtformatoptarg command, defined with them. It appears that the only solution is manually.redefining that command or changing the thmtools package. – MickG Mar 30 '14 at 18:52

1 Answers1

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.

  • 1
    Changing style files is not recommended. Better adding \renewcommand{\thmtformatoptarg[1]{ #1} to the document preamble. – egreg Sep 29 '15 at 21:22