diff --git a/njuthesis.tex b/njuthesis.tex index 609b3f7248ebd0d7f7536555d8a745a8c7e2a4af..23a50938720f23bbc05fc36ddbd6bafe2af2ccda 100644 --- a/njuthesis.tex +++ b/njuthesis.tex @@ -89,7 +89,7 @@ 鍗楀ぇTex & Overleaf & 鉁� \\ \bottomrule \end{tabular} -\end{table}} +\end{table} \end{lstlisting} \section{鍥剧墖绀轰緥} diff --git a/profile/components.sty b/profile/components.sty index e9d29eba8c1261cd03d4c7af394d70764691d361..88d1588e4458e05720955a76347233c0fe1b259a 100644 --- a/profile/components.sty +++ b/profile/components.sty @@ -19,7 +19,7 @@ % 浠g爜鏍峰紡 \lstset{ - basicstyle=\ttfamily,% basic font + basicstyle=\ttfamily\linespread{1}\selectfont, keywordstyle=\bfseries,% use bold style for keywords commentstyle=\rmfamily\itshape,% use italic style for comments stringstyle=\ttfamily,% 瀛楃涓查鏍� @@ -34,7 +34,7 @@ breaklines=true, xleftmargin=2em,xrightmargin=2em,% set the width of the code environment } -\AtBeginEnvironment{lstlisting}{\linespread{1}\selectfont} % 璋冩暣浠g爜鐜琛岃窛 +% \AtBeginEnvironment{lstlisting}{\linespread{1}\selectfont} % 璋冩暣浠g爜鐜琛岃窛 % 鍥捐〃鏍囬鏍峰紡 \DeclareCaptionFont{songticap}{\zihao{5}\bf\songti}