From 7d602505a8b84d6c3743dd3cc0c9ac0a421f07b2 Mon Sep 17 00:00:00 2001 From: Blaise Thompson Date: Sat, 24 Mar 2018 13:48:26 -0500 Subject: 2018-03-24 13:48 --- dissertation.cls | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'dissertation.cls') diff --git a/dissertation.cls b/dissertation.cls index 3769526..6397be2 100644 --- a/dissertation.cls +++ b/dissertation.cls @@ -93,15 +93,16 @@ \RequirePackage[many]{tcolorbox} \tcbuselibrary{minted} -\NewTCBListing{codefragment}{mo}{% +%\tcbset{step={\refstepcounter{equation}}} + +\NewTCBListing[number within=chapter, auto counter]{codefragment}{mo}{% colback=bg, boxrule=1pt, colframe=bg, arc=0, shadow=false, + use counter=equation, boxsep=1ex, top=0pt, left=0pt, right=0pt, bottom=0pt, - title={\hfill(\arabic{chapter}.\arabic{equation})}, - list entry={\hfill(\arabic{chapter}.\arabic{equation})}, comment={\hfill(\arabic{chapter}.\arabic{equation})}, listing outside comment, righthand width=2.5em, -- cgit v1.2.3