For some reason, my new TeX-Studio (TeXstudio 2.11.2, running on Ubuntu 16.04) does not recognize theorem environments defined by \declaretheorem. MWE:


The code compiles properly, but the editor marks begin and end as "unrecognized command":

enter image description here

Even more annoying: when typing \begin{, it does not allow to complete corollary as a valid environment. It does allow it for theorems, however:

enter image description here

In the configuration, the completion tab, both amsthm.cwl and thmtools.cwl are checked. I also wish to add that on my previous computer (running Ubuntu 14.04), it worked as expected.

Anything else that I am missing, or that might be wrong in my configuration?

Your Answer

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

Browse other questions tagged or ask your own question.