HFUTTUG / HFUT_Thesis

LaTeX Thesis Template for Hefei University of Technology
LaTeX Project Public License v1.3c
150 stars 24 forks source link

调整学位论文封面`论文题目`的行数 #26

Closed LaureatePoet closed 2 years ago

LaureatePoet commented 2 years ago

检查

描述问题

根据《合肥工业大学研究生学位论文写作规范》或《合肥工业大学本科毕业设计(论文)工作实施细则》,合肥工业大学学位论文,本科生封面页 题目默认一行,研究生默认两行。

如果需要修改可以参考以下描述:

https://github.com/HFUTTUG/HFUT_Thesis/blob/32dd5e2fd21fd9918003f62a721828f35e5fe43a/hfutthesis.cls#L1989-L2098

  1. 本科生实现多行,编辑https://github.com/HFUTTUG/HFUT_Thesis/blob/32dd5e2fd21fd9918003f62a721828f35e5fe43a/hfutthesis.cls#L2050-L2069 替换为
      {\fontsize{16bp}{20bp}\selectfont
      \begin{tabular}{>{\bfseries\fontsize{16bp}{20bp}\selectfont}l>{\centering\arraybackslash\fontsize{16bp}{20bp}\selectfont}p{8.5cm}}%
        类\hspace{2\ccwd}型:& \hfut@ugtype \\
        \cline{2-2}
        \end{tabular}\par%
        \begin{tabular}{>{\rmfamily\bfseries\fontsize{16bp}{20bp}\selectfont}lp{8.5cm}}%
          题\hspace{2\ccwd}目:& \multirow[t]{2}{8.5cm}{
            \centering\linespread{1.5}\fontsize{16bp}{20bp}\selectfont
            \hfut@title} \\
            \cline{2-2}
                  & \\
          \cline{2-2}
        \end{tabular}\par
        \begin{tabular}{>{\bfseries\fontsize{16bp}{20bp}\selectfont}l>{\centering\arraybackslash\fontsize{16bp}{20bp}\selectfont}p{8.5cm}}
        \hfut@speciality@name:& \hfut@speciality\\
        \cline{2-2}
        入学年份:& \hfut@hfuteryear \\
        \cline{2-2}
        学生姓名:& \hfut@author \\
        \cline{2-2}
        指导教师:& \hfut@supervisor@names \\
        \cline{2-2}
        系\hspace{0.5\ccwd}名\hspace{0.5\ccwd}称:& \hfut@department \\
        \cline{2-2}
        完成时间:& \hfut@date@zh \\
        \cline{2-2}
      \end{tabular}\par}%
  1. 研究生 实现三行甚至更多,编辑https://github.com/HFUTTUG/HFUT_Thesis/blob/32dd5e2fd21fd9918003f62a721828f35e5fe43a/hfutthesis.cls#L2071-L2093 以修改为3行为例,修改为(注意:\multirow[t]{n}{8.5cm} 这里的n代表设置的行数):
      \begin{tabular}{>{\rmfamily\bfseries\fontsize{16bp}{20bp}\selectfont}lp{8.5cm}}%
        论文题目:& \multirow[t]{3}{8.5cm}{
          \centering\linespread{1.5}\fontsize{16bp}{20bp}\selectfont
          \hfut@title} \\
          \cline{2-2}
                & \\
        \cline{2-2}
                & \\
        \cline{2-2}
      \end{tabular}
      \renewcommand\arraystretch{1.5}
      \begin{tabular}{>{\bfseries\fontsize{16bp}{20bp}\selectfont}l>{\centering\arraybackslash\fontsize{16bp}{20bp}\selectfont}p{8.5cm}}
        \ifhfut@degree@master
          学位类别:& \hfut@degreetype@name\\
          \cline{2-2}
        \fi
        \hfut@speciality@name:& \hfut@speciality\\
        \cline{2-2}
        作者姓名:& \hfut@author \\
        \cline{2-2}
        导师姓名:& \hfut@supervisor@names \\
        \cline{2-2}
        完成时间:& \hfut@date@zh \\
        \cline{2-2}
      \end{tabular}\par%
  1. tips: 修改行数之后可能会造成表格跨页,需要调整https://github.com/HFUTTUG/HFUT_Thesis/blob/32dd5e2fd21fd9918003f62a721828f35e5fe43a/hfutthesis.cls#L2044-L2048