\usepackage{expl3,etoolbox,ifthen,xstring} \usepackage{xltxtra,mflogo,texnames} \usepackage[zihao=5]{ctex} \ctexset{today=old} \let\kaiti=\kaishu \usepackage{xeCJKfntef} \usepackage{xcolor} \definecolor{gbsteelblue}{RGB}{70,130,180} \definecolor{gborange}{RGB}{255,138,88} \definecolor{gbblue}{RGB}{23,74,117} \definecolor{gbforestgreen}{RGB}{21,122,81} \definecolor{gbyellow}{RGB}{255,185,88} \definecolor{gbgrey}{RGB}{200,200,200} %一些字符串格式化命令 \newcommand*{\verbatimfont}{\ttfamily} \newrobustcmd*{\cnt}[1]{\mbox{\verbatimfont#1}} \newrobustcmd*{\bibfield}[1]{\mbox{\verbatimfont#1}} \newrobustcmd*{\opt}[1]{\mbox{\verbatimfont#1}} \newrobustcmd*{\prm}[1]{% \ifblank{#1} {} {\mbox{% \ensuremath\langle \normalfont\textit{#1}% \ensuremath\rangle}}} \usepackage[paperwidth=210mm,paperheight=290mm,left=20mm,right=20mm,top=25mm, bottom=15mm,showcrop ]{geometry}%定义版面showframe, \usepackage[colorlinks=true,% pdfstartview=FitH,allcolors=blue]{hyperref} %书签功能,选项去掉链接红色方框 %linkcolor=gbblue,anchorcolor=gbblue,citecolor=gbblue %linkcolor=black,linkcolor=green,blue,red,cyan, magenta, %yellow, black, gray,white, darkgray, lightgray, brown, %lime, olive, orange, red,purple, teal, violet. %CJKbookmarks,bookmarksnumbered=true, \usepackage{titleref} %标题引用 %\usepackage[unit=cm,type=lowerleft,showframe=true,hshift=2cm,vshift=1.5cm]{fgruler} \usepackage{titlesec} %\titlespacing*{hcommandi}{hlefti}{hbefore-sepi}{hafter-sepi}[hright-sepi] \titlespacing*{\section}{0pt}{\baselineskip}{0.5\baselineskip} \titlespacing*{\subsection}{0pt}{0.5\baselineskip}{0.5\baselineskip} \titlespacing*{\subsubsection}{0pt}{0.5\baselineskip}{0pt} \titlespacing{\paragraph}{2em}{0.5\baselineskip}{1em} \setlength{\bibitemsep}{1pt} %\defbibheading{bibliography}[\bibname]{% %%\phantomsection%解决链接指引出错的问题,相当于加入了一个引导点 %%\addcontentsline{toc}{subsection}{#1} % \centering\subsubsection*{#1}}% %自定义下划红线和背景颜色 \usepackage{ulem} \newcommand\yellowback{\bgroup\markoverwith {\textcolor{yellow}{\rule[-0.5ex]{2pt}{2.5ex}}}\ULon} \newcommand\reduline{\bgroup\markoverwith {\textcolor{red}{\rule[-0.5ex]{2pt}{0.4pt}}}\ULon} \usepackage{subfigure} \usepackage[subfigure]{tocloft} %注意其与titletoc共用时分页会有问题 \usepackage{ccaption} \captiondelim{. } %图序图题中间的间隔符号 \captionnamefont{\zihao{-5}\heiti} %图序样式 \captiontitlefont{\zihao{-5}} %图题样式 \captionwidth{0.8\linewidth} %标题宽度 \changecaptionwidth \captionstyle{\centering} %\captionstyle{