From 49224aecc577259382915d5aa4e17ac6f789df0c Mon Sep 17 00:00:00 2001 From: yyc12345 Date: Sat, 13 Jun 2026 20:29:44 +0800 Subject: [PATCH] feat: add cref support --- aust-thesis.cls | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/aust-thesis.cls b/aust-thesis.cls index f296c2e..99c093d 100644 --- a/aust-thesis.cls +++ b/aust-thesis.cls @@ -1,6 +1,6 @@ % 模板标识,提供基础框架 \NeedsTeXFormat{LaTeX2e} -\ProvidesClass{austthesis}[2026/04/26 AUST Thesis Template] +\ProvidesClass{aust-thesis}[2026/04/26 AUST Thesis Template] % 基于ctexart \LoadClass[a4paper]{ctexart} % 基于ctexart,A4纸 @@ -77,6 +77,14 @@ \renewcommand{\thefigure}{\arabic{figure}} \renewcommand{\thetable}{\arabic{table}} +\RequirePackage{cleveref} +\crefname{table}{表}{表} +\Crefname{table}{表}{表} +\crefname{equation}{公式}{公式} +\Crefname{equation}{公式}{公式} +\crefname{figure}{图}{图} +\Crefname{figure}{图}{图} + % region: 摘要和关键词命令 \newenvironment{austabstract}[1] {