|
@@ -19,13 +19,12 @@
|
|
|
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
|
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
|
|
|
|
|
|
|
%
|
|
%
|
|
|
-\usepackage[fntef]{ctex} % invole CJKfntef
|
|
|
|
|
-\usepackage{ctex}
|
|
|
|
|
|
|
+\usepackage{ctex} % invole CJKfntef
|
|
|
|
|
+\usepackage{xeCJKfntef}
|
|
|
\usepackage{setspace} % spacing
|
|
\usepackage{setspace} % spacing
|
|
|
\usepackage{xcolor} % color
|
|
\usepackage{xcolor} % color
|
|
|
\usepackage{xltxtra} % print a XeLaTeX
|
|
\usepackage{xltxtra} % print a XeLaTeX
|
|
|
|
|
|
|
|
-
|
|
|
|
|
% Font family
|
|
% Font family
|
|
|
\setmainfont[Mapping=tex-text]{Times New Roman}
|
|
\setmainfont[Mapping=tex-text]{Times New Roman}
|
|
|
|
|
|
|
@@ -91,7 +90,7 @@
|
|
|
% Margin
|
|
% Margin
|
|
|
% FIXME: Not very precise, but meets the need of the Word template.
|
|
% FIXME: Not very precise, but meets the need of the Word template.
|
|
|
% \usepackage[left=2.5cm,margin=2.5cm,headheight=1.5cm,footskip=1.5cm]{geometry}
|
|
% \usepackage[left=2.5cm,margin=2.5cm,headheight=1.5cm,footskip=1.5cm]{geometry}
|
|
|
-\usepackage[left=2.5cm,right=2.5cm,top=2.5cm,bottom=2.5cm,headheight=1.5cm,headsep=0.6cm,footskip=0.5cm,textwidth=16cm,textheight=24.7cm]{geometry}
|
|
|
|
|
|
|
+\usepackage[left=2.5cm,right=2.5cm,top=2.5cm,bottom=2.5cm,headheight=1.5cm,headsep=0.6cm,footskip=0.5cm]{geometry}
|
|
|
|
|
|
|
|
|
|
|
|
|
% Header and footer
|
|
% Header and footer
|
|
@@ -115,8 +114,8 @@
|
|
|
\usepackage{url}
|
|
\usepackage{url}
|
|
|
\def\UrlFont{}
|
|
\def\UrlFont{}
|
|
|
\usepackage[xetex, pdfstartview=FitH,
|
|
\usepackage[xetex, pdfstartview=FitH,
|
|
|
-bookmarksnumbered=true, bookmarksopen=true, colorlinks=true,
|
|
|
|
|
-pdfborder=001, linkcolor=black, citecolor=black, urlcolor=black]{hyperref}
|
|
|
|
|
|
|
+bookmarksnumbered=true, bookmarksopen=true, bookmarksdepth=2, colorlinks=true,
|
|
|
|
|
+pdfborder=001, linkcolor=black, citecolor=black, urlcolor=black]{hyperref} % 修改bookmarksdepth指定书签层级
|
|
|
% Deal with line breaking in url
|
|
% Deal with line breaking in url
|
|
|
\makeatletter
|
|
\makeatletter
|
|
|
\def\UrlAlphabet{%
|
|
\def\UrlAlphabet{%
|
|
@@ -256,8 +255,8 @@ pdfborder=001, linkcolor=black, citecolor=black, urlcolor=black]{hyperref}
|
|
|
\renewcommand{\figurename}{图}
|
|
\renewcommand{\figurename}{图}
|
|
|
\renewcommand{\thefigure}{~\arabic{chapter}-\arabic{figure}~}
|
|
\renewcommand{\thefigure}{~\arabic{chapter}-\arabic{figure}~}
|
|
|
\renewcommand{\theequation}{\arabic{chapter}-\arabic{equation}~}
|
|
\renewcommand{\theequation}{\arabic{chapter}-\arabic{equation}~}
|
|
|
-% 外文文献中表、图、公式编号重置
|
|
|
|
|
-\newcommand{\newtranschapter}{\thispagestyle{empty}\addtocounter{chapter}{1}\setcounter{table}{0}\setcounter{equation}{0}\setcounter{figure}{0}}
|
|
|
|
|
|
|
+% 外文文献中表、图、公式、代码编号重置
|
|
|
|
|
+\newcommand{\newtranschapter}{\thispagestyle{empty}\addtocounter{chapter}{1}\setcounter{table}{0}\setcounter{equation}{0}\setcounter{figure}{0}\setcounter{lstlisting}{0}}
|
|
|
|
|
|
|
|
% single figure tweaking
|
|
% single figure tweaking
|
|
|
% New figure environment
|
|
% New figure environment
|