-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathboxes.sty
More file actions
44 lines (37 loc) · 1.02 KB
/
boxes.sty
File metadata and controls
44 lines (37 loc) · 1.02 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
\usepackage[most]{tcolorbox}
\usepackage{tikz}
%%%%%%
%%%%%% Box with Title
%%%%%%
% Width, ID, Title, Content
\newcommand{\boxwithtitle}[4]{
\begin{tcolorbox}[
nobeforeafter,
width=#1,
remember as=#2,
colback={gray!10},
colbacktitle=gray!80,
title={\textbf{#3}},
enhanced]
#4
\end{tcolorbox}
}
%%%%%%
%%%%%% Terminalbox
%%%%%%
% Width, ID, Title, Content
\newcommand{\terminalbox}[2]{
\begin{tcolorbox}[
width=\textwidth,
colback={gray!40},
colbacktitle=black!80,
title={
\textbf{#1}
\hfill
\tikz\draw[red, fill=mygreen, draw=none] (0,0) circle (5pt);
\tikz\draw[red, fill=myyellow, draw=none] (0,0) circle (5pt);
\tikz\draw[red, fill=myred, draw=none] (0,0) circle (5pt);
}]
#2
\end{tcolorbox}
}