aboutsummaryrefslogtreecommitdiff
path: root/dissertation.cls
diff options
context:
space:
mode:
authorBlaise Thompson <blaise@untzag.com>2018-03-24 13:48:26 -0500
committerBlaise Thompson <blaise@untzag.com>2018-03-24 13:48:26 -0500
commit7d602505a8b84d6c3743dd3cc0c9ac0a421f07b2 (patch)
tree24814ac13250f8ef0837d75e9488c889ad386c82 /dissertation.cls
parentc87c0a95649ed795ae15f343b5a7ce98645e4dc5 (diff)
2018-03-24 13:48
Diffstat (limited to 'dissertation.cls')
-rw-r--r--dissertation.cls7
1 files changed, 4 insertions, 3 deletions
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,