Just updated to the 20 December build of the Oberdiek package, on my TeXLive installation. Files that compiled without problems are now throwing the following error:

./Preamble.tex:78: Undefined control sequence.
\kv@processor@default ...lt {#1}{\etex@unexpanded 

which appears when I use \declaretheoremstyle of the thmtools package. The packages kvdefinekeys and kvsetkeys are installed and working well.

Does anybody know an explanation and a workaround?

Here is a compilable example


  • Can you please show a compilable example? – Phelype Oleinik Dec 21 '19 at 11:43
  • @PhelypeOleinik Done. – brunoh Dec 21 '19 at 11:50
  • As a workaround, you can load \usepackage{etexcmds}... – Phelype Oleinik Dec 21 '19 at 11:53
  • @PhelypeOleinik well, it does work know. Thank you very much for your perfect reactivity & suggestion. Can you please post your comment as an answer that I can accept? – brunoh Dec 21 '19 at 11:56
  • @PhelypeOleinik and if you have one minute, can you also explain to me a bit what happened? – brunoh Dec 21 '19 at 11:57

As part of The Big Oberdiek Split™, the kvsetkeys package (loaded by thmtools) was removed from the Oberdiek bundle, and the etexcmds package was removed from kvsetkeys (probably because its usefulness is debatable) in this commit, so thmtools, which relied on kvsetkeys loading etextools now breaks. That is one of the reasons why relying on a package loading another package is a bad idea: if you need the package, load it.

That said, as a workaround until thmtools is fixed, you can load etexcmds manually.


I uploaded a fixed version to CTAN that takes the dependency out, but it will take a couple of days to arrive.

I don't consider myself the maintainer of the package though ... so anyone really interested in this package please consider taking on the maintenance. I'm already doing support for too many packages that aren't mine.

  • Thanks for fixing :-) – Phelype Oleinik Dec 23 '19 at 14:43
  • 1
    Xmas present :-) ... well asuming I made no mistake – Frank Mittelbach Dec 24 '19 at 11:20
  • @FrankMittelbach thanks for your present! everything works fine again for me as before, without using the etxcmds package – brunoh Dec 26 '19 at 13:09
  • @brunoh welcome --- appreciation and sponsoring of LaTeX development and maintenance is possible :-) – Frank Mittelbach Dec 26 '19 at 23:56
  • Using TL utility I wasn't able to get the (strongly) needed files up to know. At which repository are they available? Thanks in advance. – Michael Hoppe Jan 1 at 20:00

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.