Skip to content

Commit db96a33

Browse files
committed
Added codedefine block
1 parent 1cd436d commit db96a33

File tree

2 files changed

+28
-0
lines changed

2 files changed

+28
-0
lines changed

main.pdf

-426 Bytes
Binary file not shown.

notex.cls

+28
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,8 @@
8686
\definecolor{curiosityLINE}{HTML}{43a82e} % - 41b9e4
8787
\definecolor{curiosityTitleBG}{HTML}{c0f5b5} % - beedfe
8888

89+
\definecolor{manualBG}{HTML}{aeb0b9}
90+
8991
\definecolor{codeCOMMENT}{HTML}{649541} % 98C379
9092
\definecolor{codeSTRING}{HTML}{37864A} % 60A470
9193
\definecolor{codeKEY}{HTML}{C678DD}
@@ -105,6 +107,7 @@
105107

106108
\newcommand{\boxdesc}[1]{\fontsize{6.5}{6.5}\selectfont\textcolor{white}{\textsc{#1}}}
107109
\newcommand{\codetextstyle}{\ttfamily\linespread{1}\fontsize{10}{10}\selectfont}
110+
\newcommand{\manlower}{\tcblower\fontsize{9}{9}\selectfont}
108111

109112
% Counters
110113
\newcounter{examplecounter}
@@ -358,6 +361,31 @@
358361
},
359362
}
360363

364+
\newtcolorbox{codedefine}{
365+
colback=codeBG!15,
366+
colbacklower=manualBG,
367+
colframe=codeBG!90,
368+
enhanced,
369+
breakable,
370+
sidebyside,
371+
bicolor,
372+
righthand ratio=0.38,
373+
rounded corners=all,
374+
arc=1mm,
375+
toprule=4mm,
376+
enlarge top initially by=1mm,
377+
enlarge bottom by=0.5mm,
378+
skin first=enhanced,
379+
skin middle=enhanced,
380+
skin last=enhanced,
381+
overlay={
382+
\filldraw[OrangeRed] ([xshift=3mm, yshift=-2mm]frame.north west) circle (1mm);
383+
\filldraw[Dandelion] ([xshift=6mm, yshift=-2mm]frame.north west) circle (1mm);
384+
\filldraw[YellowGreen] ([xshift=9mm, yshift=-2mm]frame.north west) circle (1mm);
385+
\node[anchor=north] at ([yshift=0.1mm]frame.north) {\fontsize{8}{8}\selectfont\textcolor{white}{\texttt{Code Manual}}};
386+
},
387+
}
388+
361389

362390
% LSTListing Style
363391

0 commit comments

Comments
 (0)