TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I updated my TeXLive yesterday and thmtools is being problematic...

Running pdflatex on the following minimal example


is resulting in

Document Class: article 2007/10/19 v1.4h Standard LaTeX document class

! LaTeX Error: Missing \begin{document}.

See the LaTeX manual or LaTeX Companion for explanation.
Type  H <return>  for immediate help.

l.277     \ifthmt@isnumbered\else *

The particular file where this happens, tex/latex/thmtools/thm-kv.sty, has not changed (and I had no problem with the package a couple of days ago!), so something else is causing the error. I have no idea how to chase it, though.


share|improve this question
I can be of no more help than to say that I can reproduce the problem with updated TeX Live in Ubuntu. – rvf0068 May 4 '12 at 2:34
I run MacTeX2011, and I can confirm that I can't compile your MWE either since running the latest package update, during which the entire oberdiek suite of packages was updated. Running tlmgr restore to revert to the previous version of the oberdiek suite restores the ability to compile your MWE. This strongly suggests that one or more of the packages of the oberdiek suite are causing the problem you're encountering. Judging from the .log file, the list of "suspect" packages comprises kvsetkeys, infwarerr, and etexcmds. – Mico May 4 '12 at 2:34
I'll take a look this evening. I've had advance warning that a new release of kvsetkeys would break thmtools (yet again), apparently that has been released now. Until then, the workaround is to revert to the previous version of kvsetkeys. – Ulrich Schwarz May 4 '12 at 4:08
up vote 4 down vote accepted

Should be fixed in v63 available here. Unless something major crops up, this version will go to CTAN early next week. (Testrunning it is much appreciated.)

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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