Skip to content

Commit 27a4c32

Browse files
committed
Add a goodpractice box.
Usage: \begin{goodpractice}{<Title>} <body> \end{goodpractice} This creates a box titled "Good practice: <Title>", so <Title> could be - Pass by reference - Use of locks etc.
1 parent 2ce9494 commit 27a4c32

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

talk/setup.tex

+11
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,9 @@
3131
\end{beamercolorbox}%
3232
}
3333

34+
\setbeamercolor{goodpractice head}{fg=white,bg=orange!85!black}
35+
\setbeamercolor{goodpractice body}{fg=black,bg=orange!25}
36+
3437
%%%%%%%%%%%%
3538
% packages %
3639
%%%%%%%%%%%%
@@ -84,6 +87,14 @@
8487
\newcommand{\deprecated}{\textcolor{red}{\bf Deprecated}}
8588
\newcommand{\removed}{\textcolor{red}{\bf Removed}}
8689

90+
\newenvironment{goodpractice}[1]
91+
{%
92+
\begin{beamerboxesrounded}[upper=goodpractice head,lower=goodpractice body,shadow=true]{Good practice: #1}
93+
}%
94+
{%
95+
\end{beamerboxesrounded}
96+
}
97+
8798
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
8899
% frametitle with C++ version %
89100
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

0 commit comments

Comments
 (0)