Skip to content

Commit

Permalink
Fix underfull vbox
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexaraWu committed Aug 2, 2020
1 parent dbb87ec commit 4297ca9
Showing 1 changed file with 23 additions and 19 deletions.
42 changes: 23 additions & 19 deletions source/sjtuthesis.dtx
Original file line number Diff line number Diff line change
Expand Up @@ -139,14 +139,14 @@ The Current Maintainer of this work is Alexara Wu.
% \changes{v0.6}{2014/12/17}{学士、硕士、博士学位论文模板合并在了一起。}
% \changes{v0.5.3}{2013/05/26}{更正 \env{subsubsection} 格式错误,这个错误导致如“1.1 小结”这样的标题没有被正确加粗。}
% \changes{v0.5.2}{2012/12/27}{更正拼写错误。在 \file{diss.tex} 加入 \file{ack.tex}。}
% \changes{v0.5.1}{2012/12/21}{在 \LaTeX\ 命令和中文字符之间留了空格,在 \file{Makefile} 中增加 release 功能。}
% \changes{v0.5.1}{2012/12/21}{在 \LaTeX{} 命令和中文字符之间留了空格,在 \file{Makefile} 中增加 release 功能。}
% \changes{v0.5}{2012/12/05}{修改说明文件的措辞,更正 \file{Makefile} 文件,使用 \pkg{metalog} 宏包替换 \pkg{xltxtra} 宏包,使用 \pkg{mathtools} 宏包替换 \pkg{amsmath} 宏包,移除了所有 CJKtilde 符号。}
% \changes{v0.4}{2012/05/30}{包含交大学士、硕士、博士学位论文模板。模板在 \href{https://github.com/weijianwen/SJTUThesis}{GitHub} 上管理和更新。}
% \changes{v0.3a}{2010/12/05}{移植到 \XeTeX/\LaTeX 上。}
% \changes{v0.2a}{2009/12/25}{模板由 \cls{CASthesis} 改名为 \cls{sjtumaster}。在 \file{diss.tex} 中可以方便地改变正文字号、切换但双面打印。增加了不编号的一章“全文总结”。添加了可伸缩符号(等号、箭头)的例子,增加了长标题换行的例子。}
% \changes{v0.1c}{2009/11/20}{增加了 Linux 下使用 \pkg{ctex} 宏包的注意事项、\file{bib} 条目的规范要求,修正了 \pkg{ctexbook} 与 \pkg{listings} 共同使用时的断页错误。}
% \changes{v0.1b}{2009/11/13}{完善了模板使用说明,增加了定理环境、并列子图、三线表格的例子。}
% \changes{v0.1a}{2009/11/12}{上海交通大学硕士学位论文 \LaTeX\ 模板发布。}
% \changes{v0.1a}{2009/11/12}{上海交通大学硕士学位论文 \LaTeX{} 模板发布。}
%
% \title{\bfseries\color{sjtublue}\sjtuthesis:上海交通大学学位论文模板}
% \author{\href{https://sjtug.org/}{SJTUG}}
Expand All @@ -167,7 +167,7 @@ The Current Maintainer of this work is Alexara Wu.
% \begin{abstract}
% \noindent
% \begin{enumerate}
% \item 本模板的发布遵守 \LaTeX\ Project Public License,使用前请认真阅读协议内
% \item 本模板的发布遵守 \LaTeX{} Project Public License,使用前请认真阅读协议内
% 容。
% \item 本模板根据 \href{https://www.gs.sjtu.edu.cn/info/1143/5801.htm}
% {《上海交通大学博士、硕士学位论文撰写指南》} 以及
Expand All @@ -179,7 +179,7 @@ The Current Maintainer of this work is Alexara Wu.
% \item 此模板仅为撰写指南的参考实现,不保证审查老师不提意见。任何由于使用本模板
% 而引起的论文格式审查问题均与本模板作者无关。
% \item 任何个人或组织以本模板为基础进行修改、扩展而生成的新的专用模板,请严格遵
% 守 \LaTeX\ Project Public License 协议。由于违犯协议而引起的任何纠纷争端均与
% 守 \LaTeX{} Project Public License 协议。由于违犯协议而引起的任何纠纷争端均与
% 本模板作者无关。
% \end{enumerate}
% \end{abstract}
Expand All @@ -195,13 +195,13 @@ The Current Maintainer of this work is Alexara Wu.
%
% \section{介绍}
%
% 这是为撰写上海交通大学学士、硕士、博士学位论文以及课程论文而准备的 \LaTeX\
% 这是为撰写上海交通大学学士、硕士、博士学位论文以及课程论文而准备的 \LaTeX{}
% 板。
%
% 最早的一版学位模板由一位热心的物理系同学制作,中文字符处理采用了当时最为流行的
% \CJKLaTeX\ 方案。在此基础上,weijianwen 根据交大研究生院对学位论文的要求,完成
% 了一份基本可用的交大 \LaTeX\ 学位论文模板。由于 \CJKLaTeX\ 方案不易使用,
% weijianwen 与 William Wang 开始着手把模板向\XeTeX\ 引擎移植。之后 weijianwen
% \CJKLaTeX{} 方案。在此基础上,weijianwen 根据交大研究生院对学位论文的要求,完成
% 了一份基本可用的交大 \LaTeX{} 学位论文模板。由于 \CJKLaTeX{} 方案不易使用,
% weijianwen 与 William Wang 开始着手把模板向\XeTeX{} 引擎移植。之后 weijianwen
% 又断断续续做了一些完善模板的工作,在原有硕士学位论文模板的基础上完成了交大学士
% 和博士学位论文模板。
%
Expand Down Expand Up @@ -268,8 +268,8 @@ The Current Maintainer of this work is Alexara Wu.
% \label{ssec:compile}
%
% 本模版仅支持 \XeLaTeX{} 引擎。
% 很多用户对 \LaTeX\ 命令执行的次数不太清楚。一个基本的原则是多次运行 \LaTeX\ 命
% 令直至不再出现警告
% 很多用户对 \LaTeX{} 命令执行的次数不太清楚。一个基本的原则是多次运行 \LaTeX{}
% 命令直至不再出现警告
%
% 假设您的 \TeX{} 源文件名为 \file{main.tex},并且使用 \texttt{biber} 作为管理引
% 用文献的后端程序。下面给出编译论文的详细过程(\# 开头的行为注释):
Expand Down Expand Up @@ -1087,7 +1087,7 @@ The Current Maintainer of this work is Alexara Wu.
\PassOptionsToClass{zihao=\sjtu@zihao}{ctexbook}
% \end{macrocode}
%
% 使用 \XeTeX\ 引擎时,\pkg{fontspec} 宏包会被 \pkg{xeCJK} 自动调用。传递给
% 使用 \XeTeX{} 引擎时,\pkg{fontspec} 宏包会被 \pkg{xeCJK} 自动调用。传递给
% \pkg{fontspec} 宏包 \opt{no-math} 选项,避免部分数学符号字体自动调整为 CMR。
% 并使用 \opt{quiet} 忽略警告。
% \begin{macrocode}
Expand Down Expand Up @@ -2023,14 +2023,22 @@ The Current Maintainer of this work is Alexara Wu.
%</(undergraduate|graduate)>
% \end{macrocode}
%
% 使用松散的断行模式,并禁止 \LaTeX{} 自动调整多余的页面底部空白。
% \begin{macrocode}
%<*class>
\AtEndOfClass{%
\sloppy
\raggedbottom
}
% \end{macrocode}
%
% \subsection{主文档格式}
%
% \subsubsection{Three matters}
%
% \begin{macro}{\cleardoublepage}
% 空白页清空页眉页脚。
% \begin{macrocode}
%<*class>
\sjtu@patchcmd\cleardoublepage%
{\newpage}{\thispagestyle{empty}\newpage}
% \end{macrocode}
Expand Down Expand Up @@ -2176,11 +2184,6 @@ The Current Maintainer of this work is Alexara Wu.
}
% \end{macrocode}
%
% 使用松散的断行模式。
% \begin{macrocode}
\AtEndOfClass{\sloppy}
% \end{macrocode}
%
% 利用 \pkg{enumitem} 命令调整默认列表环境间的距离,以符合中文习惯。
% \begin{macrocode}
\setlist{nosep}
Expand Down Expand Up @@ -2411,7 +2414,8 @@ The Current Maintainer of this work is Alexara Wu.
}
\DeclareCaptionOption{bi-second}[]{%
\def\tablename{\sjtu@name@table@second}
\def\figurename{\sjtu@name@figure@second}}
\def\figurename{\sjtu@name@figure@second}
}
\captionsetup[bi-second]{bi-second}
% \end{macrocode}
%
Expand Down Expand Up @@ -3415,7 +3419,7 @@ The Current Maintainer of this work is Alexara Wu.
\newcommand\note[1]{{%
\color{magenta}{\noindent\bfseries 说明:}\emph{#1}}}
\def\TeX{\hologo{TeX}}
\def\TeXLive{\TeX\ Live}
\def\TeXLive{\TeX{} Live}
\def\macTeX{Mac\TeX{}}
\def\LaTeX{\hologo{LaTeX}}
\def\BibLaTeX{\textsc{Bib}\LaTeX}
Expand Down

0 comments on commit 4297ca9

Please sign in to comment.