Skip to content

Commit

Permalink
发现并解决盲审版论文封面的题目中插入 \\& 命令会导致编译失败的问题
Browse files Browse the repository at this point in the history
  • Loading branch information
YanMing-lxb committed Jan 6, 2024
1 parent e503e6c commit 50f9275
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 9 deletions.
Binary file modified Build/main.pdf
Binary file not shown.
24 changes: 16 additions & 8 deletions GUET-Thesis.cls
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
% -----------------------------------------------------------------------
% Author : 焱铭
% Date : 2023-07-30 15:13:12 +0800
% LastEditTime : 2024-01-06 13:20:51 +0800
% LastEditTime : 2024-01-06 14:22:53 +0800
% Github : https://github.com/YanMing-lxb/
% FilePath : /GUET_Thesis_LaTeX/GUET-Thesis.cls
% Description : GUET-Thesis 样式文件
Expand Down Expand Up @@ -496,13 +496,21 @@

}{ % 硕博封面信息 👇
\ifbversion{ % 盲审封面👇
\begin{textblock}{16}(2.4,14.8)
\bfseries\fontsize{16pt}{32pt}\selectfont % 设置字体为三号,2倍行距
\qquad 目:\removeAmpersand{\zh@TheTitle}

\qquad 业:\TheMajor

研究方向: \TheResearchDirection
\begin{textblock}{16}(2.5,14.8)
\bfseries\fontsize{16bp}{16bp}\selectfont
\centering
\begin{tblr}[expand=\expanded]
{
stretch=1.9, % 单元格文本行距拉伸系数
colspec = {ll}, % 设置列对齐方式
column{1} = {4.5em}, % 设置第一列宽度
column{2} = {22em}, % 设置第二列的宽度、字体大小粗细
leftsep=0pt, % 设置单元内容的左边距为零
}
\qquad 目:& \expanded{\zh@TheTitle@tb{}} \\
\qquad 业:& \TheMajor\\
研究方向: & \TheResearchDirection
\end{tblr}
\end{textblock}
}{ % 非盲审封面👇
\begin{textblock}{15}(2.9,16.3) %
Expand Down
2 changes: 1 addition & 1 deletion main.tex
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
% -----------------------------------------------------------------------
% Author : 焱铭
% Date : 2023-07-18 08:50:38 +0800
% LastEditTime : 2024-01-06 13:25:09 +0800
% LastEditTime : 2024-01-06 14:32:40 +0800
% Github : https://github.com/YanMing-lxb/
% FilePath : /GUET_Thesis_LaTeX/main.tex
% Description : Version 2.6 更新请关注 https://github.com/YanMing-lxb/GUET_Thesis_LaTeX
Expand Down

0 comments on commit 50f9275

Please sign in to comment.