initial commit
This commit is contained in:
50
Rapport/packages/sleek-boxes.sty
Normal file
50
Rapport/packages/sleek-boxes.sty
Normal file
@@ -0,0 +1,50 @@
|
||||
\ProvidesPackage{packages/sleek-boxes}[2025/01/16 v1.2.1 Sleek Boxes]
|
||||
|
||||
%%%%%%%%%%%%
|
||||
% Settings %
|
||||
%%%%%%%%%%%%
|
||||
|
||||
\RequirePackage{framed}
|
||||
|
||||
%%%%%%%%%%
|
||||
% Styles %
|
||||
%%%%%%%%%%
|
||||
|
||||
\definecolor{bgtitle}{RGB}{85,85,85}
|
||||
\definecolor{bgbox}{RGB}{232,232,232}
|
||||
\definecolor{shadecolor}{RGB}{232,232,232}
|
||||
|
||||
%%%%%%%%%%%%
|
||||
% w/ title %
|
||||
%%%%%%%%%%%%
|
||||
|
||||
\newcommand*{\titlebox}[2]{
|
||||
\begin{center}
|
||||
\begin{tikzpicture}%
|
||||
\node[rectangle,draw=bgtitle!100,fill=bgbox!100,inner sep=10pt, inner ysep=20pt] (box)
|
||||
{
|
||||
\begin{minipage}{12cm}
|
||||
#2
|
||||
\end{minipage}
|
||||
};
|
||||
\node[fill=bgtitle!100, text=white, rectangle] at (box.north)
|
||||
{
|
||||
\sffamily\textbf{#1}
|
||||
};
|
||||
\end{tikzpicture}
|
||||
\end{center}
|
||||
}
|
||||
|
||||
%%%%%%%%%%%%%
|
||||
% w/o title %
|
||||
%%%%%%%%%%%%%
|
||||
|
||||
\newcommand*{\simplebox}[1]{%
|
||||
\begin{center}
|
||||
\begin{minipage}{12cm}
|
||||
\begin{shaded}
|
||||
#1
|
||||
\end{shaded}
|
||||
\end{minipage}
|
||||
\end{center}
|
||||
}
|
||||
Reference in New Issue
Block a user