refactor(latex): 清理并优化LaTeX文档配置

移除未使用的LaTeX包和注释代码,重新组织hyperref包的位置以提升文档结构清晰度。添加example.tex文件作为示例模板,便于后续使用。
This commit is contained in:
carry 2025-05-01 21:08:53 +08:00
parent 55508a55b9
commit 833c6b94b3
2 changed files with 6 additions and 11 deletions

View File

@ -5,12 +5,9 @@
\usepackage{indentfirst}
\usepackage{subcaption}
%\graphicspath{{chapter/}{figures/}}
\usepackage{CJK}
\usepackage{xeCJK}
\usepackage{amsmath}%数学
\usepackage{amssymb}%数学符号
%\usepackage[colorlinks,linkcolor=red]{hyperref}%超链接
\usepackage{pgfplots}
\usepackage{fancyhdr} %使用fancyhdr包自定义页眉页脚
%\pagestyle{empty}
@ -20,7 +17,7 @@
\usepackage{titlesec}%设置章节标题与正文间距为2行
\titlespacing{\section}{0pt}{0pt}{2em}
\usepackage{enumerate}%项目编号
%\usepackage{enumerate}%项目编号
\renewcommand{\figurename}{}%将figure改为图
@ -48,7 +45,7 @@
\usepackage{multirow}%跨行表格
\usepackage{abstract}%摘要
\usepackage{setspace} %行间距的宏包
%\usepackage{setspace} %行间距的宏包
\usepackage{makecell}%表格竖线连续
@ -64,12 +61,6 @@
\makeatother
\usepackage{float}%可以用于禁止浮动体浮动
%目录超链接
\usepackage[colorlinks=false,hidelinks,linkcolor=black,citecolor=black]{hyperref}
\usepackage{listings}%可以插入代码
\usepackage[table]{xcolor}%语法高亮支持
@ -110,6 +101,10 @@
% 设置页面格式
\usepackage[left=3.0cm, right=2.6cm, top=2.54cm, bottom=2.54cm]{geometry}
%目录超链接
\usepackage[hidelinks,linkcolor=black,citecolor=black]{hyperref}
\begin{document}