feat: provide page number style

This commit is contained in:
2026-05-05 12:21:32 +08:00
parent 5b9f9357f5
commit 3cd0f78e50
4 changed files with 311 additions and 32 deletions

View File

@@ -1,24 +1,67 @@
%
\NeedsTeXFormat{LaTeX2e}
\ProvidesClass{austthesis}[2026/04/26 AUST Thesis Template]
% ctexart
\LoadClass[a4paper]{ctexart} % ctexart12ptA4
%
\zihao{-4}
\LoadClass[a4paper]{ctexart} % ctexartA4
%
\RequirePackage{fancyhdr} %
%
\RequirePackage{amsmath, amssymb, amsthm} %
\RequirePackage{graphicx} %
\RequirePackage{caption} %
\RequirePackage{hyperref} %
%
% region:
% Word1cm线1cm
\RequirePackage{geometry}
%
\geometry{left=3cm,right=2.5cm,top=2.96cm,bottom=2.54cm}
\geometry{left=3.5cm,right=2.5cm,top=3cm,bottom=2.5cm}
% endregion
% region: 西
% 西
\usepackage{fontspec}
\setmainfont{Times New Roman}
%
\songti{}
%
\zihao{-4}
% endregion
% region:
\RequirePackage{fancyhdr}
% 使
\pagestyle{fancy}
\fancyhf{}
% 1.6cm`2.5cm + voffset`voffset-0.9cm-9mm
\setlength{\voffset}{-9mm}
%
\fancyhead[C]{\zihao{5} \songti \leftmark}
% 线
\renewcommand{\headrulewidth}{0.1mm}
% 1.5cm` - footskip`footskip1cm10mm
\setlength{\footskip}{10mm}
%
\fancyfoot[C]{\zihao{5}\songti -\hspace{0.5em}\thepage\hspace{0.5em}-}
% 线0线
\renewcommand{\footrulewidth}{0mm}
% endregion
% region:
% 1
\newcommand{\austnopagenum}{
\thispagestyle{empty} %
\setcounter{page}{1} % 1
}
% ()
\newcommand{\austromanpagenum}{
\pagenumbering{Roman} % 1
}
% ()
\newcommand{\austarabicpagenum}{
\pagenumbering{arabic} % 1
}
% endregion
%
\RequirePackage{titlesec}
@@ -27,18 +70,34 @@
\titleformat{\subsubsection}{\zihao{-4}\heiti}{\thesubsubsection}{1em}{}
% 1-1
% https://www.latexstudio.net/archives/51638.html
\captionsetup[figure]{labelformat=simple, labelsep=space}
\renewcommand{\thefigure}{\arabic{section}-\arabic{figure}}
%
\RequirePackage{fancyhdr}
\pagestyle{fancy}
\fancyhf{} %
%
\fancyhead[C]{\zihao{5} \songti \leftmark}
\fancyfoot[C]{\zihao{5}\songti -\hspace{0.5em}\thepage\hspace{0.5em}-}
% 线
\renewcommand{\headrulewidth}{0.1mm}
%
%\newenvironment{abstract}{\clearpage \section*{\centering }}{\clearpage}
% region:
% AUST
\newcommand{\austreportcover}{%
\begin{titlepage} % titlepage
\centering
{\LARGE \@title \par}
{\large \@author \par}
{\large \@date \par}
\end{titlepage}
\thispagestyle{empty} % <---
\setcounter{page}{1} % 1
}
% AUST
\newcommand{\austthesiscover}{%
\begin{titlepage} % titlepage
\centering
{\LARGE \@title \par}
{\large \@author \par}
{\large \@date \par}
\end{titlepage}
\thispagestyle{empty} % <---
\setcounter{page}{1} % 1
}
% endregion