From 6d48881dade0664953a2446075604124beef762a Mon Sep 17 00:00:00 2001 From: Janis Hutz Date: Wed, 4 Jun 2025 08:32:15 +0200 Subject: [PATCH] Add new simple tcolorbox --- main/style/common.tex | 3 +++ vscode-snippets/tex.json | 9 +++++++++ 2 files changed, 12 insertions(+) diff --git a/main/style/common.tex b/main/style/common.tex index 04eff35..93692bd 100644 --- a/main/style/common.tex +++ b/main/style/common.tex @@ -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} diff --git a/vscode-snippets/tex.json b/vscode-snippets/tex.json index b4aeb28..cbd346f 100755 --- a/vscode-snippets/tex.json +++ b/vscode-snippets/tex.json @@ -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": [