% \iffalse meta-comment
%
% Copyright (C) 2016 by Zhennan Li <i@nanmu.me>
%
% This file may be distributed and/or modified under the
% conditions of the LaTeX Project Public License, either version 1.3
% of this license or (at your option) any later version.
% The latest version of this license is in:
%
% http://www.latex-project.org/lppl.txt
%
% and version 1.3 or later is part of all distributions of LaTeX
% version 2005/12/01 or later.
%
% \fi
%
% \iffalse
%<*driver>
\ProvidesFile{cquthesis.dtx}[2020/06/23 v1.50 Chongqing University Thesis Template]
\documentclass{ltxdoc}
\usepackage{dtx-style}

\EnableCrossrefs
\CodelineIndex
\RecordChanges

\begin{document}
	\DocInput{\jobname.dtx}
\end{document}
%</driver>
% \fi
%
% \CheckSum{1893}
%
% \CharacterTable
%  {Upper-case    \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z
%   Lower-case    \a\b\c\d\e\f\g\h\i\j\k\l\m\n\o\p\q\r\s\t\u\v\w\x\y\z
%   Digits        \0\1\2\3\4\5\6\7\8\9
%   Exclamation   \!     Double quote  \"     Hash (number) \#
%   Dollar        \$     Percent       \%     Ampersand     \&
%   Acute accent  \'     Left paren    \(     Right paren   \)
%   Asterisk      \*     Plus          \+     Comma         \,
%   Minus         \-     Point         \.     Solidus       \/
%   Colon         \:     Semicolon     \;     Less than     \<
%   Equals        \=     Greater than  \>     Question mark \?
%   Commercial at \@     Left bracket  \[     Backslash     \\
%   Right bracket \]     Circumflex    \^     Underscore    \_
%   Grave accent  \`     Left brace    \{     Vertical bar  \|
%   Right brace   \}     Tilde         \~}
%
% \DoNotIndex{\newenvironment,\@bsphack,\@empty,\@esphack,\sfcode}
% \DoNotIndex{\addtocounter,\label,\let,\linewidth,\newcounter}
% \DoNotIndex{\noindent,\normalfont,\par,\parskip,\phantomsection}
% \DoNotIndex{\providecommand,\ProvidesPackage,\refstepcounter}
% \DoNotIndex{\RequirePackage,\setcounter,\setlength,\string,\strut}
% \DoNotIndex{\textbackslash,\texttt,\ttfamily,\usepackage}
% \DoNotIndex{\begin,\end,\begingroup,\endgroup,\par,\\}
% \DoNotIndex{\if,\ifx,\ifdim,\ifnum,\ifcase,\else,\or,\fi}
% \DoNotIndex{\let,\def,\xdef,\edef,\newcommand,\renewcommand}
% \DoNotIndex{\expandafter,\csname,\endcsname,\relax,\protect}
% \DoNotIndex{\Huge,\huge,\LARGE,\Large,\large,\normalsize}
% \DoNotIndex{\small,\footnotesize,\scriptsize,\tiny}
% \DoNotIndex{\normalfont,\bfseries,\slshape,\sffamily,\interlinepenalty}
% \DoNotIndex{\textbf,\textit,\textsf,\textsc}
% \DoNotIndex{\hfil,\par,\hskip,\vskip,\vspace,\quad}
% \DoNotIndex{\centering,\raggedright,\ref}
% \DoNotIndex{\c@secnumdepth,\@startsection,\@setfontsize}
% \DoNotIndex{\ ,\@plus,\@minus,\p@,\z@,\@m,\@M,\@ne,\m@ne}
% \DoNotIndex{\@@par,\DeclareOperation,\RequirePackage,\LoadClass}
% \DoNotIndex{\AtBeginDocument,\AtEndDocument}
%
% \GetFileInfo{\jobname.dtx}
%
% \changes{v0.0.1}{2016/04/03}{���������������������}
% \changes{v0.6.9}{2016/05/09}{������������������������������������������������������������������}
% \changes{v0.7.5}{2016/05/10}{������������������������������������������}
% \changes{v0.8.1}{2016/05/12}{������������������������������������������������������}
% \changes{v0.8.5}{2016/05/13}{������������������������}
% \changes{v0.8.7}{2016/05/14}{������������������������������}
% \changes{v0.8.9}{2016/05/15}{������������Github���������������2016������������������������������������}
% \changes{v0.9.4}{2016/05/19}{���������������������������CQUThesis���������CTAN���������}
% \changes{v0.9.7}{2016/06/09}{���������2016������������������������������������������������������������������������������������������Beta���������������������}
% \changes{v0.9.7}{2016/06/09}{���������\file{cquthesis.sty}������������������������������������\file{cquthesis.cls}���\file{cquthesis.cfg}���}
% \changes{v1.00}{2016/06/17}{������������������������������������������������������������������������������������������������������������������������������������������������������������}
% \changes{v1.00}{2016/06/17}{������������������vX.Y.Z������vX.YZ���������������������}
% \changes{v1.10}{2016/06/21}{���������CQUThesis���������������Makefile���makewin.bat���������������\LaTeX ���������������������������������������������������������������������}
% \changes{v1.14}{2016/08/18}{���������\file{makewin.bat}������������thesis������������������������������������dtx������������������������������������������������������������������������������������������������������������������makewin.bat���������������������}
% \changes{v1.20}{2017/05/30}{������������blankleft������������������������������������������������������������������������������}
% \changes{v1.20}{2017/05/30}{������������������������������������������������openright���������������}
% \changes{v1.20}{2017/05/30}{������������������������������������blindtrail���\cs{secretize}���������\env{secretizeEnv}���������������}
% \changes{v1.20}{2017/05/30}{���������������\file{makewin.bat}������������Windows������������������������������\file{makewin.bat}���������������������������������������������\file{makewin.bat}������������������������������}
% \changes{v1.30}{2018/02/23}{���\href{https://github.com/zepinglee/gbt7714-bibtex-style}{���������������zepinglee/gbt7714-bibtex-style}���������\file{cqunumerical.bst}���}
% \changes{v1.40}{2019/10/12}{���������\href{https://github.com/nanmu42/CQUThesis/issues/44}{Issue 44}���}
%
%
% \def\indexname{������������}
% \def\glossaryname{������������}
% \IndexPrologue{\section{\indexname}}
% \GlossaryPrologue{\section{\glossaryname}}
%
% \title{\bfseries\color{blue!50!black}\cquthesis���������������������������\LaTeX ������}
% \author{{\fangsong ���������\footnote{\href{https://nanmu.me/zh-cn/about/}{������������}���\href{https://nanmu.me/en/about}{About in English}}}\\[5pt]\texttt{i@nanmu.me}}
% \date{\fileversion\ (\filedate)}
% \maketitle\thispagestyle{empty}
% \vspace{\stretch{1}}
% \begin{center}
%		\includegraphics[height=7cm]{figures/CQUbadge}
% \end{center}
%	\vspace{\stretch{2}}
% \begin{abstract}\noindent
% \cquthesis\footnote{\url{https://github.com/nanmu42/CQUThesis}}������������������������������\LaTeX{}���������������������������������������������������������������������������������������������������
% \end{abstract}
% \vspace{\stretch{1}}
% \def\abstractname{������������}
% \begin{abstract}\noindent
% \begin{enumerate}
% \item ���������������LaTeX Project Public License���������������������������1.3������������������������������������������
% \item ���������������������������������������������������������������������������\href{https://github.com/nanmu42/CQUThesis/tree/master/toolkit}{������������������������}������������������������������������������������������������������������������������������\footnote{\href{http://jq.qq.com/?_wv=1027&k=2HvYu95}{������������\TeX ���������}������������������\href{https://github.com/CQUtug/TeXProposal}{������\cquthesis}������������}������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������
% \end{enumerate}
% \vskip2cm
% \end{abstract}
%
%
% \clearpage
% \pagestyle{fancy}
% \begin{multicols}{2}[
%   \setlength{\columnseprule}{.4pt}
%   \setlength{\columnsep}{18pt}]
%   \tableofcontents
% \end{multicols}
% \clearpage
%
% \section{���������}
%\cquthesis{}������������������������������\LaTeX{}������������������������������������������������������������������������������������������������������������������������������������������������������������������������
%
%\cquthesis{}���������������������������������������������������������������������������������2007������������������������������������������������������������������������������2007���������������������������������������������������������������������������������
%
% ���������������������
%\begin{itemize}
%		\item ������������������������������������������������������������������������������������������������������������
%		\item ������������������������������������������������������������������������������������
%		\item ������������������������������������������������������/������������PDF���������
%		\item ������������������������������������������������������������������������������������������������������������������������������������������������������������������������
%		\item ������������cwl������������������������makefile���������������Linux, Mac, Windows������������������
%	\end{itemize}
% 
% ���������������������������������������������������������������������������������������������������������������������~\ref{sec:howtoask}���������������������������������������������������������������������������������������������������
%
% \note{���������������������������������������������������������������������������������������������������������������������������\cquthesis ���������������������������������������������������}
%
% \section{������}
% \label{sec:installation}
%
% \subsection{������������}
% \label{sec:sysrequire}
% ���������������������������������������������������������\TeX{}������������������������������������������������������������������������������\TeX{}������������
% \begin{itemize}
%	\item Windows���������������������Mik \TeX ���������������������Windows���������������\TeX ���������������������������������������������������������������������������
% \item Linux���Mac���������������������\TeX Live���������������������������\TeX{}������������������������������������������������������������������������������\TeX Live���������������������������������������������������������������\footnote{������������������������������CTAN���������������������}���
% \end{itemize}
%
% ������������Windows���Mac������������\TeX Live���������������������������������������
%
% \note{���������������������������������������������������\XeTeX ���������������������������}
%
% \subsection{������\cquthesis}
% ������������������������������������\cquthesis ���
% 
% \begin{itemize}
%	\item ������\cquthesis ��� \href{https://github.com/nanmu42/CQUThesis}{Github������}���������������������������������������������������������������������������������������Toolkit������
% \item ���������������\href{https://www.ctan.org/pkg/cquthesis}{CTAN������������}������������������������������������������������������������������������������Toolkit\footnote{���������������������������������������}������
% \item ������Mik \TeX ���\TeX Live������������������������������������������������������������������������������������
% \end{itemize}
%
% ���������������\cquthesis{}������������������������������������������
%
%
% \subsection{���������������������}
% ��������������� \cquthesis{} ������������������������������������
%
% \begin{longtable}{l|p{8cm}}
% \toprule
% {\heiti ���������������} & {\heiti ������������}\\\midrule
% \endfirsthead
% \midrule
% {\heiti ���������������} & {\heiti ������������}\\\midrule
% \endhead
% \endfoot
% \endlastfoot
% cquthesis.ins & \textsc{DocStrip} ��������������������������������������� \\
% cquthesis.dtx & \textsc{DocStrip} ������������������������������������\\
% makefile & GNU make���������������Mac���Linux���\\
% makewin.bat & Windows���make \\\midrule
% cquthesis.cls & \LaTeX ������������\\
% cquthesis.cfg & ������������������\\
% cqunumerical.bst & ������������������������\\
% cquthesis.cwl & ���������������������������������������\\\midrule
% main.tex & ���������������������\\
% contents/ & ������������������������������\\
% figures/ & ������������������������\\
% ref/ & ������������������������������\\
% toolkit/ & ������������������������\\
% cquthesis.sty & ���������������������������������\\\midrule
% README-English & ������������������������������������������������\\
% README.md & Readme\\
% \textbf{cquthesis.pdf} & ���������������������������\\\bottomrule
% \end{longtable}
%
%  \note{\file{cquthesis.cls}���\file{cquthesis.cfg}������\file{cqunumerical.bst}���������\file{cquthesis.ins}���\file{cquthesis.dtx}������������\cquthesis { }v1.10���������\file{cquthesis.cls}���\file{cquthesis.cfg}���������������������������������������������������������������������������������\ref{sec:install}������}
% 
% \subsection{������}
% \label{sec:install}
% ���������GNU make���makewin.bat���\cquthesis ������������������������
% ������\cquthesis{}���\file*{.zip}���������������������������������������������������������������������
% \begin{itemize}
% \item Windows������������������������������\file{makewin.bat}���
%
%	\item	Linux���Mac������������Bash������������������������������
%
% \begin{shell}	
% cd cquthesis
% make thesis
%	\end{shell}
%\end{itemize}
%
% ������������\cquthesis ������������������������������������
%
% \subsection{������}
% \cquthesis ���������������������������������������������������zip������������\file{cquthesis.dtx} ���\file{cquthesis.ins} ������������������������������������������������
% \begin{itemize}
%	\item Windows������������������������������{\heiti ������Shift���������������������������}������������������������������������������������������������������
%
% \begin{shell}
% makewin extract
%	\end{shell}
%
%	\item	Linux���Mac������������Bash������������������������������
%
% \begin{shell}	
% cd cquthesis
% make cls
%	\end{shell}
%\end{itemize}
%
% ������������\cquthesis ������������
%
% \subsection{������������������}
% ������������������������������������������������������������������������
% \begin{itemize}
%	\item Windows������������������������������{\heiti ������Shift���������������������������}������������������������������������������������������������������
%
% \begin{shell}
% makewin doc
%	\end{shell}
%
%	\item	Linux���Mac������������Bash������������������������������
%
% \begin{shell}	
% cd cquthesis
% make doc
%	\end{shell}
%\end{itemize}
%
% \note{������make���������makewin���������������������������������help���������������������Windows������������������������������makewin help���Linux���Mac���������������\file{Makefile}���������������}
% \section{������������}
% \label{sec:usage}
% ��������������������������������������������� \LaTeX{} ���������������\BibTeX{} ��������������������������������������������� \TeX ��� \LaTeX������������������������������������������������������������������
% 
% ���\LaTeX ������������������������������������\href{http://bbs.ctex.org/forum.php?mod=viewthread&tid=68619}{���\LaTeX{}���������������}���
%
%
% \subsection{������������������}
% \cquthesis ������������������������������\LaTeX ������������������������������������������\file{cquthesis.cwl}���������������������������������������������������\TeX Studio������������������������\file{cquthesis.cwl}���������������������������������������������������������������������������������������������������������
%
% ������������������������������������������������������������������������������������\file{cquthesis.cwl}������������������������������������������������������������������������������������������������������+ cwl + location���
%
% ������Windows���������\TeX Studio������������������������Win+R���������������������������������������������������
%
% \begin{shell}
% %APPDATA%\texstudio\completion\user
% \end{shell}
%
% ������������������������������������\file{cquthesis.cwl}���������\TeX Studio���������Linux���Mac���\TeX Studio������������������������������������������
%
% \subsection{������������}
% \cquthesis ������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������ \file{main.tex} ��� \file{contents/}���
%
% ������������������������IDE������������������������\file{main.tex}���������������������������\XeTeX ������������������������������\LaTeX ���������������������������������������������������������������������������������������������������������������������������
%
% \begin{shell}
% # ���������������������������
% cd cquthesis
% # 1.���������������������������������������������\textsf{.tex}���������
% xelatex main
% # 2.������������������������������������\textsf{.bbl}������
% bibtex main
% # 3.������������������������������
% xelatex main
% # 4.���������������pdf������
% xelatex main
% # 5.������������
% xelatex main
%	\end{shell}
%
% \note{���������������������������������make������makewin���������������������������������������\footnote{make���makewin������latexmk������������������������������������������������������������������������������������������������������������������������������������������}���}
%
% ���������������������������������\file{main.tex}������������
%
% \lstinputlisting[style=lstStyleLaTeX]{main.tex}
%
% \subsection{������������}
% \DescribeOption{type=}
% ������������������������������������������������\option{bachelor}���\option{master}���\option{doctor}���������
% \begin{latex}
% % ������������
% \documentclass[type=doctor,]{cquthesis}
%
% % ������������
% \documentclass[type=master,]{cquthesis}
% \end{latex}
% 
% \DescribeOption{liberalformat}
% ������������������������������������������������������������������������������������������������������������������������������������
% 
% \note{���������������������������������������������������������}
% 
% \DescribeOption{proffesionalmaster=}
% ������������������������\textsf{true}���������������������������������������������������������\textsf{false}���������������������������������������������\textsf{false}������������
% \begin{latex}
% % ������������������
% \documentclass[type=master,proffesionalmaster=false,]{cquthesis}
% % ������������������
% \documentclass[type=master,]{cquthesis}
%
% % ������������������
% \documentclass[type=master,proffesionalmaster=true,]{cquthesis}
% \end{latex}
% \DescribeOption{printmode=}
% ������������������������������������������������������������������������������������������auto������
%	\begin{description}
%		\item[\option{auto}] ���������������������������������������������������������������������
%		\item[\option{oneside}] ���������������������������������������������������������������
%		\item[\option{twoside}] ������������������������������
%	\end{description}
%
% \DescribeOption{bilinguallist=}
% ���������v1.12���������\cquthesis ���������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������
%	\begin{description}
%		\item[\option{off}] ���������������������������������������������������������������������������������
%		\item[\option{combined}] ���������������������������������������������������������������������������������������������������������
%		\item[\option{apart}] ������������������������������������������������������������������������������������������������������������������
%	\end{description}
%
% ���������������������������������������������������������������������������������������������������\ref{sec:bicaptions}������
%
% \note{���������������������������������������������������������������������������������������������������}
%
% \DescribeOption{openany}
% \DescribeOption{openright}
% ������������������������������������������������������������������������������������ \option{openright}���������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������\option{openright}���������������������������������������������
%
% \DescribeOption{blankleft}
% ������������������������ \option{openright}���������������������������������������������������������������������������������������������������������
%
% \DescribeOption{seriftoc}
% ���������������������������������������������������������������������������������������������word������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������
%
% \DescribeOption{continuoustoc}
% ���������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������\file{main.tex}���������\cs{clearpage}���������������������������������������������������������������
%
% \DescribeOption{abstractopenright}
% ������������������������������������������������������������������������������������������������������������������������
%
% \DescribeOption{blindtrail}
% ���������������������������������������\cs{secretize}���������\env{secretizeEnv}������������������������������������
% \begin{itemize}
%		\item ���\cs{secretize}������������������������������***���������
%		\item ������\env{secretizeEnv}������������������������������������
% \end{itemize}
% \cquthesis ���������������������������������������������\cs{secretize}���������������������������������������\env{secretize}���������������������������������������������������
%
% \DescribeOption{draft}
% ������������������������������������������������������������\LaTeX ���������������������������������������������������������������������������������������������������������������������\cs{includeonly}������������������������������������������������
%
% \begin{latex}
% % ������������������
% \includeonly{contents/experiment,contents/analysis,}
% \include{contents/intrduction}
% \include{contents/experiment}
% \include{contents/analysis}
% \include{contents/conclusion}
% \end{latex}
%
% ������\LaTeX ������������\file*{contents/experiment}���\file*{contents/analysis}������������������������
% \subsection{������������}
% \label{sec:chinese-fonts}
%
% \subsubsection{������������}
% \label{sec:font-config}
% ������������������������������������������������������������������ \CTeX ������������������������������������������
% \begin{itemize}
%   \item ������������ \pkg{CJK} ������������ \LaTeX���Pdf\LaTeX\ ���������
%   \item ������ \pkg{xeCJK} ������������ \XeLaTeX\ ���������������������������
% \end{itemize}
%
% ������������������ \CTeX ������������������������������������������������������������������������������������������������
%
% \subsubsection{������������}
% \label{sec:fontcmds}
% \myentry{������}
% \DescribeMacro{\songti}
% \DescribeMacro{\fangsong}
% \DescribeMacro{\heiti}
% \DescribeMacro{\kaishu}
% ������������������������������������������������������������������
%
% \begin{latex}
% {\songti ������������������������������������������������}
% {\fangsong ������������������������������������������������}
% {\heiti ������������������������������������������������}
% {\kaishu ���������������������������������������������������������}
% \end{latex}
% 
% ���������������
%
% {\songti ������������������������������������������������}\space
% {\fangsong ������������������������������������������������}
%
% {\heiti ������������������������������������������������}\space
% {\kaishu ���������������������������������������������������������}
%
% \DescribeMacro{\zihao}
% \cquthesis ������\CTeX ���������������������������������������������
% \begin{latex}
% \zihao{-4}	% ���������������������
% {\zihao{2} ������������������������}	% ������������������������������
% \end{latex}
% 
% \subsection{���������������������}
% \label{sec:titlepage}
% \subsubsection{������������}
% ���������������������������������������������������������������������\cs{cqusetup} ������\emph{key=value}������������������������������������������������������������������������������������ \emph{key} ��������������������������������������������������������������������������������������������������������������������������� \texttt{c} ���������������������������������\texttt{e} ������������������������������
%
% \DescribeMacro{\cqusetup}
% \cs{cqusetup} ��������������� \emph{key=value}������������������������
% \begin{latex}
% \cqusetup{
%   key1 = value1,
%   key2 = {a value, with comma},
% }
% % ������������������
% \cqusetup{
%   key3 = value3,
%   key1 = anothervalue, % ������ value1
% }
% \end{latex}
%
% \note{\cs{cqusetup} ������ \pkg{kvoptions} ������������������������������������������������������������������}
%
% ��������������������������������������� \cs{command}\marg{arg}��������������������������������������������������������������� \file{contents/cover.tex} ������
%
% \subsubsection{������������}
% \DescribeMacro{\ctitle}
% \DescribeMacro{\etitle}
% ������������������������������������������������������������������������������������������������������
% \begin{latex}
% \ctitle{������������//������������������������//���������//���������������������} 
% \etitle{Title in English// the 2nd line}
% % ������������������������������������
% \cqusetup{
% 	ctitle={������������������},
% 	etitle={Thesis English Title},
%	}
% \end{latex}
%
% \note{���������������������������������������������������\cs{cqusetup}���������������������}
%
% \subsubsection{������������}
%
% \DescribeMacro{\cauthor}
% \DescribeMacro{\eauthor}
% ������������������������������������������������������
%
% \DescribeMacro{\csupervisor}
% \DescribeMacro{\esupervisor}
% ������������������������������������������
% \begin{latex}
% \cqusetup{
% 	csupervisor	=	{���������~~������},	% ���������������������������������������������
% 	esupervisor	=	{Prof. Zhenyi Kuang},
%		}%
% \end{latex}
% 
% \DescribeMacro{\cpsupervisor}
% \DescribeMacro{\epsupervisor}
% ������������������������������������������������
%
% \note{���\file{cover.tex}������������������������������������������������������������������������������������������v 0.9.7 ���������������������������������\textbf{������������}������������������������������������������������������������������}
%
% \DescribeMacro{\cassistsupervisor}
% \DescribeMacro{\cextrasupervisor}
% \DescribeMacro{\eassistsupervisor}
% ������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������1.������������������������������������������������������������������������2.������������������������������������������������������������������������\cs{eassistsupervisor}���������������������������������������������������������������������������������������������������������������������������������������
%
% \note{������v 1.14 ���������������������������}
%
% \DescribeMacro{\cmajor}
% \DescribeMacro{\emajor}
% ���������������������������������������������������������������������������������������������������������������������������������������\cs{zihao}������������������������������������������������������\file{cover.tex}���
%
% \subsubsection{������������}
%
% \DescribeMacro{\mycdate}
% \DescribeMacro{\myedate}
% ���������������������������������������������
%
% ������������������������������������������������������������������������������������������������������������������������\file{cover.tex}���\cs{mycdate}���\cs{myedate}������������������������������������������
%
% \subsubsection{������������������}
% \myentry{���������}
% \DescribeMacro{\ckeywords}
% \DescribeMacro{\ekeywords}
% ������������������������������������������������������������������������������������������������������������������������
% ���������������������������
%
% \begin{latex}
% \cqusetup{
%   ckeywords={��������� 1, ��������� 2},
%   ekeywords={keyword 1, keyword 2}
% }
% % ���������
% \ckeywords{��������� 1, ��������� 2}
% \ekeywords{keyword 1, keyword 2}
% \end{latex}
%
% \myentry{������}
% \DescribeEnv{cabstract}
% \DescribeEnv{eabstract}
% ���������������������������������������������������\cs{cqusetup}���
%
% \begin{latex}
% \begin{cabstract}
% 	������������������������
% \end{cabstract}
%
% \begin{eabstract}
% 	Here comes the abstract in English...
% \end{eabstract}
% \end{latex}
% 
% \subsection{������������}
% 
%	������������������\file{main.tex}���������������
% \subsubsection{������}
%	\DescribeMacro{\makecover}
% ���������������������������������������
%
% \myentry{������������������}
% \DescribeMacro{\frontmatter}
% ���������������������������������������������������������������������������������������������������������������������������������
%
%	\DescribeMacro{\makeabstract}
% ������������������������
%
% \subsubsection{������������������}
% ������������������������������������������������������������������������������������������������������
%
% \DescribeMacro{\tableofcontents}
% \DescribeMacro{\listoffigures}
% \DescribeMacro{\listoftables}
% \DescribeMacro{\listofequations}
% \begin{longtable}{ll}
% \toprule
%   {\heiti ������} & {\heiti ������} \\
% \midrule
% ������     & \cs{tableofcontents} \\
% ������������ & \cs{listoffigures}   \\
% ������������ & \cs{listoftables}    \\
% ������������ & \cs{listofequations} \\
% \bottomrule
% \end{longtable}
%
% \LaTeX{} ��������������������������������������������� \cs{caption} ������������������������������������������������������������������������������������
%
% \subsubsection{���������������}
% \DescribeEnv{denotation}
% ��������������������������� \env{description} ���������������������������������������������������������������������������������������������������������������������������������������������������20mm���30mm���
% \begin{latex}
% \begin{denotation}
%   \item[E] ������
%   \item[m] ������
%   \item[c] ������
% \end{denotation}
% \end{latex}
%
% ������������������������������������������������������������������������
% \begin{latex}
% \begin{denotation}[10mm][40mm] % ������������10mm���������������40mm
%   \item[E] ������
%   \item[m] ������
%   \item[c] ������
% \end{denotation}
% \end{latex}
%
% \subsection{������������}
%
% \myentry{������������������}
% \DescribeMacro{\mainmatter}
% ������������������������������������������������������������������������������������������������������������������������������������
%
% \DescribeMacro{\include}
% ������������������\file{contents/}���������������������������\cs{includeonly}\marg{������������}������������������������
% 
% \subsection{������������}
%
% \myentry{������������������}
% \DescribeMacro{\backmatter}
% ���������������������������������������������������������������������������������������������������������������������������������
%
% \myentry{������}
% ���������������������������\cs{chapter}���������������������
%
% \DescribeMacro{\bibliographystyle}
% \DescribeMacro{\bibliography}
% ���������������������������������������������������
%
% ���������������������\textsf{.bib������}������������\textsf{Jabref}������������������
% 
% \note{���������������������������������Web of Science���������������������������������������������������������\textsf{Jabref}���������������bib������������������������������������������������������������������������������������������������������DOI������������������������������������������������������������������������������������������������������������}
% 
%
% \DescribeMacro{\cquauthpage}
% ������������������������������������������������������������\oarg{PDF������������}���������������������������������������������������������������������������������������������������������������������������������\cs{cquauthpage}\oarg{pdf������������}������������������������������������PDF���������������������������
%
% \subsection{���������������������}
% \subsubsection{������������}
% \label{sec:bicaptions}
% \DescribeMacro{\bicaption}
% ���������������������������������������������������������������������������������������������������������������\cs{bicaption}\marg{������������}\marg{������������}������������\cs{caption}������������������������������������������
% 
% \begin{latex}
% \begin{figure}[tbh]
% \centering
% \includegraphics[width=0.7\linewidth]{figures/TEST}
% \bicaption{���������������������������}{This figure is for test only}
% \label{fig:cqubadge}
% \end{figure}
% \end{latex}
%
% ������������������������������������������������������������������������������������������������������\cs{bicaption}\oarg{���������}\marg{������������}\oarg{���������}\marg{������������}������������������������
% \begin{latex}
% \begin{tabularx}{cc}
% \bicaption[���������������������������]{���������������������������������������������������������������������}%
% 	[This is a really short one.]{Linebreak is for demostration only. It's okay to go without it.}
% \label{fig:cqubadge}
% 	��� & ���\\
% 	��� & ���\\
% \end{tabularx}
% \end{latex}
% \DescribeMacro{\eqlist}
% ������������������\cs{eqlist}���\cs{listeq}���������v1.12������������������������������������������\cs{eqlist}\marg{������}\oarg{������}���������������������
%
% ���������������������������\cquthesis ������������������������������������������������
%
% \note{������������������������������������������\option{bilinguallist=}\option{combined}������\option{apart}������������������������������������������\option{bilinguallist=}\option{apart}������\file{main.tex}������\cs{listoffiguresEN},\cs{listoftablesEN}���\cs{listofequationsEN}������������������������������������������������������������������������������������������������������������������������������������������������������������������}
% \subsubsection{������������}
% \label{sec:math}
% \cquthesis{} ���������������������������������
%
% \begin{center}
% \begin{tabular}{*{7}{l}}\toprule
%   axiom & theorem & definition & proposition & lemma & conjecture &\\
%   ������ & ������ & ������ & ������ & ������ & ������ &\\\midrule
%   proof & corollary & example & exercise & assumption & remark & problem \\
%   ������ & ������ & ������& ������ & ������ & ������ & ������\\\bottomrule
% \end{tabular}
% \end{center}
%
% ���������
% \begin{latex}
% \begin{definition}
%   ������������������������������������������������������������������
% \end{definition}
% \end{latex}
% ���������������������������
% \medskip
%
% \noindent\framebox[\linewidth][l]{{\heiti ������~1.1~~~} % {������������������������������������������������������������������}}
%
% \smallskip
% ������������������������������������������������������������\emph{������}���������������������������������������������
% \begin{latex}
% \newtheorem{nonsense}{������}[chapter]
% \end{latex}
%
% ���������������������
% \begin{latex}
% \begin{nonsense}
%   ������������������������������������������������ ���������
% \end{nonsense}
% \end{latex}
% ���������������������������
%
% \medskip
% \noindent\framebox[\linewidth][l]{{\heiti ������~1.1~~~} % {������������������������������������������������ ���������}}
%
% \subsubsection{������������}
%
% \DescribeMacro{\inlinecite}
% \DescribeMacro{\onlinecite}
% ���������������������������������������1������������������������``���������������������$^{[1,2]}$\ldots''������2������������������������``���[3]������������������\ldots''���������������������������������������������������������������������������������������������������������������������\cs{cite}\marg{key}������\cs{inlinecite}\marg{key} ������������������������������
%
% ������������������������\cs{onlinecite}������������\cs{inlinecite}������������������������������������������������������������
% 
% \subsubsection{������������}
%
% \DescribeMacro{\xuhao}
% \DescribeMacro{\xuhaotype}
% \DescribeMacro{\resetxuhao}
% \DescribeMacro{\xuhaoseparator}
% \DescribeMacro{\rownum}
% \DescribeMacro{\rownumtype}
% \DescribeMacro{\resetrownum}
% \DescribeMacro{\rownumseparator}
% \cs{xuhao}���������������������������������������������������������������������������������������������������������������������
%\begin{itemize}
%	\item \cs{xuhao}\oarg{1}���������������������������1������������1���
%	\item \cs{xuhao}������������������������������������������1������������������������
%	\item \cs{xuhaotype}\oarg{1-6}���������\cs{xuhao}������������������1--6������������������������������������������������������������������������������������������������������������������������������������1--10���������
%	\item \cs{resetxuhao}������������������������1���������������������
% \item \cs{xuhaoseparator}���������������������������������������������������������������������������\cs{renewcommand}���������������������
%\end{itemize}
%
%	\begin{latex}
% \xuhaotype[3]
% \renewcommand{\xuhaoseparator}{.}
% \xuhao[1] \xuhao \xuhao \xuhao[1] \xuhao \xuhao \xuhao \xuhao
% % ������������a. b. c. a. b. c. d. e.
% \end{latex}
%	
% \note{���������������������������������������\cs{rownum}, \cs{rownumtype}, \cs{resetrownum}���������\cs{xuhao}, \cs{xuhaotype}, \cs{resetxuhao}���������������������������������}
%
% ���������������������������\cs{setxuhao}���\cs{xuhaotype}������������������
%
% \subsubsection{������������}
% ���������������\cs{bigcell}���������������������������������\cs{headcell}���������������������������������������������������\cs{colsep}������������������������������������12pt���������������������������������������������������
%
% ���������������������������������������������������
%
% ������������������������������������������������������������
% \begin{itemize}
%	\item ���������������������\LaTeX ���������\pkg{array}, \pkg{tabularx}, \pkg{booktabs}, \pkg{longtable}, \pkg{multirow}���\pkg{diagbox}������������������������������������\pkg{tabularx}���\pkg{longtable}������������������������������������������
% \item \cquthesis ������������������\pkg{tabu}������������������������������������������������������������������������������������\pkg{tabu}���������������������������������������
% \end{itemize}
%
% \subsection{������������}
%	������������������������������������������������������������������������������������
% 
% \subsection{������������������������}\label{sec:howtoask}
%	���������������������������������������������������������������������
% \begin{itemize}
%	\item ���Github���\href{https://github.com/nanmu42/cquthesis/issues}{������Issue};
%	\item ������\href{http://jq.qq.com/?_wv=1027&k=2HvYu95}{������������\TeX ���������}������������\footnote{���������������������������������������������������\TeX ������������������������������������������������������������������}���
%\end{itemize}
% 
% ���������������������������������������������
% \section{������}
%  ������������������������������������������������������\LaTeXe{}���������������CTeX���������������������������������������������������������������(Github: xueruini/ThuThesis)���������WeiJianWen������(Github: weijianwen/SJTUThesis)���������������������������������TeX���������(Github: ustctug/gbt-7714-2015)���������������������������������������������
%
% ���������������������������
% 
% \StopEventually{\PrintChanges\PrintIndex}
% \clearpage
% \section{������������}
% ������������������������\LaTeX ������������������������\cquthesis ������������������������������������������������������������������������������������Github\href{https://github.com/nanmu42/cquthesis/issues}{������Issue}���������������������������������������������������������������������������������������
% \subsection{������������}
%    \begin{macrocode}
%<cls>\NeedsTeXFormat{LaTeX2e}[1999/12/01]
%<cls>\ProvidesClass{cquthesis}
%<cfg>\ProvidesFile{cquthesis.cfg}
%<cls|cfg>[2019/10/12 v1.40 Chongqing University Thesis Template]
%    \end{macrocode}
% ���������������������������
%    \begin{macrocode}
%<*cls>
\hyphenation{Cqu-Thesis}
\newcommand{\cquthesis}{\textsc{CquThesis}}
\def\version{1.30}
%</cls>
%    \end{macrocode}
% \file{cquthesis.cfg}������������������������������������������
% \changes{v0.9.0}{2016/05/16}{���������������������PDF������������}
%    \begin{macrocode}
%<*cfg>
\def\cqueqshortname							{���}	
\def\cqu@denotation@name				{���������������������}
\def\shorttablename							{���}
\def\shorttablenameEN						{Table}
\def\shortfigurename						{���}
\def\shortfigurenameEN					{Fig.}
\def\listofequationsname				{������������������}
\def\listofequationsnameEN			{\textbf{List of Equations}}
\def\listoffiguresnameEN				{\textbf{List of Figures}}
\def\listoftablesnameEN					{\textbf{List of Tables}}
\def\cqu@bib@name								{������������}
\def\cqu@tocnameinbkmark				{���{ }���}
\newcommand{\parenthesesthis}[1]{���#1���}
%</cfg>
%    \end{macrocode}
% \subsection{������������������������}
% ������Key=Value������������������������������������������������
%    \begin{macrocode}
%<*cls>
\RequirePackage{kvoptions}
\SetupKeyvalOptions{
	family=cqu,
	prefix=cqu@,
	setkeys=\kvsetkeys}
%    \end{macrocode}
% ������������������
%    \begin{macrocode}
\newif\ifcqu@bachelor
\newif\ifcqu@master
\newif\ifcqu@doctor
\cqu@bachelorfalse\cqu@masterfalse\cqu@doctorfalse
\define@key{cqu}{type}{%
	\expandafter\csname cqu@#1true\endcsname}
%    \end{macrocode}
% ���������������������������������������������������
%    \begin{macrocode}
\DeclareBoolOption{liberalformat}
%    \end{macrocode}
% ������������������
%    \begin{macrocode}
\DeclareBoolOption[true]{academic}
\DeclareComplementaryOption{proffesionalmaster}{academic}
%    \end{macrocode}
% ���������������������������
%    \begin{macrocode}
\DeclareBoolOption[false]{openany}
\DeclareComplementaryOption{openright}{openany}
%    \end{macrocode}
% ���������������������������������������������������
%    \begin{macrocode}
\DeclareBoolOption[false]{blankleft}
%    \end{macrocode}
% ������������������������������������
%    \begin{macrocode}
\DeclareBoolOption[false]{abstractopenright}
%    \end{macrocode}
% ������������������
%    \begin{macrocode}
\DeclareBoolOption[false]{blindtrail}
%    \end{macrocode}
% ���������������������������������������������������������������������������������������
%    \begin{macrocode}
\newif\if@onesideprint
\newif\if@twosideprint
\newif\if@autoprint
\@onesideprintfalse\@twosideprintfalse\@autoprintfalse
\define@key{cqu}{printmode}{%
	\expandafter\csname @#1printtrue\endcsname}
%    \end{macrocode}
% ������������������������������������������������������������������
%    \begin{macrocode}
\DeclareBoolOption[false]{secret}
%    \end{macrocode}
% ���������������������������������������������������������������������������������������������
%    \begin{macrocode}
\DeclareBoolOption[false]{seriftoc}
%    \end{macrocode}
%	������������������������������������������������������������������������
%    \begin{macrocode}
\DeclareBoolOption{continuoustoc}
%    \end{macrocode}
% ������������������������������������������
%    \begin{macrocode}
\newif\if@bioff
\newif\if@bicombined
\newif\if@biapart
\@biofffalse\@bicombinedfalse\@biapartfalse
\define@key{cqu}{bilinguallist}{%
	\@biofffalse\@bicombinedfalse\@biapartfalse
	\expandafter\csname @bi#1true\endcsname}
%    \end{macrocode}
% ���������������CTeXBook
%    \begin{macrocode}
\DeclareDefaultOption{\PassOptionsToClass{\CurrentOption}{ctexbook}}
%    \end{macrocode}
% ���������������������������������
%    \begin{macrocode}
\kvsetkeys{cqu}{}
\ProcessKeyvalOptions*
\PassOptionsToPackage{no-math}{fontspec}
%    \end{macrocode}
% ���CTeXBook���������������������CTeX������������Openright���Openany���������������
%    \begin{macrocode}
\ifcqu@openany
	\LoadClass[openany,a4paper,oneside,UTF8,zihao=-4,scheme=plain,linespread=1.39,space=auto]{ctexbook}
\else
	\LoadClass[openright,a4paper,oneside,UTF8,zihao=-4,scheme=plain,linespread=1.39,space=auto]{ctexbook}
\fi
%    \end{macrocode}
% ���������������������������������
%    \begin{macrocode}
\ifcqu@bachelor\relax\else
	\ifcqu@master\relax\else
		\ifcqu@doctor\relax\else
			\ClassError{cquthesis}%
				{Specified thesis type is obligatory: \MessageBreak
					type=[bachelor|master|doctor]}{}
		\fi
	\fi
\fi
%    \end{macrocode}
% ������������������������������������������������������������������
%    \begin{macrocode}
\if@autoprint\relax\else
	\if@onesideprint\relax\else
		\if@twosideprint\relax\else
			\ClassWarning{cquthesis}%
				{Unexpected or missing print mode, processing with AUTO: \MessageBreak
					printmode=[oneside|twoside|auto]}{}
			\@autoprinttrue
		\fi
	\fi
\fi
%    \end{macrocode}
% ������������������������������������������������������������������off���
%    \begin{macrocode}
\if@bioff\relax\else
	\if@bicombined\relax\else
		\if@biapart\relax\else
		\kvsetkeys{cqu}{bilinguallist=off,}
		\ClassWarning{cquthesis}%
		{Unexpected or missing bilingual list mode, processing with OFF: \MessageBreak
			bilinguallist=[off|combined|apart]}{}
		\fi
	\fi
\fi
%    \end{macrocode}
% \subsection{������������}
%
% ���������������������������������������������������������������������������������\LaTeX ���������������������������������������
%
% ���������������������������\LaTeXe ������������������������������������
%    \begin{macrocode}
\RequirePackage{etoolbox}
\RequirePackage{xparse}
\RequirePackage{environ}
\RequirePackage{calc}
\RequirePackage{ifxetex}
%    \end{macrocode}
%
% ���������\LaTeX ������������������������������������\pkg{amsmath}���������������������������������������������������
%    \begin{macrocode}
\RequirePackage{fontspec}
\RequirePackage{amsmath}
\RequirePackage{amssymb}
\RequirePackage{amsfonts}
%    \end{macrocode}
%
% ������������������������������
%    \begin{macrocode}
\RequirePackage[defaultsups]{newtxtext}
\RequirePackage{pifont}
\RequirePackage{xeCJKfntef}
%    \end{macrocode}
%
% ���������������������������������������������������������������
% \changes{v0.9.41}{2016/05/25}{���������\pkg{tgcursor}���\cs{textbf}���������Bug������������������\pkg{courier}���������}
% \changes{v1.12}{2016/07/06}{���������\pkg{caption}���\pkg{bicaption}���\pkg{newfloat}���������������\cquthesis ������������������������}
%    \begin{macrocode}
\RequirePackage{newfloat}
\RequirePackage{caption}
\RequirePackage[labelformat=simple]{subcaption}
\RequirePackage{bicaption}
\RequirePackage{array}
\RequirePackage{tabularx}
\RequirePackage{booktabs}
\RequirePackage{longtable}
\RequirePackage{multirow}
\RequirePackage{diagbox}
\RequirePackage{tabu}
\RequirePackage{courier}
\RequirePackage{graphicx}
\RequirePackage{pdfpages}
\RequirePackage[shortlabels,inline]{enumitem}
\RequirePackage[amsmath,thmmarks,hyperref]{ntheorem}
%    \end{macrocode}
%
% ���������������������������������������\pkg{varwidth}���������������������������\pkg{pbox}���\pkg{xcolor}���������������������������\pkg{metalogo}������������\cs{XeTeX}������������������
%    \begin{macrocode}
\RequirePackage{changepage}
\RequirePackage{afterpage}
\RequirePackage[bottom,perpage,hang,symbol*]{footmisc}
\raggedbottom
\RequirePackage{varwidth}
\RequirePackage{xcolor}
\RequirePackage{metalogo}
\RequirePackage{xspace}
%    \end{macrocode}
%
% ������������������������������
%    \begin{macrocode}
\RequirePackage[numbers,square,comma,super,sort&compress]{natbib}
%    \end{macrocode}
%
% \changes{v0.9.7}{2016/06/09}{���������������������������������������������������������}
% ���������������������\file{book.cls}������������������������������������������������\pkg{hyperref}���������������������
%    \begin{macrocode}
\patchcmd{\@chapter}{\addtocontents{lof}{\protect\addvspace{10\p@}}}{}{}{} % lof
\patchcmd{\@chapter}{\addtocontents{lot}{\protect\addvspace{10\p@}}}{}{}{} % lot
%    \end{macrocode}
%
% ���������������
%    \begin{macrocode}
\RequirePackage[hyperfootnotes=false,]{hyperref}
%    \end{macrocode}
%
% ���������������
%    \begin{macrocode}
\hypersetup{%
	linktoc=all,
	bookmarksnumbered=true,
	bookmarksopen=true,
	bookmarksopenlevel=1,
	breaklinks=true,
	colorlinks=false,
	plainpages=false,	
	pdfborder=0 0 0}
\urlstyle{same}
%    \end{macrocode}
%
% ���\XeTeX ������������������������������������������������
%    \begin{macrocode}
\ifxetex
\def\CJK@null{\kern\CJKnullspace\Unicode{48}{7}\kern\CJKnullspace}
\defaultfontfeatures{Mapping=tex-text}
\fi
\RequirePackage{tocloft}
\ifxetex
\hypersetup{%
	CJKbookmarks=true}
\else
\hypersetup{%
	unicode=true,
	CJKbookmarks=false}
\fi
%    \end{macrocode}
%
% \subsection{���������������}
% \subsubsection{������������}
% \begin{macro}{\cleardoublepage}
% ���������������������������������������������������������������������������blankleft������������
%    \begin{macrocode}
\let\cqu@cleardoublepage\cleardoublepage
\renewcommand{\cleardoublepage}{%
	\clearpage{\ifcqu@blankleft\pagestyle{style@empty}\fi\cqu@cleardoublepage}
}%\cleardoublepage
%    \end{macrocode}
% \end{macro}
% \begin{macro}{\cqu@addblankpage}
% ���������������������������������������������������pagestyle������������������������������������������������blankleft������������
%    \begin{macrocode}
\newcommand\cqu@addblankpage{%
	\afterpage{%
		{\null\ifcqu@blankleft\pagestyle{style@empty}\fi\clearpage}}}
%    \end{macrocode}
% \end{macro}
%
% \subsubsection{���������������������}
% \begin{macro}{\frontmatter}
% \begin{macro}{\mainmatter}
% \begin{macro}{\backmatter}
% \changes{v0.9.0}{2016/05/16}{���������������������������������������}
% ���������\file{main.tex}���������������������������������������������������������
%    \begin{macrocode}
\newif\if@backmatter
\renewcommand{\frontmatter}{%
	\@backmatterfalse
	\cleardoublepage
	\pagenumbering{Roman}
	\pagestyle{style@normal}
	\ctexset{chapter/numbering = false,}
}
\renewcommand{\mainmatter}{%
	\@backmatterfalse
	\cleardoublepage
	\pagenumbering{arabic}
	\pagestyle{style@normal}
	\ctexset{chapter/numbering = true,}
}
\renewcommand{\backmatter}{%
	\@backmattertrue
	\cleardoublepage
	\ctexset{chapter/numbering = false,
		section/number		 = \Alph{section},
		section/name		 = {,.},
		subsection/number = \CTEXthesection{}\arabic{subsection},}%
	\setcounter{chapter}{0}	
}
%    \end{macrocode}
% \end{macro}
% \end{macro}
% \end{macro}
%
% \subsubsection{������������}
% ������������������������������������������������������������������������������������������
% \changes{v1.20}{2017/05/30}{���������������������������������������Word���������������}
%    \begin{macrocode}
\RequirePackage{geometry}
\geometry{
	a4paper, ignoreall, nomarginpar,
	inner=25mm, outer=25mm, top=30mm, bottom=28mm,
	bindingoffset=10mm, head=16mm, headsep=11mm, foot=12mm, footnotesep=5mm}
%    \end{macrocode}
%
% \subsubsection{������������������������������}
% ���������������������������������������������������������������������������������������������������������������������������������������������������������������������70���������������������������������60���������������������flag������������\cs{cqu@addblankpage}
%    \begin{macrocode}
\RequirePackage{totcount}
\regtotcounter[auxfile=maxpage.aux]{page}
\if@autoprint
	\ifcqu@bachelor
		\ifnum\totvalue{page}>70 \@twosideprinttrue\else\@onesideprinttrue\fi	
	\else
		\ifnum \totvalue{page}>60 \@twosideprinttrue\else\@onesideprinttrue\fi 
	\fi
\fi
%    \end{macrocode}
%
% ���log���������������������������
%    \begin{macrocode}
\if@onesideprint
	\ClassWarning{cquthesis}{Printing under oneside mode.}{}
\else
	\if@twosideprint
		\geometry{twoside}
		\ClassWarning{cquthesis}{Printing under twoside mode.}{}
	\fi
\fi
%    \end{macrocode}
%
% \subsubsection{���������������}
% ��������������������������������� 1. ������������������������������������������������������������������������2. ���������������������������������������������������������������������������������\cs{cqu@thesisname}������3. ������������������������������������������������������������������������������������������������������
%
% ������������������������������������style@���������
%    \begin{macrocode}
\RequirePackage{fancyhdr}
\fancypagestyle{style@empty}{%
	\fancyhf{}
	\renewcommand{\headrulewidth}{0pt}
	\renewcommand{\footrulewidth}{0pt}}
\fancypagestyle{style@fixhead}{%
	\fancyhead{}
	\fancyhead[C]{\zihao{-5}\songti\leftmark}
	\fancyfoot{}
	\fancyfoot[C]{\zihao{-5}\thepage}
	\renewcommand{\headrulewidth}{0.4pt}
	\renewcommand{\footrulewidth}{0pt}}
\fancypagestyle{style@normal}{%
	\fancyhead{}
	\if@twosideprint
	\fancyhead[EC]{\zihao{-5}\songti\cqu@thesisname}
	\fancyhead[OC]{\zihao{-5}\songti\leftmark}
	\else
	\fancyhead[L]{\zihao{-5}\songti\cqu@thesisname}
	\fancyhead[R]{\zihao{-5}\songti\leftmark}
	\fi
	\fancyfoot{}
	\fancyfoot[C]{\zihao{-5}\thepage}
	\renewcommand{\headrulewidth}{0.4pt}
	\renewcommand{\footrulewidth}{0pt}}
%    \end{macrocode}
% \begin{macro}{\cqu@fixhead}
%	������������������������������������������������������������������
%    \begin{macrocode}
\newcommand{\cqu@fixhead}{%
	\if@twosideprint	%���������������������������
		\checkoddpage
			\ifoddpage\relax\else
				\thispagestyle{style@fixhead}
		\fi
	\fi
}%\cqu@fixhead
%    \end{macrocode}
% \end{macro}
% ������fancyhdr���������������������������������������0���������������
%    \begin{macrocode}
\AtBeginDocument{%
	\pagestyle{style@empty}
	\renewcommand{\chaptermark}[1]{%
		\ifnum\value{chapter}>0%
			\@mkboth{\CTEXthechapter\hskip\ccwd#1}{}%
		\else
		\@mkboth{#1}{}%
		\fi}}%\chaptermark
%    \end{macrocode}
%
% \subsection{������������}
% LaTeX������\cs{if@afterindent}���������������������������������������������������������������������������������������������������������������������������������������������������True���
%    \begin{macrocode}
\let\@afterindentfalse\@afterindenttrue
\@afterindenttrue
%    \end{macrocode}
% ������������������������1/10������������������������
%    \begin{macrocode}
\setlength{\parskip}{0.1\baselineskip}
%    \end{macrocode}
% ������������������������������������������������������������������������������������������enumitem���
%    \begin{macrocode}
\ctexset{%
	punct=quanjiao,
	autoindent=true,
	space=auto}
\setlist{
	nosep,
	itemjoin = {{���}}
}%setlist
%</cls>
%    \end{macrocode}
%
% \subsection{������������}
% ���������������������������\option{fixskip}���������������������������������������������������������\option{beforeskip}���\option{afterskip}������Word���������������������������������������
% \changes{v1.16}{2016/12/07}{������������������������������������������������������}
%    \begin{macrocode}
%<*cfg>
\ctexset{%
	chapter = {%
		pagestyle = style@normal,
		name = {},
		format = \sffamily\heiti\centering,
		nameformat = \zihao{3},
		titleformat = \zihao{3},
		aftername = \hskip\ccwd,
		number = {\ifcqu@liberalformat\chinese{chapter}\else\thechapter\fi},
		beforeskip = 13bp,
		afterskip = 24bp,
	},
	section = {%
		name = {},
		format = \sffamily\heiti\raggedright,
		nameformat = \bfseries\zihao{-3},
		titleformat = \zihao{-3},
		aftername = \hskip\ccwd,
		number = {\ifcqu@liberalformat\parenthesesthis{\chinese{section}}\else\thesection\fi},
		beforeskip = 24bp plus 1ex minus .2ex,
		afterskip = 6bp plus .2ex,
	},
	subsection = {%
		name = {},
		format = \sffamily\heiti\raggedright,
		nameformat = \bfseries\zihao{4},
		titleformat = \zihao{4},
		aftername = \hskip\ccwd,
		number = {\ifcqu@liberalformat\arabic{subsection}\else\thesubsection\fi},
		beforeskip = 12bp plus 1bp,
		afterskip = 10bp,
		fixskip = true,
	},
	subsubsection = {
		name = {},
		runin = false,
		indent = \parindent,
		aftertitle = {},
		numbering = true,
		number = {\ifcqu@liberalformat\parenthesesthis{\arabic{subsubsection}}\else\@circlenum{subsubsection}\fi},
		numberformat+ = {\ifcqu@liberalformat\relax\else\zihao{4}\fi},
		beforeskip = 10bp plus .5bp,
		afterskip = 10bp,
		fixskip = true,
	},
	appendix = {%
		numbering = false,
		name = {},
	},
%    \end{macrocode}
% ������������������������������������������������������������������������������
%    \begin{macrocode}
	paragraph = {
		name = {},
		runin = true,
		aftertitle = {\ClassError{cquthesis}%
			{Level-5 and below sections are unsupported intentionally.}{}},
		beforeskip = 1ex plus 0.5ex minus .2ex,
		afterskip = 1em,
	},
	subparagraph = {
		name = {},
		runin = true,
		indent = \parindent,
		indent = 0pt,
		aftertitle = {\ClassError{cquthesis}%
			{Level-5 and below sections are unsupported intentionally.}{}},
		beforeskip = 1ex plus 0.5ex minus .2ex,
		afterskip = 1em,
	},
	appendixname=������,
	contentsname={���\hskip\ccwd ���},
	listfigurename={������������},
	listtablename={������������},
	figurename=���,
	tablename=���,
	bibname=������������,
	indexname=������,
}
%</cfg>
%    \end{macrocode}
%
% \subsection{������������}
% \subsubsection{������������}
% \begin{macro}{\@circlenum}
% \changes{v0.8.9}{2016/05/15}{���������\cs{@circlenum}������������������\env{minipage}������������������������������������������������������������������������������������\pkg{footmisc}���������������������������������������������������������������������Issue���������������}
% ���������������������������������10������������������\cs{@circlenum}���������������\textsf{counter}������������������������\cs{value}������������������������������������\cs{@circlenum}���������������������\cs{value}������������������������������\cs{ding}���������������������������������������������������\cs{the}���
%
% ������������������������������������������
%    \begin{macrocode}
%<*cls>
\def\@circlenum#1{%
	\ifnum \value{#1} >10
	\ClassError{cquthesis}%
	{More than 10 subsubsections in a subsection cannot be handled.}{}
	\fi
	\ding{\the\numexpr\value{#1}+171\relax}%
}
%    \end{macrocode}
% \end{macro}
%
% \subsubsection{������}
% ���������������������������������������
%    \begin{macrocode}
\def\footnoterule{\vskip-3\p@\hrule\@width0.3\textwidth\@height0.4\p@\vskip2.6\p@}
\let\cqu@footnotesize\footnotesize
\renewcommand{\footnotesize}{\cqu@footnotesize\zihao{-5}}
\footnotemargin1.5em\relax
%    \end{macrocode}
%
% ���������������������������������������������������������������������
%    \begin{macrocode}
\let\cqu@makefnmark\@makefnmark
\def\cqu@@makefnmark{\mbox{{\normalfont\@thefnmark}}}
\pretocmd{\@makefntext}{\let\@makefnmark\cqu@@makefnmark}{}{}
\apptocmd{\@makefntext}{\let\@makefnmark\cqu@makefnmark}{}{}
%</cls>
%    \end{macrocode}
% footmisc���������������symbol���minipage���������������������������������������������10
%    \begin{macrocode}
%<*cfg>
\DefineFNsymbols{cqufnsymbol}{
	{\ding{172}}	{\ding{173}}
	{\ding{174}}	{\ding{175}}
	{\ding{176}}	{\ding{177}}
	{\ding{178}}	{\ding{179}}
	{\ding{180}}	{\ding{181}}
}%cqufnsymbol
\setfnsymbol{cqufnsymbol}
\renewcommand\thempfootnote{\fnsymbol{mpfootnote}}
\pretocmd{\thefootnote}{%
	\ifnum \value{footnote} >10
	\ClassError{cquthesis}%
	{More than 10 footnotes in a single page are not supported.}{}
	\fi
}{}{}
\pretocmd{\thempfootnote}{%
	\ifnum \value{mpfootnote} >10
	\ClassError{cquthesis}%
	{More than 10 footnotes in a single page are not supported.}{}
	\fi
}{}{}
%</cfg>
%    \end{macrocode}
%
% \subsubsection{���������������������������}
% ������������������
%    \begin{macrocode}
%<*cls>
\allowdisplaybreaks[4]
\let\cqu@tagform@\tagform@
\renewcommand{\eqref}[1]{\cqueqshortname\textup{(\ref{#1})}}
%    \end{macrocode}
%
% ������������
%    \begin{macrocode}
\theorembodyfont{\rmfamily\songti}
\theoremheaderfont{\rmfamily\heiti}
%</cls>
%    \end{macrocode}
%
% ���������������������������.cfg���������
%    \begin{macrocode}
%<*cfg>
\theoremsymbol{\ensuremath{\ding{110}}}
\newtheorem*{proof}{������}
\theoremstyle{plain}
\theoremsymbol{}
\theoremseparator{���}
\newtheorem{assumption}{������}[chapter]
\newtheorem{definition}{������}[chapter]
\newtheorem{proposition}{������}[chapter]
\newtheorem{lemma}{������}[chapter]
\newtheorem{theorem}{������}[chapter]
\newtheorem{axiom}{������}[chapter]
\newtheorem{corollary}{������}[chapter]
\newtheorem{exercise}{������}[chapter]
\newtheorem{example}{���}[chapter]
\newtheorem{remark}{������}[chapter]
\newtheorem{problem}{������}[chapter]
\newtheorem{conjecture}{������}[chapter]
%</cfg>
%    \end{macrocode}
%
% \subsubsection{������������������������������}
% ���������������������������������������������������������������������������������������������
%    \begin{macrocode}
%<*cls>
\RequirePackage[version=4]{mhchem}
\AtBeginDocument{\pretocmd{\ce}{{ }}{}{}}
%    \end{macrocode}
% \begin{macro}{\cec}
% ������������������������������������������������������
%    \begin{macrocode}
\newcommand{\cec}[1]{\cesplit{{\,\ }{\0}}{#1}}
%    \end{macrocode}
% \end{macro}
% SI������������
%    \begin{macrocode}
\RequirePackage{siunitx}
\RequirePackage{upgreek}
\ifxetex
\sisetup{%
	math-micro = {\upmu},
	text-micro = {\textmu},
}%\sisetup
\fi
%</cls>
%    \end{macrocode}
%
%    \begin{macrocode}
%<*cfg>
\sisetup{%
	list-final-separator	=	{ ��� },
	list-pair-separator		=	{ ��� },
	range-phrase			=	{���},
}%\sisetup
%    \end{macrocode}
%
% \subsubsection{������������������}
% \begin{macro}{\autoref}
% ������\cs{autoref}���������������������������������������������������������������������������������
%    \begin{macrocode}
% ������������\autoref{label}
\AtBeginDocument{%
	\def\figureautorefname{���}
	\def\tableautorefname{���}
	\def\partautorefname{���}
	\def\appendixautorefname{������}
	\def\equationautorefname{���}
	\def\Itemautorefname{������}
	\def\chapterautorefname{���}
	\def\sectionautorefname{���}
	\def\subsectionautorefname{������}
	\def\subsubsectionautorefname{������}
	\def\paragraphautorefname{���������}
	\def\Hfootnoteautorefname{������}
	\def\AMSautorefname{���}
	\def\theoremautorefname{������}
	\def\pageautorefname{���}
}%\AtBeginDocument
%</cfg>
%    \end{macrocode}
% \end{macro}
%
% \subsubsection{������������}
% ������������������������������������
% \changes{v1.16}{2016/12/07}{���������������������������������������}
%    \begin{macrocode}
%<*cls>
\setlength{\floatsep}{20bp plus2bp minus2bp}
\setlength{\intextsep}{20bp plus2bp minus2bp}
\setlength{\textfloatsep}{20bp plus2bp minus2bp}
\setlength{\@fptop}{6bp plus2bp}
\setlength{\@fpsep}{12bp plus2bp}
\setlength{\@fpbot}{6bp plus2bp}
%    \end{macrocode}
% ������������������������������������������
%    \begin{macrocode}
\renewcommand{\textfraction}{0.15}
\renewcommand{\topfraction}{0.85}
\renewcommand{\bottomfraction}{0.65}
\renewcommand{\floatpagefraction}{0.60}
%    \end{macrocode}
%
% \subsubsection{���������������}
% ���������������������������������������������������������������������
% \begin{macro}{\thefigure}
% \begin{macro}{\thetable}
% \begin{macro}{\theequation}
% ���������������������������������������������������
%    \begin{macrocode}
\AtBeginDocument{%
	\renewcommand{\thefigure}{%
		\if@backmatter
			\CTEXthesection \@arabic \c@figure
		\else
			\ifnum \c@chapter >\z@ \thechapter .\fi \@arabic \c@figure
		\fi}
	\renewcommand{\thetable}{%
		\if@backmatter
			\CTEXthesection \@arabic \c@table
		\else
			\ifnum \c@chapter >\z@ \thechapter .\fi \@arabic \c@table
		\fi}
	\renewcommand{\theequation}{%
		\if@backmatter
			\CTEXthesection \@arabic \c@equation
		\else
			\ifnum \c@chapter >\z@ \thechapter .\fi \@arabic \c@equation
		\fi}
}
%    \end{macrocode}
% \end{macro}
% \end{macro}
% \end{macro}
% ���������������������������������������������������\pkg{caption}������������������������\option{position}���\option{top}������\option{aboveskip}���\option{belowskip}������������������������������\option{top}������������\option{bottom}���������������
% \changes{v1.12}{2016/07/06}{������������������������������������������������������}
% \changes{v1.16}{2016/12/07}{���������������������������������������������������������������������������������������������������������������}
% \changes{v1.20}{2017/05/30}{������������������������������������������������������������������}
%    \begin{macrocode}
\def\cqu@tabular{\zihao{5}\@tabular}
\DeclareCaptionLabelFormat{cqu}{{\zihao{5}\rmfamily\songti #1~#2}}
\DeclareCaptionLabelSeparator{cqu}{\hspace{0.5\ccwd}}
\DeclareCaptionFont{cqu}{\zihao{5}\rmfamily\songti}
\captionsetup{justification=centerlast}
\captionsetup{labelformat=cqu,labelsep=cqu,font=cqu}
\captionsetup[table]{position=top,belowskip=6bp,aboveskip=0bp}
\captionsetup[figure]{position=bottom,belowskip=0bp,aboveskip=6bp}
\captionsetup[sub]{font=cqu,skip=6bp}
\renewcommand{\thesubfigure}{(\alph{subfigure})}
\renewcommand{\thesubtable}{(\alph{subtable})}
%    \end{macrocode}
% \begin{macro}{\bicaption}
% \changes{v1.50}{2020/06/23}{������������������������������������������������������\cs{bicaption}������������}
% ���������\cs{bicaption}���������������������������������������������������������������������������������������\cs{shorttablenameEN}���\cs{shortfigurenameEN}
%    \begin{macrocode}
\DeclareCaptionOption{bi-first}[]{%
\def\tablename{\shorttablename}
\def\figurename{\shortfigurename}
}%bi-first
\DeclareCaptionOption{bi-second}[]{%
\def\tablename{\shorttablenameEN}
\def\figurename{\shortfigurenameEN}
}%bi-second
\captionsetup[bi-first]{bi-first}
\captionsetup[bi-second]{bi-second}
%    \end{macrocode}
% \end{macro}
% \begin{macro}{\listoffiguresEN}
% \begin{macro}{\listoftablesEN}
% ������������������������������������������������1������������������������������������������������������������������������list���������������2������������������������������������������������������������
%    \begin{macrocode}
\DeclareFloatingEnvironment[fileext=lofEN]{figuresEN}[\shortfigurenameEN][\listoffiguresnameEN]
\DeclareFloatingEnvironment[fileext=lotEN]{tablesEN}[\shorttablenameEN][\listoftablesnameEN]
%    \end{macrocode}
% 3������������������������
%    \begin{macrocode}
\if@bicombined\relax
\else
	\captionsetup[bi-second]{listtype+=sEN}
\fi
\if@biapart\relax
\else
	\AtBeginDocument{%
		\let\listoffiguresEN\relax
		\let\listoftablesEN\relax
		\let\listofequationsEN\relax
	}%AtBeginDocument
\fi
%    \end{macrocode}
% \end{macro}
% \end{macro}
% ���������������������������������������������������������������������������
%    \begin{macrocode}
\AtBeginEnvironment{tabularx}{\begingroup\zihao{5}}
\AtEndEnvironment{tabularx}{\endgroup}
\setlength{\tabcolsep}{12pt}
\renewcommand{\tabularxcolumn}[1]{m{#1}}
%    \end{macrocode}
% \begin{macro}{\bigcell}
%	\begin{macro}{\headcell}
%	\begin{macro}{\colsep}
% ���������������\cs{bigcell}���������������������������������\cs{headcell}������������������\cs{colsep}������������������������������������12pt���
%    \begin{macrocode}
\newcommand{\bigcell}[1]{\vspace{6pt}\begin{varwidth}{\linewidth}#1\end{varwidth}\vspace{6pt}}
\newcommand{\headcell}[1]{\multicolumn{1}{c}{\heiti #1}}
\newcommand{\colsep}[1][12pt]{\setlength{\tabcolsep}{#1}}
%    \end{macrocode}
% \end{macro}
% \end{macro}
% \end{macro}
%
% longtable������������������������
%    \begin{macrocode}
\setlength{\LTpre}{\bigskipamount}
\setlength{\LTpost}{\bigskipamount}
\let\cqu@LT@array\LT@array
\def\LT@array{\zihao{5}\cqu@LT@array}
%    \end{macrocode}
%
% \subsubsection{������������}
% \begin{environment}{lstStyleBase}
% \changes{v1.00}{2016/06/17}{���������������������������������������\cs{footnotesize}������������\cs{scriptsize}������������������}
% ������\pkg{listings}������������������������������������������������������������������������������������������������������������
%    \begin{macrocode}
\RequirePackage{listings}
\lstdefinestyle{lstStyleBase}{%
	basicstyle=\footnotesize\ttfamily,
	aboveskip=\medskipamount,
	belowskip=\medskipamount,
	lineskip=0pt,
	boxpos=c,
	showlines=false,
	extendedchars=true,
	upquote=true,
	tabsize=2,
	showtabs=false,
	showspaces=false,
	showstringspaces=false,
	numbers=left,
	numberstyle=\tiny,
	linewidth=\linewidth,
	xleftmargin=4pt,
	xrightmargin=0pt,
	resetmargins=false,
	breaklines=true,
	breakatwhitespace=false,
	breakindent=0pt,
	breakautoindent=true,
	columns=flexible,
	keepspaces=true,
	framesep=3pt,
	rulesep=2pt,
	framerule=1pt,
	backgroundcolor=\color{gray!5},
	stringstyle=\color{green!40!black!100},
	keywordstyle=\bfseries\color{blue!50!black},
	commentstyle=\slshape\color{black!60}}
\lstdefinestyle{lstStyleCplus}{%
	style=lstStyleBase,
	frame=l,
	rulecolor=\color{blue},
	language=C++}
\lstdefinestyle{lstStylePython}{%
	style=lstStyleBase,
	frame=l,
	rulecolor=\color{cyan},
	language=Python}
%    \end{macrocode}
% \end{environment}
% \begin{environment}{C++}
% \changes{v1.16}{2016/12/07}{������������������������\env{Cplus}���������������������������\env{C++}���������\env{Cplus}���������������������������������������������������������������������������������������������C++���Python���������������������������������������������}
% \begin{environment}{Python}
% \cquthesis ������������������������������\env{C++}���\env{Python}���������������������������\file{cquthesis.sty}���������������������������\env{Cplus}���������������������������������������
%    \begin{macrocode}
\lstnewenvironment{C++}{\lstset{style=lstStyleCplus}}{}
\lstnewenvironment{Cplus}{\lstset{style=lstStyleCplus}}{}
\lstnewenvironment{Python}{\lstset{style=lstStylePython}}{}
%    \end{macrocode}
% \end{environment}
% \end{environment}
%
% \subsubsection{������������������}
% ������������������������������������������������������������������������������������������������������������
% \begin{macro}{\xuhao}
% \begin{macro}{\resetxuhao}
% \begin{macro}{\xuhaotype}
% \begin{macro}{\xuhaoseparator}
% \cs{xuhao}���������������������������\cs{resetxuhao}������\cs{xuhao}\oarg{1}������������������1���������������������\cs{xuhaotype}���������������������������\cs{xuhaoseparator}���������������������������������������\cs{renewcommand}������������
%    \begin{macrocode}
\newcounter{cquXuHao}
\newcounter{cquXuHaoType}
\setcounter{cquXuHaoType}{1}
\newcommand{\xuhaoseparator}{}
\newcommand{\xuhaotype}[1][1]{
	\ifnum #1>6 \ClassError{cquthesis}%
	{Available choices from 1-6.}{}%
	\fi
	\setcounter{cquXuHaoType}{#1}
}%\xuhaotype
\newcommand{\output@xuhao}{%
	\ifcase\value{cquXuHaoType}
	\or	\arabic{cquXuHao}	%1
	\or	\Alph{cquXuHao}	%2
	\or	\alph{cquXuHao}	%3
	\or	\Roman{cquXuHao}	%4
	\or	\roman{cquXuHao}	%5
	\or	\ifnum\value{cquXuHao}>9\ClassError{cquthesis}%
	{Xuhao(rownum) of type-6 must be under 10.}{}%
	\else\fnsymbol{cquXuHao}
	\fi	%6
	\fi
}%\output@xuhao
\newcommand{\xuhao}[1][0]{
	\ifcase #1
	\stepcounter{cquXuHao}		%0
	\output@xuhao\xuhaoseparator\xspace
	\or	\resetxuhao\stepcounter{cquXuHao}		%1
	\output@xuhao\xuhaoseparator\xspace
	\fi
}%\xuhao
\newcommand{\resetxuhao}{\setcounter{cquXuHao}{0}}
%    \end{macrocode}
% \end{macro}
% \end{macro}
% \end{macro}
% \end{macro}
% \begin{macro}{\rownum}
% \begin{macro}{\resetrownum}
% \begin{macro}{\rownumtype}
% \begin{macro}{\rownumseparator}
% ������������������������������������������������������������������������\cs{setxuhao}������������������������
%    \begin{macrocode}
\let\rownum\xuhao
\let\resetrownum\resetxuhao
\let\rownumtype\xuhaotype
\let\setxuhao\xuhaotype
\let\rownumseparator\xuhaoseparator
%    \end{macrocode}
% \end{macro}
% \end{macro}
% \end{macro}
% \end{macro}
%
% \subsection{������������}
% 
% \begin{macro}{\secretize}
% ���������������������������\cs{secretize}���
%    \begin{macrocode}
\newcommand{\secretize}[1]{%
	\ifcqu@blindtrail
		{***}
	\else
		{#1}
	\fi
}
%    \end{macrocode}
% \end{macro}
%
% \begin{environment}{secretizeEnv}
% ������������������������������\env{secretizeEnv}���
%    \begin{macrocode}
\newcommand{\cqu@@secretizeenv}[1]{\long\gdef\cqu@secretizeenv{#1}}
\newenvironment{secretizeEnv}{\Collect@Body\cqu@@secretizeenv}{%
	\ifcqu@blindtrail
		\relax
	\else
		\cqu@secretizeenv
	\fi
}
%    \end{macrocode}
% \end{environment}
%
% \subsection{������������}
% \subsubsection{������������}
% \begin{macro}{\cqu@def@term}
% ������������Key--Definer:
%    \begin{macrocode}
\def\cqu@def@term #1{%
	\define@key{cqu}{#1}{\csname #1\endcsname{##1}}
	\expandafter\gdef\csname #1\endcsname##1{%
		\expandafter\gdef\csname cqu@#1\endcsname{##1}}
	\csname #1\endcsname{}}
%    \end{macrocode}
% \end{macro}
% ���������������������������������������������
% 
% ���������������������������������������������
%    \begin{macrocode}
\cqu@def@term{ctitle}
\cqu@def@term{etitle}
%    \end{macrocode}
%
% ���������������������������������
%    \begin{macrocode}
\cqu@def@term{cauthor}
\cqu@def@term{eauthor}
\cqu@def@term{studentid}
\cqu@def@term{csupervisor}
\cqu@def@term{esupervisor}
\cqu@def@term{cassistsupervisor}
\cqu@def@term{cextrasupervisor}
\cqu@def@term{eassistsupervisor}
\cqu@def@term{cpsupervisor}
\cqu@def@term{epsupervisor}
\cqu@def@term{cmajor}
\cqu@def@term{emajor}
\cqu@def@term{cclass}
\cqu@def@term{edgree}
%    \end{macrocode}
%
% ������������������������������
%    \begin{macrocode}
\cqu@def@term{cdepartment}
\cqu@def@term{edepartment}
\cqu@def@term{mycdate}
\cqu@def@term{myedate}
%</cls>
%    \end{macrocode}
% ������������������������
%    \begin{macrocode}
%<*cfg>
\newcommand{\MONTH}{%
	\ifcase\the\month
	\or January% 1
	\or February% 2
	\or March% 3
	\or April% 4
	\or May% 5
	\or June% 6
	\or July% 7
	\or August% 8
	\or September% 9
	\or October% 10
	\or November% 11
	\or December% 12
	\fi}
\def\cdate{\zhdigits{\the\year}���\zhnumber{\the\month}���}
\def\edate{\MONTH{ }\the\year}
%</cfg>
%    \end{macrocode}
%
% ���������������������������������������
%    \begin{macrocode}
%<*cls>
\def\cqu@parse@keywords#1{
	\define@key{cqu}{#1}{\csname #1\endcsname{##1}}
	\expandafter\gdef\csname cqu@#1\endcsname{}
	\expandafter\gdef\csname #1\endcsname##1{
		\@for\reserved@a:=##1\do{
			\expandafter\ifx\csname cqu@#1\endcsname\@empty\else
			\expandafter\g@addto@macro\csname cqu@#1\endcsname{%
				\ignorespaces\csname cqu@#1@separator\endcsname}
			\fi
			\expandafter\expandafter\expandafter\g@addto@macro%
			\expandafter\csname cqu@#1\expandafter\endcsname\expandafter{\reserved@a}}}}
\cqu@parse@keywords{ckeywords}
\cqu@parse@keywords{ekeywords}
%    \end{macrocode}
%
% ������kvoptions������key=value������������
%    \begin{macrocode}
\def\cqusetup{\kvsetkeys{cqu}}
%    \end{macrocode}
%
% \subsubsection{������������������}
% \begin{macro}{\make@cover@CN}
% \changes{v0.9.7}{2016/06/09}{������\pkg{varwidth}���������\pkg{pbox}���}
% ���������������������������������������������������������������������������\env{varwidth}:
% \changes{v1.00}{2016/06/17}{������������������������������������������������������������������}
% \changes{v1.14}{2016/08/18}{���������������������������������������������������������������������������������������������������������������������������������������������}
%    \begin{macrocode}
\newcommand{\make@cover@CN}{%
	\thispagestyle{style@empty}
	\begin{center}
		\rule{0mm}{15mm}
		\sffamily\heiti
		\ifcqu@bachelor
		\zihao{-2}\cqu@thesistypenameCN
		\\	\vspace{\stretch{1}}
		\zihao{2}\cqu@ctitle
		\\	\vspace{\stretch{2}}
		\includegraphics[width=6cm]{CQUbadge.pdf}
		\\	\vspace{\stretch{2}}
		\else
		\zihao{2}\cqu@ctitle
		\\	\vspace{\stretch{1}}
		\includegraphics[width=6cm]{CQUbadge.pdf}
		\\	\vspace{\stretch{1}}
		\zihao{-2}\cqu@thesistypenameCN
		\ifcqu@master{}\\\cqu@mastertype\fi
		\\	\vspace{\stretch{2}}		
		\fi
		\ifcqu@bachelor
		\zihao{3}
		\begin{varwidth}{\textwidth}
			\begin{CJKfilltwosides}{4.5\ccwd}
				\cqu@studentCN\cqu@title@separatorCN\\
				\cqu@studentnumCN\cqu@title@separatorCN\\
				\cqu@supervisorCN\cqu@title@separatorCN\\
				\ifdefstring{\cqu@cassistsupervisor}{}{\relax}{{\zihao{5}\begin{CJKfilltwosides}{66bp}\cqu@assistsupervisorCN\end{CJKfilltwosides}}\hfill\cqu@title@separatorCN\\}
				\ifdefstring{\cqu@cextrasupervisor}{}{\relax}{{\zihao{5}\begin{CJKfilltwosides}{66bp}\cqu@extrasupervisorCN\end{CJKfilltwosides}}\hfill\cqu@title@separatorCN\\}
				\cqu@majorCN\cqu@title@separatorCN
			\end{CJKfilltwosides}
		\end{varwidth}
		\else
		\zihao{3}
		\begin{varwidth}{\textwidth}
			\begin{CJKfilltwosides}{4.5\ccwd}
				\cqu@studentCN\cqu@title@separatorCN\\
				\cqu@supervisorCN\cqu@title@separatorCN\\
				\ifcqu@academic
				\cqu@majorCN\cqu@title@separatorCN\\
				\else
				\cqu@psupervisorCN\cqu@title@separatorCN\\
				\fi
				\cqu@majorclassCN\cqu@title@separatorCN
			\end{CJKfilltwosides}
		\end{varwidth}
		\fi
		\hskip.5\ccwd
		\zihao{3}
		\begin{varwidth}{\textwidth}%
			\mbox{\cqu@cauthor}\\
			\ifcqu@bachelor\cqu@studentid\\\fi
			\cqu@csupervisor\\ %���������������������
			\ifcqu@academic %������������������
			\ifcqu@bachelor
			\ifdefstring{\cqu@cassistsupervisor}{}{\relax}{\cqu@cassistsupervisor\\}
			\ifdefstring{\cqu@cextrasupervisor}{}{\relax}{\cqu@cextrasupervisor\\}
			\fi
			\mbox{\cqu@cmajor}
			\ifcqu@bachelor\relax\else\\\cqu@cclass\fi
			\else
			\cqu@cpsupervisor\\
			\cqu@cclass
			\fi
		\end{varwidth}
		\\	\vspace{\stretch{2}}
		\zihao{-2}\cqu@universitynameCN\cqu@cdepartment\\[1mm]
		\zihao{3}\ifdefempty{\cqu@mycdate}{\cdate}{\cqu@mycdate}
		\vspace{10mm}
	\end{center}}
%    \end{macrocode}
% \end{macro}
%
% \subsubsection{������������������}
% \begin{macro}{\make@cover@EN}
% ������������������������������������������������������������������������������������
% \changes{v1.14}{2016/08/18}{������������������������������������������������������������������������������������������������������������������������������������������}
% \changes{v1.16}{2016/12/07}{������������������������������������������������������������by���������������}
%    \begin{macrocode}
\newcommand{\make@cover@EN}{%
	\cleardoublepage
	\thispagestyle{style@empty}
	\begin{center}
		\rule{0mm}{15mm}
		\sffamily
		\ifcqu@bachelor
			\zihao{-2}\cqu@thesistypenameEN
			\\	\vspace{\stretch{2}}
			\zihao{-1}\textbf{\cqu@etitle}
			\\	\vspace{\stretch{1}}
			\includegraphics[width=5cm]{CQUbadge.pdf}
			\\	\vspace{\stretch{2}}
			\zihao{3}\textbf{\cqu@studentEN\cqu@title@separatorEN\mbox{\cqu@eauthor}}\\
			\cqu@supervisorEN\mbox{\cqu@esupervisor}\\
			\ifdefstring{\cqu@eassistsupervisor}{}{\relax}{\cqu@assistsupervisorEN\cqu@title@separatorEN\mbox{\cqu@eassistsupervisor}\\}
			\cqu@majorEN\cqu@title@separatorEN\mbox{\cqu@emajor}
		\else
			\zihao{-1}\textbf{\cqu@etitle}
			\\	\vspace{\stretch{2}}
			\includegraphics[width=5cm]{CQUbadge.pdf}
			\\	\vspace{\stretch{2}}
			\zihao{3}\cqu@thesistypenameEN
			\\[1mm]
			\textbf{\cqu@workby}
			\\[2mm]
			\zihao{3}\mbox{\textbf{\cqu@eauthor}}
			\\	\vspace{\stretch{1}}
			\textbf{\cqu@supervisorEN}\textbf{\cqu@esupervisor}\\
			\ifcqu@academic\relax\else\textbf{\cqu@psupervisorEN\cqu@title@separatorEN\cqu@epsupervisor}\\\fi
			\textbf{\cqu@majorEN\cqu@title@separatorEN}\mbox{\textbf{\cqu@emajor}}
		\fi
			\\ \vspace{\stretch{2}}
			\zihao{-2}\cqu@edepartment\\\cqu@universitynameEN\\[1mm]
			\ifdefempty{\cqu@myedate}{\textbf{\edate}}{\textbf{\cqu@myedate}}
			\vspace{10mm}
	\end{center}}
%    \end{macrocode}
% \end{macro}
%
% \subsubsection{PDF������������������}
% \begin{macro}{\makecover}
% ���������������������������\cs{makecover}���������������������������PDF������������������
%    \begin{macrocode}
\def\makecover{%
	\hypersetup{%
		pdftitle = {\cqu@ctitle},
		pdfauthor = {\cqu@cauthor},
		pdfsubject = {\cqu@thesistypenameCN},
		pdfkeywords = {\cqu@ckeywords},
		pdfcreator = {CQUThesis--v\version, a LaTeX template.}
	}
	\phantomsection
	\pdfbookmark[-1]{\cqu@ctitle}{ctitle}
	\make@cover@CN
	\make@cover@EN
}%makecover
%    \end{macrocode}
% \end{macro}
%
% \subsection{������}
% \subsubsection{������������}
% ������������������������
%    \begin{macrocode}
\newcommand{\cqu@@cabstract}[1]{\long\gdef\cqu@cabstract{#1}}
\newenvironment{cabstract}{\Collect@Body\cqu@@cabstract}{}
\newcommand{\cqu@@eabstract}[1]{\long\gdef\cqu@eabstract{#1}}
\newenvironment{eabstract}{\Collect@Body\cqu@@eabstract}{}
%    \end{macrocode}
%
% \subsubsection{������������}
% \begin{macro}{\makeabstract}
% ���������������������
%    \begin{macrocode}
\def\makeabstract{%
	\cleardoublepage
	\normalsize
	\cqu@makeabstract
}%makeabstract
\newcommand{\cqu@makeabstract}{%
	\clearpage
	\chapter[\cqu@cabstract@tocname]{\cqu@cabstract@name}
	\pagestyle{style@normal}
	\cqu@fixhead
	\pagenumbering{Roman}
	\cqu@cabstract
	\vskip12bp
	\cqu@put@kw{\heiti\cqu@ckw@title\cqu@title@separatorCN}{\cqu@ckeywords}
	\if@twosideprint\ifcqu@openany\ifcqu@abstractopenright\cqu@addblankpage\fi\fi\fi
	\chapter[\cqu@eabstract@tocname]{\sffamily\textbf{\cqu@eabstract@name}}
	\cqu@fixhead
	\cqu@eabstract
	\vskip12bp
	\cqu@put@kw{\textbf{\cqu@ekw@title\cqu@title@separatorEN}}{\cqu@ekeywords}
}
%    \end{macrocode}
% \end{macro}
% ������������������
%    \begin{macrocode}
\newbox\cqu@kw
\newcommand{\cqu@put@kw}[2]{%
	\begingroup
	\setbox\cqu@kw=\hbox{#1}
	\noindent\hangindent\wd\cqu@kw\hangafter1
	\box\cqu@kw#2\par
	\endgroup}
%    \end{macrocode}
%
% \subsection{������������������������}
% \begin{macro}{\cquauthpage}
% ���������������������������������������
%    \begin{macrocode}
\NewDocumentCommand{\cqu@makeauth}{o}{%
	\clearpage
	\thispagestyle{style@empty}
	\IfNoValueTF{#1}{%
		\rule{0mm}{5mm}
		\begin{center}
			\zihao{3}
			\begin{CJKfilltwosides}{6\ccwd}
				\heiti{}\cqu@innotitle
			\end{CJKfilltwosides}
		\end{center}
		\vspace{2mm}
		\zihao{-4}
		\par\cqu@innobody
		\\[5mm]
		\par\cqu@innosignature\hfill\cqu@signdate
		\vspace{15mm}
		\begin{center}
			\zihao{3}\heiti
			\cqu@authtitle
		\end{center}
		\vspace{2mm}
		\zihao{-4}
		\par\cqu@authbody
		\\[15mm]
		\begin{minipage}{\textwidth}
			\begin{minipage}{15\ccwd}
				\cqu@authsignaturestu\\[10mm]
				\cqu@signdate
			\end{minipage}
			\hfill
			\begin{minipage}{15\ccwd}
				\cqu@authsignaturesup\\[10mm]
				\cqu@signdate
			\end{minipage}
		\end{minipage}
	}{
	\includepdf{#1}
}
}%\cqu@makeauth
\let\cquauthpage\cqu@makeauth
%</cls>
%    \end{macrocode}
% \end{macro}
% ���������������������������������
%    \begin{macrocode}
%<*cfg>
\def\cqu@ckeywords@separator{���}
\def\cqu@ekeywords@separator{, }
\def\cqu@title@separatorCN{���}
\def\cqu@title@separatorEN{:~}
\def\cqu@cabstract@tocname{������������}
\def\cqu@eabstract@tocname{������������}
\def\cqu@cabstract@name{���\hskip\ccwd{}���}
\def\cqu@eabstract@name{ABSTRACT}
\def\cqu@ckw@title{���������}
\def\cqu@ekw@title{Key words}
\def\cqu@workby{by}
\ifcqu@bachelor
	\def\cqu@thesistypenameCN{������������������������������������������������}
	\def\cqu@thesistypenameEN{Graduation Design(Thesis) of Chongqing University}
	\def\cqu@studentCN{������}
	\def\cqu@studentEN{Undergraduate}
	\def\cqu@studentnumCN{������}
	\def\cqu@supervisorCN{������������}
	\def\cqu@supervisorEN{Supervised by{ }}
	\def\cqu@assistsupervisorCN{������������������}
	\def\cqu@extrasupervisorCN{������������������}
	\def\cqu@assistsupervisorEN{Assistant Supervisor}
	\def\cqu@majorCN{������}
	\def\cqu@majorEN{Major}
	\def\cqu@universitynameCN{������������}
	\def\cqu@universitynameEN{Chongqing University}
\else
	\ifcqu@master
		\def\cqu@thesistypenameCN{������������������������������}
		\def\cqu@thesistypenameEN{A Thesis Submitted to Chongqing University\\%
			in Partial Fulfillment of the Requirement for%
		\ifcqu@academic{ }the\fi\\\cqu@edgree}
		\def\cqu@studentCN{������������}
		\def\cqu@supervisorCN{������������}
		\def\cqu@supervisorEN{Supervised by{ }}
		\def\cqu@psupervisorCN{������������}
		\def\cqu@psupervisorEN{Pluralistic~Supervisor}
		\def\cqu@majorCN{������}
		\def\cqu@majorEN{Specialty}
		\ifcqu@academic
			\def\cqu@mastertype{(������������)}
			\def\cqu@majorclassCN{������������}
		\else
			\def\cqu@mastertype{(������������)}
			\def\cqu@majorclassCN{������������}
		\fi
		\def\cqu@universitynameCN{������������}
		\def\cqu@universitynameEN{Chongqing University, Chongqing, China}
	\else
		\ifcqu@doctor
			\def\cqu@thesistypenameCN{������������������������������}
			\def\cqu@thesistypenameEN{A Thesis Submitted to Chongqing University\\%
				in Partial Fulfillment of the Requirement for the\\\cqu@edgree}
			\def\cqu@studentCN{������������}
			\def\cqu@studentEN{Ph.D. Candidate}
			\def\cqu@supervisorCN{������������}
			\def\cqu@supervisorEN{Supervised by{ }}
			\def\cqu@majorCN{������}
			\def\cqu@majorclassCN{������������}
			\def\cqu@majorEN{Specialty}
			\def\cqu@universitynameCN{������������}
			\def\cqu@universitynameEN{Chongqing University}
		\else
			\ClassWarning{cquthesis}%
				{Specified thesis type is obligatory: \MessageBreak
					type=[bachelor|master|doctor](How did you bypass the type check?)}{}
		\fi
	\fi
\fi
\def\cqu@innotitle{���������������}
\def\cqu@innobody{%
	���������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������}
\def\cqu@innosignature{���������������������������}
\def\cqu@authtitle{���������������������������������}
\def\cqu@authcheckpart{%
	���\hskip\ccwd{}���(\hskip2\ccwd)������\rule{3\ccwd}{0.15mm}���������������������������������\\
	���������(\hskip2\ccwd)���}
\def\cqu@authbody{
	������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������
	\\[\baselineskip]
	\indent\parbox{7\ccwd}{���������������������}\hskip\ccwd\parbox{.6\textwidth}{\cqu@authcheckpart}
	\\[\baselineskip]
	\indent(������������������������������������\ding{51}���)}
\def\cqu@authsignaturestu{���������������������������}
\def\cqu@authsignaturesup{���������������}
\def\cqu@signdate{���������������\hskip3\ccwd{}���\hskip2\ccwd{}���\hskip2\ccwd{}���}
%</cfg>
%    \end{macrocode}
% \subsection{���������������������}
% \begin{environment}{denotation}
% ���������������������������
%    \begin{macrocode}
%<*cls>
\newlist{cqu@denotation}{description}{1}
\setlist[cqu@denotation]{%
	nosep,
	font	=	\normalfont,
	align	=	left,
	leftmargin	=	!,
	labelindent = 0mm,
	labelwidth	=	25mm,
	labelsep*		=	5mm,
	itemindent	=	0mm,
}%\setlist
\NewDocumentEnvironment{denotation}{O{20mm} O{30mm}}{%
	\chapter*{\cqu@denotation@name}
	\chaptermark{\cqu@denotation@name}\cqu@fixhead
	\zihao{-4}\begin{cqu@denotation}[labelindent = #1,labelwidth=#2,]
	}{
\end{cqu@denotation}}%\denotation
%    \end{macrocode}
% \end{environment}
%
% \subsection{������}
% \subsubsection{������������}
% ���������������������������������������������������������������������
%    \begin{macrocode}
\setcounter{tocdepth}{2}
\setcounter{secnumdepth}{3}
\setlength{\cftbeforechapskip}{1mm}
%    \end{macrocode}
% ������subsection���������������
%    \begin{macrocode}
\ifcqu@liberalformat
	\cftsetindents{chapter}{0em}{1.5em}
	\cftsetindents{section}{1.9em}{0.9em}
	\cftsetindents{subsection}{4.0em}{1.5em}
\else
	\cftsetindents{chapter}{0em}{1.5em}
	\cftsetindents{section}{1.5em}{2.2em}
	\cftsetindents{subsection}{3.7em}{2.9em}
\fi
%    \end{macrocode}
% ���������������������������������������������������������������������������word������������������������������������������������������������������������������������������������������������������������������������������������������������������������
%    \begin{macrocode}
\ifcqu@seriftoc
	\renewcommand{\cftchapleader}{\cftdotfill{\cftdotsep}}
	\renewcommand{\cftchapfont}{\zihao{4}\sffamily\heiti}
	\renewcommand{\cftsecfont}{\zihao{5}\sffamily\heiti}
	\renewcommand{\cftsubsecfont}{\zihao{5}}
\fi
%    \end{macrocode}
% \subsubsection{������������}
% \begin{macro}{\listofequationsEN}
% ���������������������������������������������������
%    \begin{macrocode}
\newlistof[chapter]{equations}{equ}{\listofequationsname}
\newlistof[chapter]{equationsEN}{equEN}{\listofequationsnameEN}
\DeclareDocumentCommand{\listeq}{ m o }{%
	\addcontentsline{equ}{equations}{\protect\numberline{\theequation}#1}\par
	\IfNoValueTF{#2}{%
		\relax
	}{%
		\if@bicombined
				\addcontentsline{equ}{equations}{\protect\numberline{\theequation}#2}\par
		\else
			\if@biapart
				\addcontentsline{equEN}{equationsEN}{\protect\numberline{\theequation}#2}\par
			\fi
		\fi
	}
}%listeq
\setlength{\cftequationsnumwidth}{2.5em}
\setlength{\cftequationsENnumwidth}{2.5em}
\let\eqlist\listeq
%    \end{macrocode}
% \end{macro}
%
% ������������������������
%    \begin{macrocode}
\tocloftpagestyle{style@normal}
%</cls>
%    \end{macrocode}
%
% ������������������������ ������������������������������
%    \begin{macrocode}
%<cfg>\let\cqu@thesisname\cqu@thesistypenameCN
%    \end{macrocode}
%
% ������������������������������������\cs{fixhead}
% \changes{v0.9.0}{2016/05/16}{������������������PDF������������}
% \changes{v1.12}{2016/07/06}{���������������������������������������������������������������������������������������}
% \changes{v1.20}{2017/05/30}{���������������������������������������������������������������������������������������������}
%    \begin{macrocode}
%<*cls>
\renewcommand{\cfttoctitlefont}{%
	\phantomsection\pdfbookmark[0]{\cqu@tocnameinbkmark}{toc}\cqu@fixhead\hfill\bfseries\sffamily\heiti\zihao{3}}
\renewcommand{\cftloftitlefont}{\cqu@fixhead\hfill\sffamily\heiti\zihao{3}}
\renewcommand{\cftlottitlefont}{\cqu@fixhead\hfill\sffamily\heiti\zihao{3}}
\renewcommand{\cftequtitlefont}{\cqu@fixhead\hfill\sffamily\heiti\zihao{3}}
\renewcommand{\cftequENtitlefont}{\cqu@fixhead\hfill\sffamily\heiti\zihao{3}}
\renewcommand{\cftaftertoctitle}{\hfill}
\renewcommand{\cftafterloftitle}{\hfill}
\renewcommand{\cftafterlottitle}{\hfill}
\renewcommand{\cftafterequtitle}{\hfill}
\renewcommand{\cftafterequENtitle}{\hfill}
\renewcommand{\cftdot}{���}
\renewcommand{\cftdotsep}{0}
\renewcommand{\cftchapdotsep}{\cftdotsep}
\renewcommand{\cftchapleader}{\cftdotfill{\cftchapdotsep}}
\renewcommand{\cftsecleader}{\cftdotfill{\cftdotsep}}
%    \end{macrocode}
%
% ������������tocloft������������������������������������������������������������������
%    \begin{macrocode}
% \changes{v1.20}{2017/05/30}{������openany���������������������������������������������������������������������������}
\ifcqu@continuoustoc\relax\else
	\renewcommand{\@cfttocstart}{\cleardoublepage}
	\renewcommand{\@cfttocfinish}{\cleardoublepage}
\fi
%    \end{macrocode}
%
% \begin{macro}{\chapterstar}
% ���������������������������\cs{chapterstar}���������������������������������(������������������������������������������)
%    \begin{macrocode}
\newcommand{\chapterstar}[1]{%
	\chapter*{#1}%
	\phantomsection
	\@mkboth{#1}{}
	\addcontentsline{toc}{chapter}{#1}}
%    \end{macrocode}
% \end{macro}
%
% \subsection{������������}
% \changes{v0.9.7}{2016/06/09}{������������������������������������������������������}
% \begin{macro}{\inlinecite}
% \begin{macro}{\onlinecite}
% ������\cs{inlinecite}���\cs{onlinecite}
%    \begin{macrocode}
\bibpunct{[}{]}{,}{s}{}{,}
\renewcommand\NAT@citesuper[3]{\ifNAT@swa%
	\unskip\kern\p@\textsuperscript{\NAT@@open #1\NAT@@close}%
	\if*#3*\else\ (#3)\fi\else #1\fi\endgroup}
\DeclareRobustCommand\inlinecite{\@inlinecite}
\def\@inlinecite#1{\begingroup\let\@cite\NAT@citenum\citep{#1}\endgroup}
\let\onlinecite\inlinecite
%    \end{macrocode}
% \end{macro}
% \end{macro}
%
% ������������������������������pdf���������
%    \begin{macrocode}
\pretocmd{\bibliography}{%
	\clearpage\phantomsection\addcontentsline{toc}{chapter}{\cqu@bib@name}}{}{}
%    \end{macrocode}
%
% ���������������������������������������������������������������������
%    \begin{macrocode}
\AtBeginDocument{%
\pretocmd{\bibliography}{\begingroup\zihao{5}}{}{}
\apptocmd{\bibliography}{\endgroup}{}{}
}%AtBeginDocument
\renewcommand\@biblabel[1]{\zihao{5}[#1]}
\renewenvironment{thebibliography}[1]
{\chapter*{\cqu@bib@name
		\@mkboth{\cqu@bib@name}{}}%
	\list{\@biblabel{\@arabic\c@enumiv}}%
	{\settowidth\labelwidth{\@biblabel{#1}}%
		\leftmargin\labelwidth
		\advance\leftmargin\labelsep
		\setlength{\parsep}{1mm}
		\setlength{\labelsep}{0.5em}
		\setlength{\itemsep}{0.05pc}
		\setlength{\listparindent}{0in}
		\setlength{\itemindent}{0in}
		\setlength{\rightmargin}{0in}
		\@openbib@code
		\usecounter{enumiv}%
		\let\p@enumiv\@empty
		\renewcommand\theenumiv{\@arabic\c@enumiv}}%
	\sloppy
	\clubpenalty4000
	\@clubpenalty\clubpenalty
	\widowpenalty4000%
	\sfcode`\.\@m
}{%
\def\@noitemerr
{\@latex@warning{Empty `thebibliography' environment}}%
\endlist \vskip.2in}
%    \end{macrocode}
%
%\subsection{������������������}
% ���������������������������������������������
%    \begin{macrocode}
\AtEndOfClass{\input{cquthesis.cfg}}
%</cls>
%    \end{macrocode}
%
% \iffalse
%    \begin{macrocode}
%<*dtx-style>
\ProvidesPackage{dtx-style}
\RequirePackage[bottom,perpage,hang,]{footmisc}
\RequirePackage{hypdoc}
\RequirePackage[UTF8,scheme=chinese]{ctex}
\RequirePackage[
top=2.5cm, bottom=2.5cm,
left=4cm, right=2cm,
headsep=3mm]{geometry}
\RequirePackage{array,longtable,booktabs}
\RequirePackage{listings}
\RequirePackage{fancyhdr}
\RequirePackage{xcolor}
\RequirePackage{enumitem}
\RequirePackage{etoolbox}
\RequirePackage{metalogo}
\RequirePackage{graphicx}
\RequirePackage{xspace}
\RequirePackage{pifont}

\def\footnoterule{\vskip-3\p@\hrule\@width0.3\textwidth\@height0.4\p@\vskip2.6\p@}
\let\cqu@footnotesize\footnotesize
\renewcommand{\footnotesize}{\cqu@footnotesize\zihao{-5}}
\footnotemargin1.5em\relax

\let\cqu@makefnmark\@makefnmark
\def\cqu@@makefnmark{\mbox{{\normalfont\@thefnmark}}}
\pretocmd{\@makefntext}{\let\@makefnmark\cqu@@makefnmark}{}{}
\apptocmd{\@makefntext}{\let\@makefnmark\cqu@makefnmark}{}{}

\colorlet{cqu@macro}{blue!60!black}
\colorlet{cqu@env}{blue!70!black}
\colorlet{cqu@option}{purple}
\patchcmd{\PrintMacroName}{\MacroFont}{\MacroFont\bfseries\color{cqu@macro}}{}{}
\patchcmd{\PrintDescribeMacro}{\MacroFont}{\MacroFont\bfseries\color{cqu@macro}}{}{}
\patchcmd{\PrintDescribeEnv}{\MacroFont}{\MacroFont\bfseries\color{cqu@env}}{}{}
\patchcmd{\PrintEnvName}{\MacroFont}{\MacroFont\bfseries\color{cqu@env}}{}{}

\appto{\TeX}{\xspace}
\appto{\LaTeX}{\xspace}
\appto{\XeTeX}{\xspace}

\def\DescribeOption{%
	\leavevmode\@bsphack\begingroup\MakePrivateLetters%
	\Describe@Option}
\def\Describe@Option#1{\endgroup
	\marginpar{\raggedleft\PrintDescribeOption{#1}}%
	\cqu@special@index{option}{#1}\@esphack\ignorespaces}
\def\PrintDescribeOption#1{\strut \MacroFont\bfseries\sffamily\color{cqu@option} #1\ }
\def\cqu@special@index#1#2{\@bsphack
	\begingroup
	\HD@target
	\let\HDorg@encapchar\encapchar
	\edef\encapchar usage{%
		\HDorg@encapchar hdclindex{\the\c@HD@hypercount}{usage}%
	}%
	\index{#2\actualchar{\string\ttfamily\space#2}
		(#1)\encapchar usage}%
	\index{#1:\levelchar#2\actualchar
		{\string\ttfamily\space#2}\encapchar usage}%
	\endgroup
	\@esphack}

\lstdefinestyle{lstStyleBase}{%
	basicstyle=\small\ttfamily,
	aboveskip=\medskipamount,
	belowskip=\medskipamount,
	lineskip=0pt,
	boxpos=c,
	showlines=false,
	extendedchars=true,
	upquote=true,
	tabsize=2,
	showtabs=false,
	showspaces=false,
	showstringspaces=false,
	numbers=none,
	linewidth=\linewidth,
	xleftmargin=4pt,
	xrightmargin=0pt,
	resetmargins=false,
	breaklines=true,
	breakatwhitespace=false,
	breakindent=0pt,
	breakautoindent=true,
	columns=flexible,
	keepspaces=true,
	gobble=2,
	framesep=3pt,
	rulesep=1pt,
	framerule=1pt,
	backgroundcolor=\color{gray!5},
	stringstyle=\color{green!40!black!100},
	keywordstyle=\bfseries\color{blue!50!black},
	commentstyle=\slshape\color{black!60}}

\lstdefinestyle{lstStyleShell}{%
	style=lstStyleBase,
	frame=l,
	rulecolor=\color{blue},
	language=bash}

\lstdefinestyle{lstStyleLaTeX}{%
	style=lstStyleBase,
	frame=l,
	rulecolor=\color{cyan},
	language=[LaTeX]TeX}

\lstnewenvironment{latex}{\lstset{style=lstStyleLaTeX}}{}
\lstnewenvironment{shell}{\lstset{style=lstStyleShell}}{}

\setlist{nosep}

\DeclareDocumentCommand{\option}{m}{\textsf{#1}\xspace}
\DeclareDocumentCommand{\env}{m}{\texttt{#1}\xspace}
\DeclareDocumentCommand{\pkg}{s m}{%
	\texttt{#2}\xspace\IfBooleanF#1{\cqu@special@index{package}{#2}}}
\DeclareDocumentCommand{\file}{s m}{%
	\texttt{#2}\xspace\IfBooleanF#1{\cqu@special@index{file}{#2}}}
\newcommand{\myentry}[1]{%
	\marginpar{\raggedleft\color{purple}\bfseries\strut #1}}
\newcommand{\note}[1]{{%
		\color{magenta}{\noindent\bfseries ���������}\emph{#1}}}

\def\cquthesis{\textsc{Cqu}\-\textsc{Thesis}}
%</dtx-style>
%    \end{macrocode}
% \fi
%
% \Finale
\endinput