Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

EDIT: It was simply a matter of outdated package versions. On a mac there are those useful commands sudo tlmgr update –self and after that sudo tlmgr update –all.

The following throws the error "undefined control sequence", but when I switch to \tcbmaketheorem instead it works. Whats the matter?

\documentclass{article}

\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{lmodern}
\usepackage[ngerman]{babel}
\usepackage{amsmath}

\usepackage[theorems]{tcolorbox}

%\tcbmaketheorem{mytheo}{My Theorem}{colback=green!5,colframe=green!35!black,fonttitle=\bfseries}{th}

\newtcbtheorem{mytheo}{My Theorem}{colback=green!5,colframe=green!35!black,fonttitle=\bfseries}{th}

\begin{document}

\begin{mytheo}{}{}
Great theorem with beautiful box.
\end{mytheo}

\end{document}
share|improve this question
2  
Your example compiles without error for me. My guess is that you work with an old version of tcolorbox. The current version is 2.51 (2013/09/16). You should check your logfile for your version, i.e. a line like Package: tcolorbox 2013/09/16 version 2.51 text color boxes for the current version. –  Thomas F. Sturm Nov 21 '13 at 13:04
    
Welcome to TeX.SX! –  Claudio Fiandrino Nov 21 '13 at 13:08
2  
This question appears to be off-topic because it is about a outdated TeX Live version. –  Marco Daniel Nov 23 '13 at 17:52
add comment

closed as off-topic by Marco Daniel, diabonas, Stefan Kottwitz Nov 23 '13 at 18:39

  • This question does not fall within the scope of TeX, LaTeX or related typesetting systems as defined in the help center.
If this question can be reworded to fit the rules in the help center, please edit the question.

Browse other questions tagged or ask your own question.