diff --git a/main/style/common.tex b/main/style/common.tex index 7d18579..04eff35 100644 --- a/main/style/common.tex +++ b/main/style/common.tex @@ -36,6 +36,10 @@ overlay={\node[overlaystyle,draw=Peach!75!black,,fill=Peach!75!black] at (frame. overlay={\node[overlaystyle,draw=green!75!black,,fill=green!75!black] at (frame.north east) {\large \translate{Usage }{Nutzung }};},#1} +% Task +\newtcolorbox{task}[2][]{mainboxstyle,colback=gray!5!white,colframe=gray!75!black,colbacktitle=gray!75!black,title={\large #2},overlay={\node[overlaystyle,draw=gray!75!black,fill=gray!75!black] at (frame.north east) {\large \translate{Task}{Aufgabe}};},#1} + + % Proof \newtcolorbox{proof}[2][]{mainboxstyle,colback=magenta!5!white,colframe=magenta!75!black,colbacktitle=magenta!75!black,title={\large #2},overlay={\node[overlaystyle,draw=magenta!75!black,fill=magenta!75!black] at (frame.north east) {\large \translate{Proof}{Beweis}};},#1} diff --git a/vscode-snippets/tex.json b/vscode-snippets/tex.json index 47ce6df..b4aeb28 100755 --- a/vscode-snippets/tex.json +++ b/vscode-snippets/tex.json @@ -177,15 +177,24 @@ ], "description": "Inserts a tcolorbox to show notation" }, - "Example": { - "prefix": "example", - "body": [ - "\\begin{example}[]{$1}", - "\t$2", - "\\end{example}" - ], - "description": "Inserts a tcolorbox to show example" - }, + "Example": { + "prefix": "example", + "body": [ + "\\begin{example}[]{$1}", + "\t$2", + "\\end{example}" + ], + "description": "Inserts a tcolorbox to show example" + }, + "Task": { + "prefix": "task", + "body": [ + "\\begin{task}[]{$1}", + "\t$2", + "\\end{task}" + ], + "description": "Inserts a tcolorbox to show example" + }, "Usage": { "prefix": "usage", "body": [