\ProvidesFile{tongji-graduate.def}[v1.7.0 Graduate thesis format (TongjiThesis)] %x-release-please-version % 硕士、博士学位论文(degree=master|doctor)的版式。tongjithesis.cls 在本科版式之后读入本文件, % 本文件改写其中与学位有关的部分,并定义研究生论文特有的部分。 % % 依据:《同济大学研究生学位论文写作参考指南》(研究生院,2025 年 10 月,下称“指南”)及 % 研究生院随指南发布的《写作参考示例》(2025 年 10 月 31 日,下称“示例”)。各学位评定 % 分委员会可根据学科专业特点自行制定格式(指南前言),学院另有规定的从其规定。 % 盲审版本依据《同济大学研究生学位论文送盲审印刷格式的统一要求》。 % % 字号用 ctex 的 \zihao;Word 的“磅”即 bp。固定行距写成 \setstretch 的倍数: % 目标磅数 ÷ (字号 × 1.2),与本科的 \tjinfoabstractspread 同一算法。 % ------------------------------------------ % 行距与字号 % ------------------------------------------ % 正文、摘要、附录与致谢:小四号,行距 20 磅(指南 4.4、4.6、4.7),20÷(12×1.2)≈1.3889。 \renewcommand{\tjlinespread}{1.3889} \setstretch{\tjlinespread} % 目录:小四号,行距 18 磅(指南 4.5),18÷(12×1.2)=1.25。 \renewcommand{\tjtoclinespread}{1.25} % 符号说明、参考文献、个人简历及学术成果:五号,行距 16 磅(指南 4.7)。 \newcommand{\tj@grad@smallfont}{\fontsize{10.5bp}{16bp}\linespread{1}\selectfont} % 标题、题注、封面:单倍行距(撤销全文的 \setstretch)。 \newcommand{\tj@grad@single}{\linespread{1}\selectfont} % 表内文字:指南没有规定,取五号、单倍行距,与题注相同(本科为五号、行距 18 磅)。 \renewcommand{\tjfonttable}{\fontsize{10.5bp}{12.6bp}\linespread{1}\selectfont} % ------------------------------------------ % 版心与装订线 % ------------------------------------------ % 指南 4.1:A4,上、下 2.54cm,左、右 3.17cm,装订线 0cm;页眉距页边 2.0cm,页脚距页边 1.5cm。 % Word 从距页边 2.0cm 处排页眉(宋体五号)与其下框线,框线低于 2.54cm 的上边距时,正文随之 % 下移;正文首行(不含标题)另有“段前 0.7 行”(示例批注)。以下位置按示例在 Word 中的排版 % 实测(距纸边):页眉基线 24.3mm,页眉线 25.9mm,正文首行基线 35.5mm,章标题基线 41.6mm, % 页码基线 281.0mm(距下边 16.0mm)。故 headsep 为 −0.41mm(页眉线在版心顶下 0.5mm)、页眉 % 文字与页眉线相距 1.49mm(见页眉)、\topskip 为 10.07mm、footskip 为 0.944cm;章标题的 % beforeskip 见层次标题。封面不受 \topskip 影响(\tj@grad@covertopskip)。 \geometry{top=2.54cm, bottom=2.54cm, left=3.17cm, right=3.17cm, headheight=15bp, headsep=-0.41mm, footskip=0.944cm} \newdimen\tj@grad@covertopskip \tj@grad@covertopskip=\topskip \setlength{\topskip}{10.07mm} % 研究生论文不画本科的装订线。 \tjbindinglinefalse % ------------------------------------------ % 页眉与页码 % ------------------------------------------ % 指南 3.3、4.1:页眉从中文摘要开始,居中,宋体五号(Abstract 部分用 Times New Roman),内容为 % 所在部分或章的标题(“摘要”“第1章 引言”“参考文献”……);页码宋体五号居中,第 1 章之前 % 用大写罗马数字(Ⅰ、Ⅱ……)单独编排,从第 1 章起用阿拉伯数字。页眉下画一条细线(示例)。 % 没有标题的页(原创性声明)不画这条线。 \newcommand{\tj@grad@headrule}{% \setbox\z@\hbox{\leftmark}% \ifdim\wd\z@>\z@ \hrule\@height\headrulewidth\@width\headwidth\vskip-\headrulewidth \fi} \fancypagestyle{tj@grad}{% \fancyhf{}% % 页眉文字的基线在页眉线上方 1.49mm(示例实测,见版心)。 \fancyhead[C]{\songti\zihao{5}\tj@grad@single\leftmark\rule[-1.49mm]{\z@}{1.49mm}}% \fancyfoot[C]{\songti\zihao{5}\thepage}% \renewcommand{\headrulewidth}{0.5bp}% \renewcommand{\headrule}{\tj@grad@headrule}% \renewcommand{\footrulewidth}{0pt}% \renewcommand{\chaptermark}[1]{\markboth{\CTEXifname{\CTEXthechapter\hspace{1em}}{}##1}{}}% } % 原创性声明与版权使用授权书:只有页码。 \fancypagestyle{tj@gradplain}{% \fancyhf{}% \fancyfoot[C]{\songti\zihao{5}\thepage}% \renewcommand{\headrulewidth}{0pt}% \renewcommand{\footrulewidth}{0pt}% } \renewcommand{\frontmatter}{% \tj@origfrontmatter \pagenumbering{Roman}% \pagestyle{tj@grad}% \fancypagestyle{plain}{\pagestyle{tj@grad}}% } \renewcommand{\mainmatter}{% \tj@origmainmatter \pagestyle{tj@grad}% \fancypagestyle{plain}{\pagestyle{tj@grad}}% } % ------------------------------------------ % 层次标题 % ------------------------------------------ % 指南 3.2、4.6:各层次标题一律用阿拉伯数字连续编号;章标题居中,各节标题左顶格,序号与 % 题名之间空一个字。均为单倍行距。 % 章:“第1章 ×××”,黑体三号加粗,段前 24 磅、段后 18 磅。Word 的段前从页眉线下量起, % 单倍行距的三号黑体行把基线放在行顶下约 7mm,示例的章标题基线距纸边 41.6mm;本模板的 % 章标题不受 \topskip 影响(fixskip),段前取 33.6bp,基线落在同一位置 % 一级节:“1.3 ×××”,黑体小三号,段前 24 磅、段后 6 磅 % 二级节:“1.3.1 ×××”,黑体四号,段前 12 磅、段后 6 磅 % 三级节:“1.3.1.1 ×××”,黑体小四号,段前 12 磅、段后 6 磅 % 摘要、目录、参考文献、附录、致谢等部分的标题与章标题相同(指南 4.4、4.5、4.7)。 \renewcommand{\thesubsubsection}{\thesubsection.\arabic{subsubsection}} \ctexset{ chapter = { format = {\centering\heiti\tj@grad@heilatin\bfseries\zihao{3}\tj@grad@single}, name = {第,章}, number = {\arabic{chapter}}, aftername = {\hspace{1em}}, beforeskip = {33.6bp}, afterskip = {18bp}, fixskip = true, % twoside 时各部分从奇数页开始;文档类选项 openany 改为从下一页开始(空白页较少)。 break = {\if@openright\cleardoublepage\else\clearpage\fi}, afterindent = true, }, section = { format = {\heiti\tj@grad@heilatin\zihao{-3}\tj@grad@single}, aftername = {\hspace{1em}}, beforeskip = {24bp}, afterskip = {6bp}, indent = {0pt}, afterindent = true, }, subsection = { format = {\heiti\tj@grad@heilatin\zihao{4}\tj@grad@single}, aftername = {\hspace{1em}}, beforeskip = {12bp}, afterskip = {6bp}, indent = {0pt}, afterindent = true, }, subsubsection = { format = {\heiti\tj@grad@heilatin\zihao{-4}\tj@grad@single}, number = {\thesubsubsection}, aftername = {\hspace{1em}}, beforeskip = {12bp}, afterskip = {6bp}, indent = {0pt}, aftertitle = {}, afterindent = true, }, % 指南 2.9:附录用 A、B、C 编号,标题为“附录A ×××”。 appendix = { name = {附录}, number = {\Alph{chapter}}, }, } % 未编号部分的标题与章标题同为三号(本科为四号)。 \renewcommand{\tj@unnumberedheadingformat}{} % ------------------------------------------ % 图表题注 % ------------------------------------------ % 指南 3.4、4.6:图序、图名置于图的下方,表序、表名置于表的上方,宋体五号,居中,单倍行距; % 图序与图名之间空一个字;图题段前 6 磅(与图之间),表题段后 6 磅(与表之间)。 \DeclareCaptionLabelSeparator{tj@grad@space}{\hspace{1em}} \DeclareCaptionFont{tj@grad@single}{\tj@grad@single} \captionsetup{labelsep=tj@grad@space,font+=tj@grad@single} \captionsetup[figure]{skip=6bp} \captionsetup[table]{skip=6bp} % 续表(指南 3.4.2):表格转页接排时,只需在续表上方居中注明“续表”,续表的表头重复排出; % 转页处的表尾只有底线,不写“续下页”。 \renewcommand{\tjlongtablecont}[1]{% \multicolumn{#1}{c}{\zihao{5}\songti\tj@lang{续表}{\tablename~\thetable\ (continued)}}\\} \renewcommand{\tjlongtablefoot}[1]{\bottomrule} % ------------------------------------------ % 目录 % ------------------------------------------ % 指南 4.5:标题“目录”同章标题;各条目宋体小四号,行距 18 磅,页码右对齐,一级节缩进 2 字, % 二级节缩进 4 字(本科已如此,见 Table of Contents Formatting)。章条目写作“第1章 ×××”。 % 编号与题名之间空一格(示例:“3.5 有关图、表、表达式”),不按固定宽度对齐:\numberline % 取编号的自然宽度,后接半个字的空格;插图、表格清单相同。条目折行时续行仍按下列宽度缩进。 \renewcommand{\contentsname}{\tj@lang{目录}{Contents}} \setlength{\cftchapnumwidth}{4em} \setlength{\cftsecnumwidth}{2.5em} \setlength{\cftsubsecnumwidth}{3.5em} \ctexset{chapter/tocline = {\CTEXnumberline{#1}#2}} % 照 tocloft(v3.0d)的 \numberline 改写,只把定宽盒子换成自然宽度加空格。 \renewcommand{\numberline}[1]{% \@cftinitnumwidth{#1}% \UseHookWithArguments{contentsline/number/before}{1}{#1}% \@cftbsnum #1\@cftasnum \UseHookWithArguments{contentsline/number/after}{1}{#1}% \hspace{0.5em}\@cftasnumb} % ------------------------------------------ % 参考文献 % ------------------------------------------ % 指南 4.7:宋体五号,悬挂缩进 2 字符,行距 16 磅,段前段后 0 磅。五号的 2 字符为 % 21bp≈0.74cm,正是本科的序号宽度(见 Bibliography Configuration),故只改字号与间距。 \iftongjithesis@biblatex \renewcommand*{\bibfont}{\tj@grad@smallfont} \setlength{\bibitemsep}{0pt} \else \providecommand{\bibfont}{} \renewcommand{\bibfont}{\tj@grad@smallfont} \setlength{\bibsep}{0pt} \fi % ------------------------------------------ % 附录 % ------------------------------------------ % 指南 2.9:附录序号用 A、B、C……,每个附录一章,标题为“附录A ×××”;附录中的图、表、 % 公式编号为 A1、A2……(图A1、表A1、式(A1))。\appendixsection 即 \chapter, % \appendixsubsection 即 \section(节号为 A.1),chapters/appendix.tex 因而同时适用于本科与研究生。 \renewcommand{\appendix}{% \tj@origappendix \renewcommand{\thefigure}{\thechapter\arabic{figure}}% \renewcommand{\thetable}{\thechapter\arabic{table}}% \renewcommand{\theequation}{\thechapter\arabic{equation}}% \renewcommand{\thealgorithm}{\thechapter\arabic{algorithm}}% \@ifundefined{c@listing}{}{\renewcommand{\thelisting}{\thechapter\arabic{listing}}}% } \renewcommand{\appendixsection}{\chapter} \renewcommand{\appendixsubsection}{\section} % ------------------------------------------ % 字体 % ------------------------------------------ \ExplSyntaxOn \msg_new:nnn { tongjithesis } { graduate-lishu } { The~LiSu~font~(simli.ttf)~was~not~found~for~fontset~=~\tongjithesis@fontset,~ so~the~degree~lines~of~the~graduate~cover~use~Kai,~not~bold,~instead. } % 封面的“硕士学位论文”与“(学术学位)”用隶书加粗(示例);windows 与 founder 字体集的隶书 % 模拟加粗。字体集没有隶书(fandol、texlive、adobe、mac,或 Windows 未装补充字体)时改用 % 楷体,楷体没有粗体,故不加粗,并警告一次。\tj@grad@lishu 选字体与粗细。 % 族是否存在:XeTeX 由 xeCJK、LuaTeX 由 ctex 的 luatexja 接口判断(后者不是公开接口, % 不存在时视为没有隶书)。 \bool_new:N \g__tongjithesis_lishu_bool \cs_if_exist:NT \lishu { \group_begin: \sys_if_engine_xetex:TF { \xeCJK_family_if_exist:nT { zhli } { \bool_gset_true:N \g__tongjithesis_lishu_bool } } { \cs_if_exist:NT \ctex_ltj_family_if_exist:nNT { \ctex_ltj_family_if_exist:nNT { zhli } \l_tmpa_tl { \bool_gset_true:N \g__tongjithesis_lishu_bool } } } \group_end: } \bool_if:NTF \g__tongjithesis_lishu_bool { \cs_new_protected:Npn \tj@grad@lishu { \lishu \bfseries } } { \cs_new_protected:Npn \tj@grad@lishu { \kaishu } \msg_warning:nn { tongjithesis } { graduate-lishu } } \ExplSyntaxOff % 标题中的数字与西文:指南 4.6 的各级标题只写黑体,示例的“第1章”“1.1”也用黑体排数字,故 % \tj@grad@heilatin 把西文字体换成本字体集的黑体(宋体、黑体模拟加粗的字体集同样模拟加粗)。 % 字体集的黑体:用 \tj@cjkfonts 定义的字体集(windows、founder、adobe、texlive 与按其写法自定义 % 的字体集)取 \tj@hei,fandol 与 mac 各有写法;无从得知时(其他自定义字体集)西文保持原样。 % 英文论文(language=english)的标题仍用西文字体。黑体没有小型大写,标题中的 \scshape(如 % \BibLaTeX、\TongjiThesis)改用直立体,不再警告。 \newcommand{\tj@grad@heilatin}{} \ExplSyntaxOn \tl_new:N \l__tongjithesis_heilatin_tl % \__tongjithesis_heilatin:nn {<字体>} {<选项>}:两者先展开(字体名、Path=、描边宽度),再建立 % 西文字体族,族名存入 \l__tongjithesis_heilatin_tl。 \cs_new_protected:Npn \__tongjithesis_heilatin:nn #1#2 { \use:e { \exp_not:N \fontspec_set_family:Nnn \exp_not:N \l__tongjithesis_heilatin_tl {#2} {#1} } \clist_map_inline:nn { m, b, bx } { \DeclareFontShape { TU } { \l__tongjithesis_heilatin_tl } {##1} { sc } { <-> ssub * \l__tongjithesis_heilatin_tl / ##1 / n } { } } \cs_set_protected:Npe \tj@grad@heilatin { \exp_not:N \fontfamily { \l__tongjithesis_heilatin_tl } \exp_not:N \selectfont } } \iftongjithesis@english \else \str_case:Vn \tongjithesis@fontset { { fandol } { \cs_if_exist:NT \tj@fandolhei { \__tongjithesis_heilatin:nn { FandolHei } { \tj@fandolhei } } } { mac } { \__tongjithesis_heilatin:nn { Heiti~SC } { UprightFont = *~Medium, AutoFakeBold = \tj@fakebold } } } \bool_lazy_or:nnF { \str_if_eq_p:Vn \tongjithesis@fontset { fandol } } { \str_if_eq_p:Vn \tongjithesis@fontset { mac } } { \cs_if_exist:NT \tj@hei { \__tongjithesis_heilatin:nn { \tj@hei } { \tj@cjkpath AutoFakeBold = \tj@fakebold } } } \fi \ExplSyntaxOff % 英文封面题名与英文摘要标题用 Arial(指南 4.2、4.4);系统没有时用 TeX Live 自带、度量与之 % 相近的 TeX Gyre Heros(按文件名加载,各平台都能找到,同 times=true 的回退)。 \IfFontExistsTF{Arial} {\newfontfamily\tj@grad@sffamily{Arial}} {\newfontfamily\tj@grad@sffamily{texgyreheros}[ Extension = .otf, UprightFont = *-regular, BoldFont = *-bold, ItalicFont = *-italic, BoldItalicFont = *-bolditalic, ]} % ------------------------------------------ % 学位与学位类型 % ------------------------------------------ \ExplSyntaxOn % \tj@grad@ifprofessional{<专业学位>}{<学术学位>}:同等学力专业型的栏目同专业学位,同等学力 % 学术型的同学术学位(示例的 4 种中文封面)。 \cs_new:Npn \tj@grad@ifprofessional { \bool_lazy_or:nnTF { \str_if_eq_p:Vn \tongjidegreetype { professional } } { \str_if_eq_p:Vn \tongjidegreetype { equivalent-professional } } } % 封面:“硕士学位论文”“(学术学位)”。 \cs_new:Npn \tj@grad@degreetitle { \iftongjithesis@doctor 博士 \else 硕士 \fi 学位论文 } \cs_new:Npn \tj@grad@degreetype { \str_case:Vn \tongjidegreetype { { academic } { (学术学位) } { professional } { (专业学位) } { equivalent-academic } { (同等学力学术型) } { equivalent-professional } { (同等学力专业型) } } } % 密级与保密期限,如“秘密★2年”(《同济大学涉密研究生与涉密学位论文管理规定》第十五条)。 \cs_new:Npn \tj@grad@secrettext { \str_if_eq:VnTF \tongjisecretlevel { confidential } { 机密 } { 秘密 } \ensuremath { \bigstar } \tongjisecretyears 年 } \ExplSyntaxOff % 英文封面的学位名称:学术学位与同等学力学术型取学科门类(Master of Engineering),专业学位 % 与同等学力专业型取专业学位类别(Master of Finance)。 \newcommand{\tj@grad@degreeeng}{% \iftongjithesis@doctor Doctor\else Master\fi\space of \tj@grad@ifprofessional{\tongjidisciplineeng}{\tongjicategoryeng}} \newcommand{\tj@grad@monthname}[1]{% \ifcase\numexpr#1\relax\or January\or February\or March\or April\or May\or June\or July% \or August\or September\or October\or November\or December\fi} % 封面日期:中文为“二〇二六年五月”(指南 4.2:汉字,不用阿拉伯数字),英文为“May 2026”。 \newcommand{\tj@grad@datecn}{% \ifx\tongjithesisyear\empty\else \zhdigits{\tongjithesisyear}年\ifx\tongjithesismonth\empty\else\zhnumber{\tongjithesismonth}月\fi \fi} \newcommand{\tj@grad@dateen}{% \ifx\tongjithesismonth\empty\else\tj@grad@monthname{\tongjithesismonth}\space\fi \tongjithesisyear} % ------------------------------------------ % 中英文封面 % ------------------------------------------ % 指南 2.1、2.2、4.2 与示例的封面版式: % 中文封面:(涉密论文左上角标密级)校标高 2.6cm;“硕士学位论文”隶书二号加粗; % “(学术学位)”隶书三号加粗;论文题目黑体二号加粗,可分两行,有资助项目时在下一行用 % 宋体三号注明;各栏目仿宋三号,缩进 4.5 字;日期宋体三号,用汉字;均单倍行距、居中。 % 英文封面:校标;“A thesis submitted to …”三行 Times New Roman 四号;题目 Arial 小二号加粗, % 资助项目(funding-en,指南 2.2:英文封面与中文封面相对应)Times New Roman 三号; % 各栏目 Times New Roman 三号,缩进 4.5 字;日期 Times New Roman 三号。 % 副导师(学术学位)或行业导师(专业学位)与联合培养单位非必填,未设置时不列出。 % 盲审版本(blind=true)的姓名、学号、导师与联合培养单位留空,资助项目不列出。 % % \tj@grad@coverline{<格式>}{<文字>}:封面上居中的一行;\tj@grad@field{<栏目>}{<内容>}:封面上 % 的一个栏目。l3build 测试改写这两个命令来记录封面内容(testfiles/support/tjtest.tex)。 \newcommand{\tj@grad@coverline}[2]{{#1#2\par}} \newlength{\tj@grad@labelwidth} \newcommand{\tj@grad@field}[2]{% \raggedright\hyphenpenalty\@M\exhyphenpenalty\@M \settowidth{\tj@grad@labelwidth}{#1}% \hangindent=\dimexpr4.5em+\tj@grad@labelwidth\relax \hangafter=\@ne \noindent\hspace*{4.5em}#1#2\par} % 校标:示例的校标含校徽,为 2.6cm×10cm。模板不附带校徽:logo 键给出正式校标的图片时,按 % 2.6cm×10cm 排入(保持比例);不设置时用校名“同济大学”与“TONGJI UNIVERSITY”,高 2.6cm, % 宽度相应较窄。 \newcommand{\tj@grad@logo}{% \ifx\tongjilogo\empty \resizebox*{!}{2.6cm}{% \begin{tabular}{@{}c@{}} \includegraphics[width=10cm]{figures/tongji.pdf}\\[2mm] \resizebox{10cm}{!}{\rmfamily\MakeUppercase{\tongjiuniversityeng}} \end{tabular}}% \else \includegraphics[width=10cm,height=2.6cm,keepaspectratio]{\tongjilogo}% \fi} % \tj@grad@ifset<中文><英文>{<栏目>}:副导师或行业导师、联合培养单位,中文或英文设置了任何 % 一个时列出该栏目。 \newcommand{\tj@grad@ifset}[3]{% \ifboolexpr{test {\ifdefempty{#1}} and test {\ifdefempty{#2}}}{}{#3}} \newcommand{\tj@grad@cncover}{% \begin{titlepage} \tj@grad@single \topskip=\tj@grad@covertopskip \ifx\tongjisecretlevel\empty\else \vbox to\z@{\tj@grad@coverline{\noindent\heiti\zihao{3}}{\tj@grad@secrettext}\vss}% \fi \begin{center} \tj@grad@logo\par \vspace{0.5\baselineskip}% \tj@grad@coverline{\tj@grad@lishu\zihao{2}}{\tj@grad@degreetitle}% \tj@grad@coverline{\tj@grad@lishu\zihao{3}}{\tj@grad@degreetype}% \vspace{1.5cm}% \tj@grad@coverline{\heiti\bfseries\zihao{2}}{\tongjithesistitle}% \ifx\tongjithesissubtitle\empty\else \vspace{0.3\baselineskip}% \tj@grad@coverline{\heiti\bfseries\zihao{3}}{——\tongjithesissubtitle}% \fi \iftongjithesis@blind\else\ifx\tongjifunding\empty\else \vspace{0.3\baselineskip}% \tj@grad@coverline{\songti\zihao{3}}{\tongjifunding}% \fi\fi \end{center} \vfill {\fangsong\zihao{3}\tj@grad@single \tj@grad@field{姓\hspace{2em}名:}{\tjblind{\tongjiauthor}{}}% \tj@grad@field{学\hspace{2em}号:}{\tjblind{\tongjiauthornumber}{}}% \tj@grad@field{学\hspace{2em}院:}{\tongjischool}% \tj@grad@field{学科门类:}{\tongjicategory}% \tj@grad@ifprofessional {\tj@grad@field{专业学位类别:}{\tongjidiscipline}% \tj@grad@field{专业领域:}{\tongjisubdiscipline}}% {\tj@grad@field{一级学科:}{\tongjidiscipline}% \tj@grad@field{二级学科:}{\tongjisubdiscipline}}% \tj@grad@field{研究方向:}{\tongjiresearchdirection}% \tj@grad@field{指导教师:}{\tjblind{\tongjithesisadvisor}{}}% \tj@grad@ifset\tongjicoadvisor\tongjicoadvisoreng {\tj@grad@ifprofessional {\tj@grad@field{行业导师:}{\tjblind{\tongjicoadvisor}{}}}% {\tj@grad@field{副\hspace{0.5em}导\hspace{0.5em}师:}{\tjblind{\tongjicoadvisor}{}}}}% \tj@grad@ifset\tongjijointunit\tongjijointuniteng {\tj@grad@field{联合培养单位:}{\tjblind{\tongjijointunit}{}}}% \par} \vspace{1.5cm}% \begin{center} \tj@grad@coverline{\songti\zihao{3}}{\tj@grad@datecn}% \end{center} \vspace*{\fill} \end{titlepage}} \newcommand{\tj@grad@encover}{% \begin{titlepage} \tj@grad@single \topskip=\tj@grad@covertopskip \begin{center} \tj@grad@logo\par \vspace{0.5\baselineskip}% {\zihao{4}\linespread{1.5}\selectfont \tj@grad@coverline{}{A \iftongjithesis@doctor dissertation\else thesis\fi\space submitted to}% \tj@grad@coverline{}{\tongjiuniversityeng\space in partial fulfillment of the requirements for}% \tj@grad@coverline{}{the degree of \tj@grad@degreeeng}% \par} \vspace{1.5cm}% \tj@grad@coverline{\tj@grad@sffamily\bfseries\zihao{-2}}{\tongjithesistitleeng}% \ifx\tongjithesissubtitleeng\empty\else \vspace{0.3\baselineskip}% \tj@grad@coverline{\tj@grad@sffamily\bfseries\zihao{3}}{---\tongjithesissubtitleeng}% \fi \iftongjithesis@blind\else\ifx\tongjifundingeng\empty\else \vspace{0.3\baselineskip}% \tj@grad@coverline{\zihao{3}}{\tongjifundingeng}% \fi\fi \end{center} \vfill {\zihao{3}\tj@grad@single \tj@grad@field{Candidate: }{\tjblind{\tongjiauthoreng}{}}% \tj@grad@field{Student Number: }{\tjblind{\tongjiauthornumber}{}}% \tj@grad@field{School: }{\tongjischooleng}% \tj@grad@field{Categories: }{\tongjicategoryeng}% \tj@grad@ifprofessional {\tj@grad@field{Degree: }{\tongjidisciplineeng}% \tj@grad@field{Degree's Field: }{\tongjisubdisciplineeng}}% {\tj@grad@field{First-level Discipline: }{\tongjidisciplineeng}% \tj@grad@field{Second-level Discipline: }{\tongjisubdisciplineeng}}% \tj@grad@field{Research Fields: }{\tongjiresearchdirectioneng}% \tj@grad@field{Supervisor: }{\tjblind{\tongjithesisadvisoreng}{}}% \tj@grad@ifset\tongjicoadvisor\tongjicoadvisoreng {\tj@grad@field{Associate Supervisor: }{\tjblind{\tongjicoadvisoreng}{}}}% \tj@grad@ifset\tongjijointunit\tongjijointuniteng {\tj@grad@field{Joint Training Institution: }{\tjblind{\tongjijointuniteng}{}}}% \par} \vspace{1.5cm}% \begin{center} \tj@grad@coverline{\zihao{3}}{\tj@grad@dateen}% \end{center} \vspace*{\fill} \end{titlepage}} % \MakeCover:中文封面与英文封面。指南 4.8:论文自中文摘要起双面印刷,之前部分单面印刷, % 故 twoside 时每张封面后留一个空白页,中文摘要从新的一张纸开始。 \renewcommand{\MakeCover}{% \ifx\tongjisecretlevel\empty\else\ifx\tongjisecretyears\empty \ClassWarning{tongjithesis}{secret-level is set but secret-years is empty;\MessageBreak the cover names the secrecy level without its period}% \fi\fi \tj@grad@cncover \cleardoublepage \tj@grad@encover \cleardoublepage} % 研究生论文没有本科的信息说明页。 \renewcommand{\MakeInfoPage}{% \ClassWarning{tongjithesis}{\string\MakeInfoPage\space is the undergraduate information\MessageBreak page; a degree=\tongjithesis@degree\space thesis has none, so it is skipped}} % ------------------------------------------ % 摘要 % ------------------------------------------ % 指南 2.3、2.4、4.4:标题“摘要”同章标题,“ABSTRACT”用 Arial 三号加粗;正文宋体(英文 % Times New Roman)小四号,行距 20 磅;关键词 3~5 个,摘要后另起一行,“关键词”三字加粗, % 关键词之间用“,”分开,英文为“Key Words”。摘要不列入目录(示例)。 \renewcommand{\MakeAbstract}[2]{% \chapter*{摘要}% \markboth{摘要}{摘要}% #1\par \vspace{\baselineskip}% \textbf{关键词:}#2\par} \renewcommand{\MakeAbstractEng}[2]{% \chapter*{\tj@grad@sffamily ABSTRACT}% \markboth{Abstract}{Abstract}% \begingroup \tj@siunitxenglish #1\par \vspace{\baselineskip}% \textbf{Key Words:} #2\par \endgroup} % ------------------------------------------ % 符号说明 % ------------------------------------------ % 指南 2.6、4.7:论文中使用了大量符号、缩略词、单位、术语时编写,标题同章标题,正文宋体五号, % 行距 16 磅;放在目录之后、正文之前,不列入目录。 % \begin{notation}[<符号栏宽度,默认 6em>] % \item[$E$] 弹性模量 % \end{notation} \NewDocumentEnvironment{notation}{O{6em}} {% \chapter*{\tj@lang{符号说明}{List of Symbols}}% \markboth{\tj@lang{符号说明}{List of Symbols}}{\tj@lang{符号说明}{List of Symbols}}% \tj@grad@smallfont \begin{list}{}{% \setlength{\labelwidth}{#1}% \setlength{\labelsep}{1em}% \setlength{\leftmargin}{\dimexpr#1+1em\relax}% \setlength{\itemindent}{\z@}% \setlength{\topsep}{\z@}% \setlength{\itemsep}{\z@}% \setlength{\parsep}{\z@}% \renewcommand{\makelabel}[1]{##1\hfil}}% } {\end{list}} % ------------------------------------------ % 致谢 % ------------------------------------------ % 指南 2.10、4.7:标题同章标题,正文仿宋小四号,行距 20 磅;列入目录。盲审版本只保留标题 % (送盲审印刷格式:致谢页不能出现个人信息)。 % 可选参数为文末右对齐的日期(示例:“2025年5月”),紧跟在 \begin{acknowledgements} 之后,如 % \begin{acknowledgements}[2027年6月];致谢正文以“[”开头时不会被当作日期。 \NewDocumentEnvironment{acknowledgements}{!O{} +b} {% \chapter*{\tj@lang{致谢}{Acknowledgements}}% \addcontentsline{toc}{chapter}{\tj@lang{致谢}{Acknowledgements}}% \markboth{\tj@lang{致谢}{Acknowledgements}}{\tj@lang{致谢}{Acknowledgements}}% \tjblind{{\fangsong #2\par \if\relax\detokenize{#1}\relax\else \vspace{\baselineskip}{\raggedleft #1\par}% \fi}}{}% } {} % ------------------------------------------ % 个人简历、在读期间发表的学术成果 % ------------------------------------------ % 指南 2.11、4.7:标题同章标题,正文宋体五号,行距 16 磅,学术论文的书写格式同参考文献; % “个人简历”“已发表论文”等字加粗(示例);列入目录。每组成果各自从 [1] 编号。 % \begin{resume} % \resumeitem{个人简历} % …… % \resumeitem{已发表论文} % \begin{publications} % \item \tjblind{张三,李四. 论文题目[J]. 期刊名称,2026,…}{第一作者. 论文题目[J]. 期刊名称,2026,…} % \end{publications} % \end{resume} % 盲审版本的个人简历与成果中不能出现作者姓名等个人信息,用 \tjblind 给出盲审版的写法; % 用 \tjpublications 从参考文献数据库列出的成果在盲审版本中自动隐去作者。 \newcommand{\tj@grad@resumename}{\tj@lang{个人简历、在读期间发表的学术成果}{Resume and Publications}} \NewDocumentEnvironment{resume}{} {% \chapter*{\tj@grad@resumename}% \addcontentsline{toc}{chapter}{\tj@grad@resumename}% \markboth{\tj@grad@resumename}{\tj@grad@resumename}% \tj@grad@smallfont \setlength{\parindent}{\z@}% } {\par} \newcommand{\resumeitem}[1]{\par\addvspace{\baselineskip}\textbf{#1\tj@lang{:}{:}}\par} % \tjpublications{<条目>, ...}(biblatex=true):从参考文献数据库列出本人的成果,格式同参考文献 % (指南 4.7),单独编号,不进入正文的参考文献表。条目写作 <键> 或 <键> = <盲审版的作者>,如 % \tjpublications{zhang2025 = 第一作者, zhang2026 = 第二作者}。盲审版本(blind=true)不印作者、 % 编者与译者,代之以“= ”后的文字(如“第一作者”);引用键仍留在 PDF 的跳转目标名中。 \ExplSyntaxOn \msg_new:nnnn { tongjithesis } { publications-bibtex } { \iow_char:N \\tjpublications~needs~biblatex~=~true. } { With~biblatex~=~false,~list~the~publications~in~the~publications~environment. } \prop_new:N \l__tongjithesis_pub_prop \seq_new:N \l__tongjithesis_pub_seq \tl_new:N \l__tongjithesis_pub_tl \cs_new_protected:Npn \__tongjithesis_pub_key:n #1 { \seq_put_right:Ne \l__tongjithesis_pub_seq { \tl_trim_spaces:n {#1} } } \cs_new_protected:Npn \__tongjithesis_pub_keyval:nn #1#2 { \__tongjithesis_pub_key:n {#1} \prop_put:Nen \l__tongjithesis_pub_prop { \tl_trim_spaces:n {#1} } {#2} } \cs_generate_variant:Nn \prop_put:Nnn { Ne } \iftongjithesis@biblatex % 每条文献开头的钩子,只在盲审版本的 \tjpublications 中有内容。 \cs_new_protected:Npn \__tongjithesis_pub_item: { } \AtEveryBibitem { \__tongjithesis_pub_item: } \NewDocumentCommand \tjpublications { m } { \prop_clear:N \l__tongjithesis_pub_prop \seq_clear:N \l__tongjithesis_pub_seq \keyval_parse:NNn \__tongjithesis_pub_key:n \__tongjithesis_pub_keyval:nn {#1} \seq_if_empty:NF \l__tongjithesis_pub_seq { \__tongjithesis_publications: } } \cs_new_protected:Npn \__tongjithesis_publications: { \begin{refsection} \exp_args:Ne \nocite { \seq_use:Nn \l__tongjithesis_pub_seq { , } } \group_begin: \iftongjithesis@blind \cs_set_protected:Npn \__tongjithesis_pub_item: { \clearname { author } \clearname { bookauthor } \clearname { editor } \clearname { translator } \prop_get:NeNT \l__tongjithesis_pub_prop { \thefield { entrykey } } \l__tongjithesis_pub_tl { \tl_use:N \l__tongjithesis_pub_tl .~ } } \fi \printbibliography [ heading = none ] \group_end: \end{refsection} } \else \NewDocumentCommand \tjpublications { m } { \msg_error:nn { tongjithesis } { publications-bibtex } } \fi \ExplSyntaxOff \newcounter{tj@publication} \newenvironment{publications} {\list{[\arabic{tj@publication}]}{% \usecounter{tj@publication}% \setlength{\labelwidth}{2em}% \setlength{\labelsep}{\z@}% \setlength{\leftmargin}{\labelwidth}% \setlength{\itemindent}{\z@}% \setlength{\topsep}{\z@}% \setlength{\itemsep}{\z@}% \setlength{\parsep}{\z@}% \renewcommand{\makelabel}[1]{##1\hfil}}} {\endlist} % ------------------------------------------ % 原创性声明与版权使用授权书 % ------------------------------------------ % 指南 2.12、2.13 的原文,格式按示例:标题黑体小二号加粗居中,正文宋体四号,签名、日期与 % “保密/不保密”一栏加粗;签名与日期留作横线,打印后亲笔签名。示例中两者以虚线隔开,按其 % 28~30 磅的行距排不下一页,签名延至次页;本模板取行距 26 磅,两者排在同一页。版权使用 % 授权书的“保密/不保密”方框:设置了 secret-level 时勾选“保密”,否则两格留空,由作者打印后 % 勾选。 % % \MakeDeclarations 排出这一页;设置了 declarations-file(作者与导师签名后扫描的 PDF)时 % 改为把该文件的每一页整页插入(\tj@grad@insertpdf,不另用宏包)。盲审版本(blind=true) % 不签名(送盲审印刷格式第 3、4 条):declarations-file 不用,declarations = keep(默认)排出 % 未签名的一页,omit 不排(有的学院要求删去这两页)。 \newcommand{\tj@grad@declarationtitle}[1]{% {\centering\heiti\bfseries\zihao{-2}\tj@grad@single #1\par}% \vspace{12bp}} \newcommand{\tj@grad@cutline}{% \par\noindent\hbox to\linewidth{\leaders\hbox to 6pt{\hss\rule[0.5ex]{3pt}{0.4pt}\hss}\hfill}\par} % \tj@grad@clearpart:各部分另起一页(twoside 时从奇数页,openany 时从下一页),同章的 break。 \newcommand{\tj@grad@clearpart}{\if@openright\cleardoublepage\else\clearpage\fi} \newcommand{\tj@grad@declarationspage}{% \tj@grad@clearpart \thispagestyle{tj@gradplain}% \markboth{}{}% \begingroup \fontsize{14bp}{26bp}\linespread{1}\selectfont \setlength{\parindent}{2em}% \tj@grad@declarationtitle{同济大学学位论文原创性声明}% 本人郑重声明:所呈交的学位论文《\tjtitlecninline{\tongjithesistitle}% \ifx\tongjithesissubtitle\empty\else——\tjtitlecninline{\tongjithesissubtitle}\fi》, 是本人在导师指导下,独立进行研究工作所取得的成果。除文中已经注明引用的内容外,本学位论文的 研究成果不包含任何他人创作的、已公开发表或者没有公开发表的作品的内容。对本论文所涉及的 研究工作做出贡献的其他个人和集体,均已在文中以明确方式标明。本学位论文原创性声明的法律 责任由本人承担。\par \vspace{0.5\baselineskip}% {\raggedleft\bfseries 学位论文作者签名:\ulinebox{8em}\par 日期:\tjdateblank\par}% \vspace{0.5\baselineskip}% \tj@grad@cutline \vspace{0.5\baselineskip}% \tj@grad@declarationtitle{同济大学学位论文版权使用授权书}% 本人完全了解同济大学关于收集、保存、使用学位论文的规定,同意如下各项内容:按照学校要求 提交学位论文的印刷本和电子版;学校有权保存论文的印刷本和电子版,并采用影印、缩印、扫描、 数字化或其它手段保存论文;学校有权提供目录检索以及提供本论文全文或部分的阅览服务;学校 有权按有关规定向国家有关部门或机构送交论文的复印件和电子版;允许论文被查阅和借阅。学校 有权将本论文的全部或部分内容授权编入有关数据库出版传播。\par {\bfseries 本学位论文属于(在以下方框内打“√”):\par \ifx\tongjisecretlevel\empty\tjunchecked\else\tjchecked\fi \enspace 保密,在\ulinebox{3em}年解密后适用本授权书。\par \tjunchecked\enspace 不保密。\par}% \vspace{0.5\baselineskip}% \noindent {\bfseries \begin{minipage}[t]{0.5\linewidth} 学位论文作者签名:\ulinebox{6em}\par 日期:\tjdateblank \end{minipage}% \begin{minipage}[t]{0.5\linewidth} \raggedleft 指导教师签名:\ulinebox{6em}\par 日期:\tjdateblank \end{minipage}\par}% \endgroup} \ExplSyntaxOn \msg_new:nnnn { tongjithesis } { declarations-file } { declarations-file~'#1'~was~not~found~or~has~no~pages. } { Give~the~path~of~the~signed~PDF~from~the~folder~of~the~main~.tex~file. } \int_new:N \l__tongjithesis_pdfpages_int % \tj@grad@insertpdf{<文件>}:把 PDF 文件的每一页缩放到整页,各占一页,无页眉页码。l3build 测试 % 改写这个命令来记录插入了哪个文件(testfiles/graduate-declarations*.lvt)。 \cs_new_protected:Npn \tj@grad@insertpdf #1 { \__tongjithesis_insert_pdf:n {#1} } \cs_new_protected:Npn \__tongjithesis_insert_pdf:n #1 { \sys_if_engine_xetex:TF { \int_set:Nn \l__tongjithesis_pdfpages_int { \XeTeXpdfpagecount "#1" \scan_stop: } } { \file_if_exist:nTF {#1} { \saveimageresource {#1} \int_set:Nn \l__tongjithesis_pdfpages_int { \lastsavedimageresourcepages } } { \int_zero:N \l__tongjithesis_pdfpages_int } } \int_compare:nNnTF \l__tongjithesis_pdfpages_int < { 1 } { \msg_error:nnn { tongjithesis } { declarations-file } {#1} } { \int_step_inline:nn { \l__tongjithesis_pdfpages_int } { \clearpage \thispagestyle { empty } \AddToShipoutPictureFG* { \AtPageLowerLeft { \includegraphics [ page = ##1 , width = \paperwidth , height = \paperheight ] {#1} } } \null } \clearpage } } \NewDocumentCommand \MakeDeclarations { } { \iftongjithesis@blind \str_if_eq:VnF \tongjideclarations { omit } { \tj@grad@declarationspage } \else \tl_if_blank:VTF \tongjideclarationsfile { \tj@grad@declarationspage } { \tj@grad@clearpart \exp_args:NV \tj@grad@insertpdf \tongjideclarationsfile } \fi } \ExplSyntaxOff