2

I am using the minimal example provided by many users, to import the tcolorbox package:

\documentclass{article}
\usepackage[all]{tcolorbox}

\begin{document}
Hello 
\end{document}

Couldn't be any simpler, really. But I am getting the error:

Undefined control sequence: \ExplSyntaxOn
Undefined control sequence: \ExplSyntaxOff

when compiling with pdfLatex. I am using latest versions of everything. My IDE is TexStudio.

What's wrong with this?

1
  • the library option all is adding minted for which shell escape options are required which may not be enabled in the editor -- using most library will overcome this -- see page 11 of the documentation
    – js bibra
    Mar 25, 2021 at 14:34

2 Answers 2

2

Most likely you have an older LaTeX that does not pre-load expl3. So you need

\usepackage{expl3}

before

\usepackage{tcolorbox}
1
  • Great that worked, thanks! And indeed, my latex installation was old. I did not realize this.
    – Klangen
    Mar 26, 2021 at 8:54
-2

enter image description here

\documentclass{article}
\usepackage[most]{tcolorbox}

\begin{document}
    Hello 
\end{document}

OR

\documentclass{article}
\usepackage[most]{tcolorbox}

\begin{document}
\begin{tcolorbox}
    This is a \textbf{tcolorbox}.
\end{tcolorbox}
\end{document}

enter image description here

2
  • Same issue, same errors
    – Klangen
    Mar 25, 2021 at 14:27
  • no problem --go with the answer by @JosephWright
    – js bibra
    Mar 25, 2021 at 14:38

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .