Skip to content

Commit

Permalink
Add Macro \signature
Browse files Browse the repository at this point in the history
  • Loading branch information
Teddy-van-Jerry committed Jun 1, 2024
1 parent 86183fd commit a86082d
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 2 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ There are two options:
- [LaTeX v.s. Typst: What is TeX Community's Future Plan?](https://tex.stackexchange.com/q/705199/234654) (yes, my question on TeX.SX)
- [在 LaTeX 中使用 OpenType 字体(二)](https://stone-zeng.site/2019-07-06-use-opentype-fonts-ii)
- [CTeX 宏集手册](https://mirrors.ctan.org/language/chinese/ctex/ctex.pdf) (or `texdoc ctex` on your PC with local TeX installation)
- [Wuqiong Zhao's Publications](https://wqzhao.org/publications)

## License
This project is distributed by the [MIT License](LICENSE).
15 changes: 13 additions & 2 deletions seuthesis2024b.cls
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

\NeedsTeXFormat {LaTeX2e}
\RequirePackage {l3keys2e}
\ProvidesExplClass {seuthesis2024b} {2024/05/26} {0.14.0}
\ProvidesExplClass {seuthesis2024b} {2024/06/01} {0.15.0}
{Southeast University Thesis for Class of 2024 Bachelors}

\str_const:Nn \c__seuthesis_name_str { seuthesis2024b }
Expand Down Expand Up @@ -727,6 +727,7 @@
%% ==========================
%% Title Pages
%% ==========================
\RequirePackage { pdfpages } % for signature inclusion
\bool_if:NTF \l__seuthesis_standalone_bool
{
\pagestyle { empty }
Expand Down Expand Up @@ -801,6 +802,12 @@
{
\@latex@warning@no@line { No~\noexpand\supervisor~given }
}
% --- \signature ----
\NewDocumentCommand \signature { m }
{
\gdef \@signature { #1 }
}
\def \@signature { }
% --- \seuthesis@titlepage ---
\bool_if:NT \l__seuthesis_accessibility_bool
{
Expand Down Expand Up @@ -882,7 +889,11 @@
\newcommand \seuthesis@declaration
{
\renewcommand \thepage { 声明 }
\input { \l__seuthesis_input_prefix_tl assets/declaration.tex }
\ifx \@signature \@empty
\input { \l__seuthesis_input_prefix_tl assets/declaration.tex }
\else
\includepdf { \@signature }
\fi
\ClearDoublePage
}
% --- \CNabstract ---
Expand Down

0 comments on commit a86082d

Please sign in to comment.