Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 377247 - thmtools from dev-texlive/texlive-latexextra-2011: Use of \@@reallyparse doesn't match its definition.
Summary: thmtools from dev-texlive/texlive-latexextra-2011: Use of \@@reallyparse does...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Alexis Ballier
URL: http://absatzen.de/thmtools.html
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-08-01 09:32 UTC by Martin von Gagern
Modified: 2011-11-30 14:14 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
Example latex source file (test.tex,219 bytes, text/plain)
2011-08-01 09:32 UTC, Martin von Gagern
Details
Diff between bad and good run (tt2.log.diff,263.81 KB, patch)
2011-08-01 16:09 UTC, Martin von Gagern
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Martin von Gagern 2011-08-01 09:32:09 UTC
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.
Comment 1 Martin von Gagern 2011-08-01 16:09:50 UTC
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.
Comment 2 Martin von Gagern 2011-08-01 18:45:12 UTC
(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.
Comment 3 Alexis Ballier gentoo-dev 2011-11-30 14:14:13 UTC
updated to v59 in texlive-latexextra-2011-r1, pulled from texlive's updates. this should fix the problems