diff --git a/config/main.tex b/config/main.tex index 81b8a6f..5c97b76 100644 --- a/config/main.tex +++ b/config/main.tex @@ -9,7 +9,9 @@ \usepackage{lscape} \usepackage{fancyhdr} \usepackage{amsmath,mathtools,amsthm,amsfonts,amssymb,bm} -\usepackage[colorlinks, urlcolor=blue, linkcolor=purple, citecolor=red]{hyperref} +\usepackage{titlesec} +\usepackage[colorlinks,bookmarksnumbered,urlcolor=blue, + linkcolor=purple,citecolor=red,plainpages=false]{hyperref} \usepackage[centering,a4paper,body={16cm,22cm}]{geometry} %============================================================ % 配制列表环境 @@ -18,15 +20,8 @@ \setlist*{leftmargin=*} % 列表和段落头对齐 \setlist[1]{labelindent=\parindent} % Only the level 1 %============================================================ -% 每节单独起一页 -\usepackage{titlesec} -\newcommand{\sectionbreak}{\clearpage} -%============================================================ % 绘图支持 \usepackage{tikz} -% \usetikzlibrary{shapes.geometric, arrows} -% \usetikzlibrary{shapes,decorations} -% \usetikzlibrary{intersections,decorations.text} \definecolor{c1}{RGB}{116, 52, 129} %清华紫 \definecolor{c2}{RGB}{130, 80, 140} \definecolor{c3}{RGB}{230, 180, 240} @@ -65,6 +60,9 @@ \setcounter{secnumdepth}{4} % 章节编号深度 (part 对应 -1) \setcounter{tocdepth}{1} % 目录深度 (part 对应 -1) %============================================================ +% 每节单独起一页 +\newcommand{\sectionbreak}{\clearpage} +%============================================================ % 居中章节标题 \newenvironment{pre}{ \titleformat{\chapter}[display]{\centering}{}{-3mm}{\Huge\heiti} @@ -164,8 +162,9 @@ \renewcommand{\arraystretch}{1} %====================================================================== % 调整附录格式 -\newcommand{\appendixes}{ - \appendix +\let\stdappendix\appendix +\renewcommand{\appendix}{ + \stdappendix \renewcommand{\thefigure}{\Alph{chapter}--\arabic{figure}} \renewcommand{\thetable}{\Alph{chapter}--\arabic{table}} \renewcommand{\chaptername}{附录\Alph{chapter}} diff --git a/instructions.tex b/instructions.tex index 5e9ff3d..37d122b 100644 --- a/instructions.tex +++ b/instructions.tex @@ -66,7 +66,7 @@ %============================================================ % 附录 -\appendixes +\appendix % 速查手册 \graphicspath{{figure/appendixes/cheat_sheet/}}