Add new simple tcolorbox

This commit is contained in:
Janis Hutz 2025-06-04 08:32:15 +02:00
parent 2f14bb759d
commit 6d48881dad
2 changed files with 12 additions and 0 deletions

View File

@ -47,3 +47,6 @@ overlay={\node[overlaystyle,draw=green!75!black,,fill=green!75!black] at (frame.
% General
\newtcolorbox{general}[4][]{mainboxstyle,colback=#4!5!white,colframe=#4!75!black,colbacktitle=#4!75!black,title={\large #2},
overlay={\node[overlaystyle,draw=#4!75!black,,fill=#4!75!black] at (frame.north east) {\large #3};},#1}
% Simple
\newtcolorbox{simplebox}[2][]{colback=#2!5!white,colframe=#2!75!black,#1}

View File

@ -231,6 +231,15 @@
],
"description": "Inserts a tcolorbox for general purposes. First bracket is title, second one is second title, third one colour"
},
"Simple-Tcolorbox": {
"prefix": "simple-tcb",
"body": [
"\\begin{simplebox}[]{${1|red,green,blue,cyan,magenta,yellow,black,gray,white,darkgray,lightgray,brown,lime,olive,orange,pink,purple,teal,violet|}}",
"\t$2",
"\\end{simplebox}"
],
"description": "Inserts a simple tcolorbox. No title, first argument the colour colour"
},
"Derivative": {
"prefix": "derivative",
"body": [