texlive[76075] Master/texmf-dist: sysuthesis (17aug25)
commits+karl at tug.org
commits+karl at tug.org
Sun Aug 17 22:17:00 CEST 2025
Revision: 76075
https://tug.org/svn/texlive?view=revision&revision=76075
Author: karl
Date: 2025-08-17 22:17:00 +0200 (Sun, 17 Aug 2025)
Log Message:
-----------
sysuthesis (17aug25)
Modified Paths:
--------------
trunk/Master/texmf-dist/doc/latex/sysuthesis/sysuthesis.pdf
trunk/Master/texmf-dist/source/latex/sysuthesis/sysuthesis.dtx
trunk/Master/texmf-dist/tex/latex/sysuthesis/sysuthesis.cls
trunk/Master/texmf-dist/tex/latex/sysuthesis/sysuvisual.sty
Modified: trunk/Master/texmf-dist/doc/latex/sysuthesis/sysuthesis.pdf
===================================================================
(Binary files differ)
Modified: trunk/Master/texmf-dist/source/latex/sysuthesis/sysuthesis.dtx
===================================================================
--- trunk/Master/texmf-dist/source/latex/sysuthesis/sysuthesis.dtx 2025-08-16 23:48:05 UTC (rev 76074)
+++ trunk/Master/texmf-dist/source/latex/sysuthesis/sysuthesis.dtx 2025-08-17 20:17:00 UTC (rev 76075)
@@ -90,7 +90,7 @@
%
%<class|visual>\NeedsTeXFormat{LaTeX2e}
%<*!(driver|install)>
-%<!driver> \GetIdInfo $Id: sysuthesis.dtx 0.4.0 2025-07-11 12:00:00 +0800 Renier Tan <irantan at 163.com> $
+%<!driver> \GetIdInfo $Id: sysuthesis.dtx 0.5.0 2025-08-17 12:00:00 +0800 Renier Tan <irantan at 163.com> $
%<class> {Thesis template for Sun Yat-sen University}
%<class>\ProvidesExplClass{sysuthesis}
%<visual> {Sun Yat-sen University's visual elements}
@@ -171,7 +171,7 @@
%
% \title{\heiti 中山大学学位论文模板}
% \author{Renier Tan}
-% \date{2025/07/11\quad v0.4.0}
+% \date{2025/08/17\quad v0.5.0}
%
% \changes{v0.1.0}{2025/04/30}{进行模板编写。}
%
@@ -426,11 +426,11 @@
%
% 因学校规定英文字体为 Times New Roman,故仅提供中文字体和数学字体的设置选项。
%
-% \begin{function}[added=2025-04-30]{style/cjk-font}
+% \begin{function}[added=2025-04-30, updated=2025-07-18]{style/cjk-font}
% \begin{syntax}
-% cjk-font = <adobe|(fandol)|founder|mac|macnew|macold|ubuntu|windows>
+% cjk-font = <adobe|fandol|founder|mac|macnew|macold|ubuntu|windows>
% \end{syntax}
-% 指定中文字体族,默认为 |fandol|。推荐使用 |windows|, |founder| 或 |ubuntu|。
+% 指定中文字体族,默认按操作系统设置。推荐使用 |windows|, |founder| 或 |ubuntu|。
% \end{function}
%
% \begin{description}
@@ -1307,7 +1307,6 @@
% 设置中文字体。
% \begin{macrocode}
cjk-font .tl_gset:N = \g_@@_style_cjk_font_tl,
- cjk-font .initial:n = fandol,
% \end{macrocode}
% \end{variable}
%
@@ -1450,6 +1449,19 @@
% \end{macrocode}
% \end{macro}
%
+% \changes{v0.5.0}{2025/07/18}{根据操作系统设置默认中文字体。}
+%
+% 根据操作系统设置默认中文字体。
+% \begin{macrocode}
+\sys_if_platform_windows:TF
+ { \tl_gset:Nn \g_@@_style_cjk_font_tl { windows } }
+ {
+ \ctex_if_platform_macos:TF
+ { \tl_gset:Nn \g_@@_style_cjk_font_tl { mac } }
+ { \tl_gset:Nn \g_@@_style_cjk_font_tl { ubuntu } }
+ }
+% \end{macrocode}
+%
% \changes{v0.4.0}{2025/07/11}{仅在指定 windows 字库时使用伪粗选项。}
%
% 仅在指定 |windows| 字库时使用伪粗选项。
@@ -1483,7 +1495,7 @@
% \end{variable}
%
% \begin{macro}{\@@_load_latin_font:}
-% \changes{v0.2.0}{2025-06-18}{在导言区末尾加载英文字体。}
+% \changes{v0.2.0}{2025/06/18}{在导言区末尾加载英文字体。}
% 加载英文字体命令。
% \begin{macrocode}
\cs_new_protected:Npn \@@_load_latin_font:
@@ -1690,7 +1702,7 @@
}
% \end{macrocode}
%
-% \changes{v0.2.0}{2025-06-18}{修复研究生章节样式。}
+% \changes{v0.2.0}{2025/06/18}{修复研究生章节样式。}
% \begin{macrocode}
\tl_set:Nn \l_@@_section_style_ii_tl
{
@@ -1724,6 +1736,15 @@
beforeskip = \baselineskip,
afterskip = \baselineskip,
fixskip = true
+ },
+ paragraph =
+ {
+ numbering = false,
+ format = \raggedright \songti \bfseries \zihao { -4 },
+ indent = 2 \ccwd,
+ beforeskip = \baselineskip,
+ afterskip = \baselineskip,
+ fixskip = true
}
}
\tl_set_eq:NN \l_@@_section_style_iii_tl
@@ -2043,13 +2064,12 @@
{ \seq_push:Nn \l_file_search_path_seq { #1 } }
% \end{macrocode}
%
-% \begin{macro}{\g_@@_image_i_bool, \g_@@_image_ii_bool}
-% 定义布尔变量存储图片是否存在。如果用户指定了图片路径,则按指定的路径进行判断。
% \begin{macrocode}
-\bool_new:N \g_@@_image_i_bool
-\bool_new:N \g_@@_image_ii_bool
\hook_gput_code:nnn { begindocument / before } { . }
{
+% \end{macrocode}
+% 设置封面图片默认路径。
+% \begin{macrocode}
\tl_if_empty:NT \g_@@_style_logo_path_tl
{
\int_compare:nNnTF { \g_@@_info_type_int } = { 1 }
@@ -2056,60 +2076,57 @@
{ \tl_gset:Nn \g_@@_style_logo_path_tl { sysu-emblem.pdf } }
{ \tl_gset:Nn \g_@@_style_logo_path_tl { sysu-name-cn.pdf } }
}
- \bool_gset:Nn \g_@@_image_i_bool
- { \file_if_exist_p:V \g_@@_style_logo_path_tl }
- \bool_gset:Nn \g_@@_image_ii_bool
- { \file_if_exist_p:V \g_@@_style_logo_path_tl }
% \end{macrocode}
-% \end{macro}
-%
% 如果未找到指定图片则添加视觉元素宏包 \pkg{sysuvisual}。
% \begin{macrocode}
- \bool_lazy_or:nnF
+ \file_if_exist:VF \g_@@_style_logo_path_tl
+ { \RequirePackage { sysuvisual } }
+ }
+% \end{macrocode}
+%
+% \begin{macro}{\@@_logo:}
+% \changes{v0.5.0}{2025/08/17}{封装封面图片绘制函数。}
+% 封装封面图片绘制函数。
+% \begin{macrocode}
+\cs_new_protected:Npn \@@_logo:
+ {
+ \file_if_exist:VTF \g_@@_style_logo_path_tl
{
- \g_@@_image_i_bool &&
- \int_compare_p:nNn { \g_@@_info_type_int } = { 1 }
+ \int_compare:nNnTF { \g_@@_info_type_int } = { 1 }
+ { \includegraphics [ width = 3 cm ] { \g_@@_style_logo_path_tl } }
+ { \includegraphics [ width = 9 cm ] { \g_@@_style_logo_path_tl } }
}
{
- \g_@@_image_ii_bool &&
- \int_compare_p:nNn { \g_@@_info_type_int } > { 1 }
+ \int_compare:nNnTF { \g_@@_info_type_int } = { 1 }
+ {
+ \sysudraw { badge } [ landscape ] [ 3 cm ]
+ [ \g_@@_style_color_tl ]
+ }
+ {
+ \sysudraw { name-cn } [ landscape ] [ 2.5 cm ] [ white ]
+ [ draw = \g_@@_style_color_tl, line~width = 1 pt ]
+ }
+ \msg_warning:nnV { sysuthesis } { image-not-found }
+ \g_@@_style_logo_path_tl
}
- { \RequirePackage { sysuvisual } }
}
% \end{macrocode}
+% \end{macro}
%
% \subsubsection{本科生页面对象实例}
%
-% 封面校徽。
+% 本科生封面校徽。
% \begin{macrocode}
\@@_define_element:nn { i / cover / emblem-image }
{
- code-before =
- {
- \bool_if:NTF \g_@@_image_i_bool
- {
- \tl_set:Nn \l_@@_tmpa_tl
- {
- \includegraphics [ width = 3 cm ]
- { \g_@@_style_logo_path_tl }
- }
- }
- {
- \tl_set:Nn \l_@@_tmpa_tl
- {
- \sysudraw { badge }
- [ landscape ] [ 3 cm ] [ \g_@@_style_color_tl ]
- }
- \msg_warning:nnV { sysuthesis } { image-not-found }
- \g_@@_style_logo_path_tl
- }
- },
- content = \l_@@_tmpa_tl,
+ content = \@@_logo:,
bottom-skip = 20 pt
}
% \end{macrocode}
%
-% 封面论文类型名称。
+% \changes{v0.4.1}{2025/07/11}{修复本科生论文类型标题的加粗。}
+%
+% 本科生封面论文类型名称。
% \begin{macrocode}
\@@_define_element:nn { i / cover / thesis-type-name }
{
@@ -2117,7 +2134,7 @@
format =
{
\color { \g_@@_style_color_tl } \bfseries
- \str_if_eq:VnT \g_@@_style_cjk_font_tl { windows }
+ \str_if_eq:VnTF \g_@@_style_cjk_font_tl { windows }
{ \CJKfontspec { STZHONGS.TTF } } { \songti }
\fontsize { 36 bp } { 36 bp } \selectfont
},
@@ -2125,7 +2142,7 @@
}
% \end{macrocode}
%
-% 封面分割线。
+% 本科生封面分割线。
% \begin{macrocode}
\@@_define_element:nn { i / cover / divide-lines }
{
@@ -2142,7 +2159,7 @@
% \changes{v0.1.1}{2025/06/17}{修复单行标题不显示的问题。}
% \changes{v0.3.0}{2025/07/01}{将表格中的相对行距改为固定。}
%
-% 封面论文中文标题。
+% 本科生封面论文中文标题。
% \begin{macrocode}
\@@_define_element:nn { i / cover / title }
{
@@ -2155,7 +2172,7 @@
{
\begin { tabular } { r @ { } p { 18 em } }
题目: &
- \seq_use:Nn \l_@@_tmpa_seq { \\ [ 10 pt ] & }
+ \seq_use:Nn \l_@@_tmpa_seq { \\ [ 10 pt ] & }
\end { tabular }
},
format = \heiti \LARGE,
@@ -2163,7 +2180,7 @@
}
% \end{macrocode}
%
-% 封面信息栏。
+% 本科生封面信息栏。
% \begin{macrocode}
\@@_define_element:nn { i / cover / info }
{
@@ -2174,8 +2191,8 @@
{ author, student_id, department, major, supervisors }
{
\@@_box_spread:nc { 4 em } { c_@@_name_ #1 _tl } &
- \@@_box_ulined:nc { 14 em } { g_@@_info_ #1 _tl }
- \\ [ 20 pt ]
+ \@@_box_ulined:nc { 14 em } { g_@@_info_ #1 _tl }
+ \\ [ 20 pt ]
}
\end { tabular }
},
@@ -2184,7 +2201,7 @@
}
% \end{macrocode}
%
-% 封面日期。
+% 本科生封面日期。
% \begin{macrocode}
\@@_define_element:nn { i / cover / date }
{
@@ -2194,7 +2211,7 @@
}
% \end{macrocode}
%
-% 扉页论文中文标题。
+% 本科生扉页论文中文标题。
% \begin{macrocode}
\@@_define_element:nn { i / title-page / title }
{
@@ -2205,7 +2222,7 @@
}
% \end{macrocode}
%
-% 扉页论文英文标题。
+% 本科生扉页论文英文标题。
% \begin{macrocode}
\@@_define_element:nn { i / title-page / title-en }
{
@@ -2215,7 +2232,7 @@
}
% \end{macrocode}
%
-% 扉页信息栏。
+% 本科生扉页信息栏。
% \begin{macrocode}
\DeclareInstanceCopy { sysu } { i / title-page / info } { i / cover / info }
\EditInstance { sysu } { i / title-page / info }
@@ -2225,7 +2242,7 @@
}
% \end{macrocode}
%
-% 扉页日期。
+% 本科生扉页日期。
% \begin{macrocode}
\@@_define_element:nn { i / title-page / date }
{
@@ -2235,7 +2252,7 @@
}
% \end{macrocode}
%
-% 声明页学术诚信声明。
+% 本科生声明页学术诚信声明。
% \begin{macrocode}
\@@_define_element:nn { i / declaration / integr-decl }
{
@@ -2257,7 +2274,7 @@
}
% \end{macrocode}
%
-% 声明页作者签名。
+% 本科生声明页作者签名。
% \begin{macrocode}
\@@_define_element:nn { i / declaration / author-sign }
{
@@ -2278,7 +2295,7 @@
%
% \subsubsection{研究生页面对象实例}
%
-% 封面密级和编号。
+% 研究生封面密级和编号。
% \begin{macrocode}
\@@_define_element:nn { ii / cover / secret-code }
{
@@ -2296,36 +2313,16 @@
}
% \end{macrocode}
%
-% 封面校名图片。
+% 研究生封面校名图片。
% \begin{macrocode}
\@@_define_element:nn { ii / cover / school-image }
{
- code-before =
- {
- \bool_if:NTF \g_@@_image_ii_bool
- {
- \tl_set:Nn \l_@@_tmpa_tl
- {
- \includegraphics [ width = 9 cm ]
- { \g_@@_style_logo_path_tl }
- }
- }
- {
- \tl_set:Nn \l_@@_tmpa_tl
- {
- \sysudraw { name-cn } [ landscape ] [ 2.5 cm ] [ white ]
- [ draw = \g_@@_style_color_tl, line~width = 1 pt ]
- \msg_warning:nnV { sysuthesis } { image-not-found }
- \g_@@_style_logo_path_tl
- }
- }
- },
- content = \l_@@_tmpa_tl,
+ content = \@@_logo:,
bottom-skip = 20 pt
}
% \end{macrocode}
%
-% 封面论文类型名称。
+% 研究生封面论文类型名称。
% \begin{macrocode}
\@@_define_element:nn { ii / cover / thesis-type-name }
{
@@ -2339,7 +2336,7 @@
}
% \end{macrocode}
%
-% 封面论文中文标题。
+% 研究生封面论文中文标题。
% \begin{macrocode}
\@@_define_element:nn { ii / cover / title }
{
@@ -2352,7 +2349,7 @@
}
% \end{macrocode}
%
-% 封面论文英文标题。
+% 研究生封面论文英文标题。
% \begin{macrocode}
\@@_define_element:nn { ii / cover / title-en }
{
@@ -2366,19 +2363,19 @@
}
% \end{macrocode}
%
-% 封面信息栏。
+% 研究生封面信息栏。
% \begin{macrocode}
\@@_define_element:nn { ii / cover / info }
{
content =
{
- \begin { tabular } { c @ { : } c }
+ \begin { tabular } { l @ { : } c }
\@@_box_spread:nn { 7em } { 学位申请人 } &
- \@@_box_ulined:nN { 10 em } \g_@@_info_author_tl \\
+ \@@_box_ulined:nN { 10 em } \g_@@_info_author_tl \\
\@@_box_spread:nn { 7em } { 导师姓名及职称 } &
- \@@_box_ulined:nN { 10 em } \g_@@_info_supervisors_tl \\
+ \@@_box_ulined:nN { 10 em } \g_@@_info_supervisors_tl \\
\@@_box_spread:nn { 7em } { 专业名称 } &
- \@@_box_ulined:nN { 10 em } \g_@@_info_major_tl
+ \@@_box_ulined:nN { 10 em } \g_@@_info_major_tl
\end { tabular }
},
format = \kaishu \large,
@@ -2386,7 +2383,7 @@
}
% \end{macrocode}
%
-% 封面日期。
+% 研究生封面日期。
% \begin{macrocode}
\@@_define_element:nn { ii / cover / date }
{
@@ -2396,7 +2393,7 @@
}
% \end{macrocode}
%
-% 扉页论文类型名称。
+% 研究生扉页论文类型名称。
% \begin{macrocode}
\@@_define_element:nn { ii / title-page / thesis-type-name }
{
@@ -2406,7 +2403,7 @@
}
% \end{macrocode}
%
-% 扉页论文中文标题。
+% 研究生扉页论文中文标题。
% \begin{macrocode}
\@@_define_element:nn { ii / title-page / title }
{
@@ -2416,7 +2413,7 @@
}
% \end{macrocode}
%
-% 扉页论文英文标题。
+% 研究生扉页论文英文标题。
% \begin{macrocode}
\@@_define_element:nn { ii / title-page / title-en }
{
@@ -2426,16 +2423,19 @@
}
% \end{macrocode}
%
-% 扉页信息栏。
+% 研究生扉页信息栏。
% \begin{macrocode}
\@@_define_element:nn { ii / title-page / info }
{
content =
{
- \begin { tabular } { r @ { : } l }
- 专业 & \g_@@_info_major_tl \\
- 申请人 & \g_@@_info_author_tl \\
- 指导教师 & \g_@@_info_supervisors_tl
+ \begin { tabular } { l @ { : } c }
+ \@@_box_spread:nn { 4 em } { 专业 } &
+ \g_@@_info_major_tl \\
+ \@@_box_spread:nn { 4 em } { 申请人 } &
+ \g_@@_info_author_tl \\
+ \@@_box_spread:nn { 4 em } { 指导教师 } &
+ \g_@@_info_supervisors_tl
\end { tabular }
},
format = \zihao { 3 },
@@ -2443,7 +2443,7 @@
}
% \end{macrocode}
%
-% 扉页答辩委员会。
+% 研究生扉页答辩委员会。
% \begin{macrocode}
\@@_define_element:nn { ii / title-page / committee }
{
@@ -2460,7 +2460,7 @@
}
% \end{macrocode}
%
-% 扉页日期。
+% 研究生扉页日期。
% \begin{macrocode}
\@@_define_element:nn { ii / title-page / date }
{
@@ -2469,7 +2469,7 @@
}
% \end{macrocode}
%
-% 声明页论文原创性声明。
+% 研究生声明页论文原创性声明。
% \begin{macrocode}
\@@_define_element:nn { ii / declaration / orig-decl }
{
@@ -2490,7 +2490,7 @@
}
% \end{macrocode}
%
-% 声明页作者签名。
+% 研究生声明页作者签名。
% \begin{macrocode}
\@@_define_element:nn { ii / declaration / author-sign }
{
@@ -2510,7 +2510,7 @@
}
% \end{macrocode}
%
-% 声明页授权申明标题。
+% 研究生声明页授权申明标题。
% \begin{macrocode}
\@@_define_element:nn { ii / declaration / auth-title }
{
@@ -2520,7 +2520,7 @@
}
% \end{macrocode}
%
-% 声明页学位论文使用授权声明。
+% 研究生声明页学位论文使用授权声明。
% \begin{macrocode}
\@@_define_element:nn { ii / declaration / auth-decl }
{
@@ -2545,7 +2545,7 @@
}
% \end{macrocode}
%
-% 声明页作者导师签名。
+% 研究生声明页作者导师签名。
% \begin{macrocode}
\@@_define_element:nn { ii / declaration / author-supervisors-sign }
{
@@ -2785,11 +2785,11 @@
{
\begin { tabular } { l @ { : } c }
\@@_box_spread:nN { 4 em } \c_@@_name_major_tl &
- \g_@@_info_major_tl \\
+ \g_@@_info_major_tl \\
\@@_box_spread:nN { 4 em } \g_@@_name_degree_tl &
- \g_@@_info_author_tl \\
+ \g_@@_info_author_tl \\
\@@_box_spread:nN { 4 em } \c_@@_name_supervisors_tl &
- \g_@@_info_supervisors_tl
+ \g_@@_info_supervisors_tl
\end { tabular }
},
format = \zihao { 4 },
Modified: trunk/Master/texmf-dist/tex/latex/sysuthesis/sysuthesis.cls
===================================================================
--- trunk/Master/texmf-dist/tex/latex/sysuthesis/sysuthesis.cls 2025-08-16 23:48:05 UTC (rev 76074)
+++ trunk/Master/texmf-dist/tex/latex/sysuthesis/sysuthesis.cls 2025-08-17 20:17:00 UTC (rev 76075)
@@ -20,7 +20,7 @@
%% `.dtx' through XeTeX.
%%
\NeedsTeXFormat{LaTeX2e}
- \GetIdInfo $Id: sysuthesis.dtx 0.4.0 2025-07-11 12:00:00 +0800 Renier Tan <irantan at 163.com> $
+ \GetIdInfo $Id: sysuthesis.dtx 0.5.0 2025-08-17 12:00:00 +0800 Renier Tan <irantan at 163.com> $
{Thesis template for Sun Yat-sen University}
\ProvidesExplClass{sysuthesis}
{\ExplFileDate}{\ExplFileVersion}{\ExplFileDescription}
@@ -251,7 +251,6 @@
\keys_define:nn { sysu / style }
{
cjk-font .tl_gset:N = \g__sysu_style_cjk_font_tl,
- cjk-font .initial:n = fandol,
math-font .tl_gset:N = \g__sysu_style_math_font_tl,
math-font .initial:n = xits,
color .tl_gset:N = \g__sysu_style_color_tl,
@@ -325,6 +324,13 @@
\keys_set:ne { ctex }
{ fontset = \g__sysu_style_cjk_font_tl }
}
+\sys_if_platform_windows:TF
+ { \tl_gset:Nn \g__sysu_style_cjk_font_tl { windows } }
+ {
+ \ctex_if_platform_macos:TF
+ { \tl_gset:Nn \g__sysu_style_cjk_font_tl { mac } }
+ { \tl_gset:Nn \g__sysu_style_cjk_font_tl { ubuntu } }
+ }
\hook_gput_code:nnn { begindocument / before } { . }
{
\bool_lazy_and:nnT
@@ -538,6 +544,15 @@
beforeskip = \baselineskip,
afterskip = \baselineskip,
fixskip = true
+ },
+ paragraph =
+ {
+ numbering = false,
+ format = \raggedright \songti \bfseries \zihao { -4 },
+ indent = 2 \ccwd,
+ beforeskip = \baselineskip,
+ afterskip = \baselineskip,
+ fixskip = true
}
}
\tl_set_eq:NN \l__sysu_section_style_iii_tl
@@ -675,8 +690,6 @@
\clist_map_inline:nn
{ ./figures, ./images, ./logos, ./pictures }
{ \seq_push:Nn \l_file_search_path_seq { #1 } }
-\bool_new:N \g__sysu_image_i_bool
-\bool_new:N \g__sysu_image_ii_bool
\hook_gput_code:nnn { begindocument / before } { . }
{
\tl_if_empty:NT \g__sysu_style_logo_path_tl
@@ -685,44 +698,34 @@
{ \tl_gset:Nn \g__sysu_style_logo_path_tl { sysu-emblem.pdf } }
{ \tl_gset:Nn \g__sysu_style_logo_path_tl { sysu-name-cn.pdf } }
}
- \bool_gset:Nn \g__sysu_image_i_bool
- { \file_if_exist_p:V \g__sysu_style_logo_path_tl }
- \bool_gset:Nn \g__sysu_image_ii_bool
- { \file_if_exist_p:V \g__sysu_style_logo_path_tl }
- \bool_lazy_or:nnF
- {
- \g__sysu_image_i_bool &&
- \int_compare_p:nNn { \g__sysu_info_type_int } = { 1 }
- }
- {
- \g__sysu_image_ii_bool &&
- \int_compare_p:nNn { \g__sysu_info_type_int } > { 1 }
- }
+ \file_if_exist:VF \g__sysu_style_logo_path_tl
{ \RequirePackage { sysuvisual } }
}
-\__sysu_define_element:nn { i / cover / emblem-image }
+\cs_new_protected:Npn \__sysu_logo:
{
- code-before =
+ \file_if_exist:VTF \g__sysu_style_logo_path_tl
{
- \bool_if:NTF \g__sysu_image_i_bool
+ \int_compare:nNnTF { \g__sysu_info_type_int } = { 1 }
+ { \includegraphics [ width = 3 cm ] { \g__sysu_style_logo_path_tl } }
+ { \includegraphics [ width = 9 cm ] { \g__sysu_style_logo_path_tl } }
+ }
+ {
+ \int_compare:nNnTF { \g__sysu_info_type_int } = { 1 }
{
- \tl_set:Nn \l__sysu_tmpa_tl
- {
- \includegraphics [ width = 3 cm ]
- { \g__sysu_style_logo_path_tl }
- }
+ \sysudraw { badge } [ landscape ] [ 3 cm ]
+ [ \g__sysu_style_color_tl ]
}
{
- \tl_set:Nn \l__sysu_tmpa_tl
- {
- \sysudraw { badge }
- [ landscape ] [ 3 cm ] [ \g__sysu_style_color_tl ]
- }
- \msg_warning:nnV { sysuthesis } { image-not-found }
- \g__sysu_style_logo_path_tl
+ \sysudraw { name-cn } [ landscape ] [ 2.5 cm ] [ white ]
+ [ draw = \g__sysu_style_color_tl, line~width = 1 pt ]
}
- },
- content = \l__sysu_tmpa_tl,
+ \msg_warning:nnV { sysuthesis } { image-not-found }
+ \g__sysu_style_logo_path_tl
+ }
+ }
+\__sysu_define_element:nn { i / cover / emblem-image }
+ {
+ content = \__sysu_logo:,
bottom-skip = 20 pt
}
\__sysu_define_element:nn { i / cover / thesis-type-name }
@@ -731,7 +734,7 @@
format =
{
\color { \g__sysu_style_color_tl } \bfseries
- \str_if_eq:VnT \g__sysu_style_cjk_font_tl { windows }
+ \str_if_eq:VnTF \g__sysu_style_cjk_font_tl { windows }
{ \CJKfontspec { STZHONGS.TTF } } { \songti }
\fontsize { 36 bp } { 36 bp } \selectfont
},
@@ -758,7 +761,7 @@
{
\begin { tabular } { r @ { } p { 18 em } }
题目: &
- \seq_use:Nn \l__sysu_tmpa_seq { \\ [ 10 pt ] & }
+ \seq_use:Nn \l__sysu_tmpa_seq { \\ [ 10 pt ] & }
\end { tabular }
},
format = \heiti \LARGE,
@@ -773,8 +776,8 @@
{ author, student_id, department, major, supervisors }
{
\__sysu_box_spread:nc { 4 em } { c__sysu_name_ #1 _tl } &
- \__sysu_box_ulined:nc { 14 em } { g__sysu_info_ #1 _tl }
- \\ [ 20 pt ]
+ \__sysu_box_ulined:nc { 14 em } { g__sysu_info_ #1 _tl }
+ \\ [ 20 pt ]
}
\end { tabular }
},
@@ -861,27 +864,7 @@
}
\__sysu_define_element:nn { ii / cover / school-image }
{
- code-before =
- {
- \bool_if:NTF \g__sysu_image_ii_bool
- {
- \tl_set:Nn \l__sysu_tmpa_tl
- {
- \includegraphics [ width = 9 cm ]
- { \g__sysu_style_logo_path_tl }
- }
- }
- {
- \tl_set:Nn \l__sysu_tmpa_tl
- {
- \sysudraw { name-cn } [ landscape ] [ 2.5 cm ] [ white ]
- [ draw = \g__sysu_style_color_tl, line~width = 1 pt ]
- \msg_warning:nnV { sysuthesis } { image-not-found }
- \g__sysu_style_logo_path_tl
- }
- }
- },
- content = \l__sysu_tmpa_tl,
+ content = \__sysu_logo:,
bottom-skip = 20 pt
}
\__sysu_define_element:nn { ii / cover / thesis-type-name }
@@ -917,13 +900,13 @@
{
content =
{
- \begin { tabular } { c @ { : } c }
+ \begin { tabular } { l @ { : } c }
\__sysu_box_spread:nn { 7em } { 学位申请人 } &
- \__sysu_box_ulined:nN { 10 em } \g__sysu_info_author_tl \\
+ \__sysu_box_ulined:nN { 10 em } \g__sysu_info_author_tl \\
\__sysu_box_spread:nn { 7em } { 导师姓名及职称 } &
- \__sysu_box_ulined:nN { 10 em } \g__sysu_info_supervisors_tl \\
+ \__sysu_box_ulined:nN { 10 em } \g__sysu_info_supervisors_tl \\
\__sysu_box_spread:nn { 7em } { 专业名称 } &
- \__sysu_box_ulined:nN { 10 em } \g__sysu_info_major_tl
+ \__sysu_box_ulined:nN { 10 em } \g__sysu_info_major_tl
\end { tabular }
},
format = \kaishu \large,
@@ -957,10 +940,13 @@
{
content =
{
- \begin { tabular } { r @ { : } l }
- 专业 & \g__sysu_info_major_tl \\
- 申请人 & \g__sysu_info_author_tl \\
- 指导教师 & \g__sysu_info_supervisors_tl
+ \begin { tabular } { l @ { : } c }
+ \__sysu_box_spread:nn { 4 em } { 专业 } &
+ \g__sysu_info_major_tl \\
+ \__sysu_box_spread:nn { 4 em } { 申请人 } &
+ \g__sysu_info_author_tl \\
+ \__sysu_box_spread:nn { 4 em } { 指导教师 } &
+ \g__sysu_info_supervisors_tl
\end { tabular }
},
format = \zihao { 3 },
@@ -1185,11 +1171,11 @@
{
\begin { tabular } { l @ { : } c }
\__sysu_box_spread:nN { 4 em } \c__sysu_name_major_tl &
- \g__sysu_info_major_tl \\
+ \g__sysu_info_major_tl \\
\__sysu_box_spread:nN { 4 em } \g__sysu_name_degree_tl &
- \g__sysu_info_author_tl \\
+ \g__sysu_info_author_tl \\
\__sysu_box_spread:nN { 4 em } \c__sysu_name_supervisors_tl &
- \g__sysu_info_supervisors_tl
+ \g__sysu_info_supervisors_tl
\end { tabular }
},
format = \zihao { 4 },
Modified: trunk/Master/texmf-dist/tex/latex/sysuthesis/sysuvisual.sty
===================================================================
--- trunk/Master/texmf-dist/tex/latex/sysuthesis/sysuvisual.sty 2025-08-16 23:48:05 UTC (rev 76074)
+++ trunk/Master/texmf-dist/tex/latex/sysuthesis/sysuvisual.sty 2025-08-17 20:17:00 UTC (rev 76075)
@@ -20,7 +20,7 @@
%% `.dtx' through XeTeX.
%%
\NeedsTeXFormat{LaTeX2e}
- \GetIdInfo $Id: sysuthesis.dtx 0.4.0 2025-07-11 12:00:00 +0800 Renier Tan <irantan at 163.com> $
+ \GetIdInfo $Id: sysuthesis.dtx 0.5.0 2025-08-17 12:00:00 +0800 Renier Tan <irantan at 163.com> $
{Sun Yat-sen University's visual elements}
\ProvidesExplPackage{sysuvisual}
{\ExplFileDate}{\ExplFileVersion}{\ExplFileDescription}
More information about the tex-live-commits
mailing list.