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?

4
  • 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 plain-tex and context for other formats.
    – Joseph Wright
    Mar 30, 2014 at 16:01
  • An example? I don't think \listoftheorems does this by default.
    – egreg
    Mar 30, 2014 at 16:12
  • It does @egreg, but only around the [name= part. In fact, this question is the leftover of tex.stackexchange.com/questions/167593/special-theorem-command/… after a bit of research and a few other questions.
    – MickG
    Mar 30, 2014 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, 2014 at 18:52

1 Answer 1

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
  • 1
    Changing style files is not recommended. Better adding \renewcommand{\thmtformatoptarg[1]{ #1} to the document preamble.
    – egreg
    Sep 29, 2015 at 21:22

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.