Commit 4603b6fe authored by liziwl's avatar liziwl
Browse files

修复 minted 编号

parent f72b85ef
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -5763,6 +5763,7 @@ Thesis for the degree of \degree@level@en@noun \ of \thu@degree@domain@en%
%    \begin{macrocode}
\AtEndOfPackageFile*{minted}{
  \AtBeginDocument{
    \counterwithin*{listing}{section}
    \renewcommand*{\thelisting}{\thechapter-\arabic{listing}}
  }% 不知道为啥下面这行不起作用,改用此种注入。
  %\g@addto@macro\appendix{\renewcommand*{\thelisting}{\thechapter-\arabic{listing}}}%