Skip to content

Commit

Permalink
摘要和目录加入罗马页码,#31
Browse files Browse the repository at this point in the history
  • Loading branch information
liziwl committed Apr 26, 2022
1 parent ae08636 commit b1d7d78
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 6 deletions.
7 changes: 6 additions & 1 deletion main.tex
Original file line number Diff line number Diff line change
Expand Up @@ -27,12 +27,17 @@
\begin{document}

\中文标题页\英文标题页
\中文诚信承诺书\英文诚信承诺书

\中文诚信承诺书
\英文诚信承诺书

\前序格式化
\摘要标题
\input{sections/examples/abstract.tex} % 论文摘要

\目\clearpage % 目录及换页

\正文格式化
\input{sections/examples/disclaimer.tex}
\input{sections/examples/interface.tex}
\input{sections/examples/details.tex}
Expand Down
14 changes: 9 additions & 5 deletions sustechthesis.cls
Original file line number Diff line number Diff line change
Expand Up @@ -175,15 +175,21 @@
% 设置键-值
\newcommand{\设置信息}[1]{\setkeys{信息}{#1}}

\newcommand{\前序格式化}{
\setcounter{page}{1}
\pagenumbering{Roman}
}
\newcommand{\正文格式化}{
\setcounter{page}{1}
\pagenumbering{arabic}
}

% 目录
% 无论是撰写规范还是样例都没有提到页码位置
% 已确认页码应在正文处开始
\newcommand{\目录}{
\pagenumbering{gobble}
\tableofcontents
\clearpage
\pagenumbering{arabic}
\setcounter{page}{1}
}
\RequirePackage{fancyhdr}
\pagestyle{fancy}
Expand Down Expand Up @@ -388,7 +394,6 @@
}
\newenvironment{中文摘要}[1]%
{\setsepchar{;}\readlist\args{#1}
\thispagestyle{empty}
\begin{spacing}{1.45}
\noindent\黑\三号[摘要]:
\宋\四号}%
Expand All @@ -405,7 +410,6 @@
\vfill\clearpage}
\newenvironment{英文摘要}[1]%
{\setsepchar{{, }}\readlist\args{#1}
\thispagestyle{empty}
\begin{spacing}{1.45}
\noindent\三号 [\textbf{ABSTRACT}]:
\四号}%
Expand Down

0 comments on commit b1d7d78

Please sign in to comment.