hfbzthesis/setup.tex

93 lines
1.8 KiB
TeX
Raw Normal View History

2024-08-13 13:25:46 +08:00
% !TeX root = ./main.tex
\ustcsetup{
2024-08-13 13:26:17 +08:00
title = {合肥市第八中学 LaTeX 论文模板},
class = {高二26},
author = {何锐哲},
2024-08-13 13:25:46 +08:00
supervisor = {户雨},
2024-08-13 13:26:17 +08:00
date = {2024-08-01},
2024-08-13 13:25:46 +08:00
math-font = xits,
}
% 加载宏包
\usepackage{float}
\usepackage{xcolor}
\usepackage{listings}
\usepackage{markdown}
% 定理类环境宏包
\usepackage{amsthm}
% 插图
\usepackage{graphicx}
% 三线表
\usepackage{booktabs}
2024-08-24 21:47:50 +08:00
\usepackage{threeparttablex}
\usepackage{tabularx}
2024-08-13 13:25:46 +08:00
% 跨页表格
\usepackage{longtable}
% 算法
\usepackage[ruled,linesnumbered]{algorithm2e}
% SI 量和单位
\usepackage{siunitx}
2024-08-24 21:47:50 +08:00
% TikZ
\usepackage{tikz}
\usepackage{pgfplots}
\pgfplotsset{compat=1.18}
2024-08-13 13:25:46 +08:00
% 参考文献使用 BibTeX + natbib 宏包
% 顺序编码制
\usepackage[sort]{natbib}
2024-08-24 21:47:50 +08:00
\bibliographystyle{thesis-numerical}
2024-08-13 13:25:46 +08:00
% 著者-出版年制
% \usepackage{natbib}
% \bibliographystyle{ustcthesis-authoryear}
% 本科生参考文献的著录格式
% \usepackage[sort]{natbib}
% \bibliographystyle{ustcthesis-bachelor}
% 参考文献使用 BibLaTeX 宏包
% \usepackage[style=ustcthesis-numeric]{biblatex}
% \usepackage[bibstyle=ustcthesis-numeric,citestyle=ustcthesis-inline]{biblatex}
% \usepackage[style=ustcthesis-authoryear]{biblatex}
% \usepackage[style=ustcthesis-bachelor]{biblatex}
% 声明 BibLaTeX 的数据库
% \addbibresource{bib/ustc.bib}
% 配置图片的默认目录
\graphicspath{{figures/}}
% 数学命令
\makeatletter
\newcommand\dif{% % 微分符号
\mathop{}\!%
\ifustc@math@style@TeX
d%
\else
\mathrm{d}%
\fi
}
\makeatother
\newcommand\eu{{\symup{e}}}
\newcommand\iu{{\symup{i}}}
% 用于写文档的命令
\DeclareRobustCommand\cs[1]{\texttt{\char`\\#1}}
\DeclareRobustCommand\env[1]{\texttt{#1}}
\DeclareRobustCommand\pkg[1]{\textsf{#1}}
\DeclareRobustCommand\file[1]{\nolinkurl{#1}}
% hyperref 宏包在最后调用
\usepackage{hyperref}