diff options
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, |
