summaryrefslogtreecommitdiff
path: root/thesis.tex
diff options
context:
space:
mode:
Diffstat (limited to 'thesis.tex')
-rw-r--r--thesis.tex2
1 files changed, 2 insertions, 0 deletions
diff --git a/thesis.tex b/thesis.tex
index 722fb9a..3856d73 100644
--- a/thesis.tex
+++ b/thesis.tex
@@ -52,6 +52,8 @@
\newcommand{\Fault}[1]{\texttt{\#}#1}
\newcommand{\Todo}{\textbf{TODO}}
\newcommand{\Fixme}{\textbf{FIXME}}
+\usepackage{caption}
+\newenvironment{code}{\captionsetup{type=listing}}{}
\begin{document}
% 以下为正文之前的部分,默认不进行章节编号。