Skip to content

Commit bdca08c

Browse files
committed
Changed code for Definition environment. To be tested.
1 parent 342c52d commit bdca08c

1 file changed

Lines changed: 16 additions & 0 deletions

File tree

tex/slide.cls

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,22 @@
106106

107107
% Definition environment which matches the notes
108108
\RequirePackage{tcolorbox}
109+
% Create a TColorBox for the definition.
110+
% Uses its internal counter to count definitions.
111+
% Use as: \definition{Term}{Definition}
112+
% Check that it works for all slides (only tested on Deployment slides).
113+
%\newtcolorbox[auto counter]{defn}[2][]{%
114+
% squeezed title={\textbf{\textit{Definition~\thetcbcounter:} #1}},
115+
% colframe=blue!65!black,
116+
% colbacktitle=blue!40!black,
117+
% coltitle=white,
118+
% colback=blue!2!white,
119+
% coltext=black,
120+
% fontupper=#2 % Hack to insert second parameter into the text part of the box.
121+
% % See https://www.tug.org/docs/latex/tcolorbox/tcolorbox.pdf, page 36.
122+
%}
123+
% Previous approach to create an environment for the definition with its own counter.
124+
% Since LaTeX 2024, the counter remains at 0 for all definitions.
109125
\newcounter{definition}[part]
110126
\newenvironment{defn}[1][]
111127
{\refstepcounter{definition}

0 commit comments

Comments
 (0)