Created attachment 281709 [details] Example latex source file If a theorem label does contain some font change command like \textsc, then thmtools will fail to parse it: ! Use of \@@reallyparse doesn't match its definition. \text@command #1->\def \reserved@a { #1}\ifx \reserved@a \@empty \let \check@... l.6 ...orem}[Some \textsc{Name} set in small caps] A diff tells me that thmtools from texlive 2011 is no different than it was in 2010, so some other part of (La)TeX must have changed in a not completely backwards-compatible fashion. There is a more recent version of thmtools on CTAN: http://ctan.org/tex-archive/macros/latex/exptl/thmtools However, it does not install out of the box due to the empty VERSION.tex file, and if I add a "\def\VERSION{stuff}" to that, it doesn't solve this issue either. According to http://ctan.org/pkg/thmtools the new version should probably be called "v59", in comparison to v50 included in texlive 2011.
Created attachment 281755 [details, diff] Diff between bad and good run OK, this issue is not specific to Gentoo, as I could reproduce it using MacTeX. I'll contact the upstream thmtools maintainer, Ulrich M. Schwarz. Adding "\tracingassigns=1\tracingall" I got a good idea as to where two runs differ, and finally narrowed this down to a single pair of incompatible packages: thm-kv 2010/08/09 v50 and kvsetkeys 2011/04/07 v1.13. Both LaTeX packages are part of the dev-texlive/texlive-latexextra-2011 Gentoo package. Using the kvsetkeys 2010/03/01 v1.9 package from texlive 2010 makes the example compile. I've attached a diff of two logs generated this way. They are from the version of thmtools currently available on CTAN, but using the texlive version instead doesn't change much. My best bet would be the number of arguments to the \kv@processor@default macro. In a working run, this macro takes 3 arguments, but in the broken run, it only expects two. Perhaps that somehow broke alignment between commands and their arguments. Not sure, though.
(In reply to comment #1) > I'll contact the upstream thmtools maintainer, Ulrich M. Schwarz. Upstream has a version 61 on his homepage http://absatzen.de/thmtools.html which I failed to find before. That version does work with TeXlive 2011, at least for the example attached in comment #0. So I suggest you include that version in the next revbumps of dev-texlive/texlive-latexextra-2011.
updated to v59 in texlive-latexextra-2011-r1, pulled from texlive's updates. this should fix the problems