diff options
author | Blaise Thompson <blaise@untzag.com> | 2018-03-24 13:48:26 -0500 |
---|---|---|
committer | Blaise Thompson <blaise@untzag.com> | 2018-03-24 13:48:26 -0500 |
commit | 7d602505a8b84d6c3743dd3cc0c9ac0a421f07b2 (patch) | |
tree | 24814ac13250f8ef0837d75e9488c889ad386c82 /dissertation.cls | |
parent | c87c0a95649ed795ae15f343b5a7ce98645e4dc5 (diff) |
2018-03-24 13:48
Diffstat (limited to 'dissertation.cls')
-rw-r--r-- | dissertation.cls | 7 |
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, |