tcolorboxOur visual WYSIWYG editor generates tcolorbox code in real time. Ready presets (theorem, definition, example, info, warning), color picker, title, content, shadows — all clicks. Compile the PDF directly.
tcolorbox package is powerful but has 200 optionsTo frame a theorem, definition, or note in a LaTeX document, tcolorbox is the reference — but its documentation is 500 pages. Three frictions show up every time:
colback, colframe, coltitle, arc, boxrule, drop shadow, enhanced… For a simple colored frame, you read the docs for half an hour.
Try a slightly paler background, a bigger title, a dashed border: each attempt = recompile. And the result is never what you imagined first try.
When you have 4 types of callouts (blue theorem, green definition, gray example, red warning), keeping a consistent visual style across the whole document is tedious.
Our box editor starts from visual presets (theorem, definition, example, info, warning), you customize with the mouse, and the tcolorbox code is generated and copyable.
Theorem, definition, example, remark, info, warning — pick the tone, tweak colors if needed. No need to know tcolorbox syntax.
Color picker (RGB, named colors, hex). Editable title. Border: thickness, style (line, dashed). Rounded corners. Drop shadow. All clicks.
tcolorbox codeGenerated code includes the \tcbset customization and the environment to paste. Clean definition via \newtcolorbox for reuse across your document.
Theorem, definition, example, info, warning — or fully custom.
Background color, border color, title, content, rounded corners, drop shadow, icon.
Copy packages + \newtcolorbox definition + usage. Compile the PDF directly or save to your drive.
\newtcolorbox{theoreme}[2][]{enhanced,colback=blue!5,colframe=blue!75,
fonttitle=\bfseries,title=Théorème~#2,#1}
\begin{theoreme}{Pythagore}
Dans un triangle rectangle, le carré de l'hypoténuse est égal à la somme des carrés des deux autres côtés.
\end{theoreme}
\newtcolorbox{definition}[2][]{enhanced,colback=green!5,colframe=green!60!black,
fonttitle=\bfseries,title=Définition~#2,#1}
\begin{definition}{Fonction}
Une fonction associe à chaque élément d'un ensemble $E$ un unique élément d'un ensemble $F$.
\end{definition}
\newtcolorbox{infobox}{enhanced,colback=cyan!5,colframe=cyan!60,
fonttitle=\bfseries,title=\textcolor{cyan!60}{\faInfoCircle}\ Information}
\begin{infobox}
Le package \texttt{tcolorbox} doit être chargé avec \texttt{[most]} pour activer toutes les options.
\end{infobox}
\newtcolorbox{warning}{enhanced,colback=red!5,colframe=red!75!black,
fonttitle=\bfseries,title=\faExclamationTriangle\ Attention,drop fuzzy shadow}
\begin{warning}
La division par zéro n'est pas définie dans l'ensemble des nombres réels.
\end{warning}
| By hand | With Sarmate.net | |
|---|---|---|
| Time for a custom box | 15 to 20 min (reading docs) | Under a minute |
tcolorbox knowledge | Required | None |
| Color choice | Trial and error (compile+look) | Visual picker |
| Multi-box consistency | Manual | Generated \newtcolorbox |
| Visual preview | Recompile every time | Real-time |
| Ready-to-use presets | Write your own | 5+ built-in presets |
tcolorbox, today the de facto standard for theorem/definition/callout in publications.tcolorbox and mdframed?+
tcolorbox is recommended.\newtcolorbox{theorem}[2][]{enhanced, colback=blue!5, colframe=blue!75, fonttitle=\bfseries, title=Theorem~\thethm: #2, #1}, then use it as \begin{theorem}{Pythagoras}…\end{theorem}. Our editor auto-generates this definition for you, ready to paste in your preamble.breakable option to the environment: \begin{tcolorbox}[breakable, …]. Without this option, tcolorbox can't split the box on a page break (and overflows). Our editor exposes a dedicated checkbox.fontawesome5 and use \faExclamationTriangle, or include an image. tcolorbox supports a drop fuzzy shadow southeast option for relief. Our editor offers the most common fontawesome presets in a selector.tcolorbox docs?Open the editor in one click. No signup for the demo. Ready-to-paste tcolorbox code.