Skip to content

Commit

Permalink
微调框的间距,防止垂直方向离文字太近
Browse files Browse the repository at this point in the history
  • Loading branch information
xkwxdyy committed Sep 7, 2023
1 parent dd40505 commit e641993
Show file tree
Hide file tree
Showing 4 changed files with 25 additions and 13 deletions.
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -312,3 +312,7 @@ TSWLatexianTemp*
whu-proposal-main.pdf

release/

test.pdf

test.tex
10 changes: 9 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,4 +55,12 @@ Gitee:https://gitee.com/xkwxdyy/whu-proposal

### Fixed

- 修复个人信息填写空白时的编译不停止的问题
- 修复个人信息填写空白时的编译不停止的问题


## [v0.7] - 2023-09-07


### Changed

- 微调框的间距,防止垂直方向离文字太近
4 changes: 2 additions & 2 deletions whu-proposal-main.tex
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@

% Github:https://github.com/whutug/whu-proposal
% Gitee:https://gitee.com/xkwxdyy/whu-proposal
% Update date: 2023-07-30
% Version: v0.6
% Update date: 2023-09-07
% Version: v0.7
% Author: Kangwei Xia, kangweixia_xdyy@163.com, School of Mathematics and Statistics, Wuhan University
% QQ group: 681965476
%********************************************
Expand Down
20 changes: 10 additions & 10 deletions whu-proposal.cls
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
\RequirePackage { expl3 }
\RequirePackage { xparse }
\RequirePackage { l3keys2e }
\ProvidesExplClass {whu-proposal} {2023-07-30} {v0.6} {LaTeX template for thesis proposal for students in Wuhan University}
\ProvidesExplClass {whu-proposal} {2023-09-07} {v0.7} {LaTeX template for thesis proposal for students in Wuhan University}


\bool_new:N \g__whuproposal_bachelor_type_bool % 判断开题报告类型
Expand Down Expand Up @@ -571,11 +571,11 @@
\cs_new_nopar:Npn \__whuproposal_relax: { \relax }

\dim_new:N \g__whuproposal_box_width_extra_dim % box 的额外宽度
\dim_new:N \g__whuproposal_box_bottom_extra_dim % box 的下面的额外高度
\dim_new:N \g__whuproposal_box_height_extra_dim % box 的下面的额外高度
\dim_new:N \g__whuproposal_box_seperate_line_vertical_dim % 分割线距离上方线的最终距离
\dim_new:N \g__whuproposal_box_seperate_line_vertical_aux_dim % 分割线距离上方线的距离
\dim_set:Nn \g__whuproposal_box_width_extra_dim { 3pt }
\dim_set:Nn \g__whuproposal_box_bottom_extra_dim { 5pt }
\dim_set:Nn \g__whuproposal_box_width_extra_dim { 12pt }
\dim_set:Nn \g__whuproposal_box_height_extra_dim { 6pt }
\dim_set:Nn \g__whuproposal_box_seperate_line_vertical_aux_dim { 6.9ex }

% 正文第一页的分割线距离处理
Expand Down Expand Up @@ -632,9 +632,9 @@
--
([shift = {(0.1cm+\g__whuproposal_box_width_extra_dim, \g__whuproposal_box_vertical_all_move_dim)}]current~page~text~area.north~east)
--
([shift = {(0.1cm+\g__whuproposal_box_width_extra_dim, \g__whuproposal_box_vertical_all_move_dim-\g__whuproposal_box_bottom_extra_dim)}]current~page~text~area.south~east)
([shift = {(0.1cm+\g__whuproposal_box_width_extra_dim, \g__whuproposal_box_vertical_all_move_dim-\g__whuproposal_box_height_extra_dim)}]current~page~text~area.south~east)
--
([shift = {(-0.1cm-\g__whuproposal_box_width_extra_dim, \g__whuproposal_box_vertical_all_move_dim-\g__whuproposal_box_bottom_extra_dim)}]current~page~text~area.south~west) -- cycle
([shift = {(-0.1cm-\g__whuproposal_box_width_extra_dim, \g__whuproposal_box_vertical_all_move_dim-\g__whuproposal_box_height_extra_dim)}]current~page~text~area.south~west) -- cycle
;
% 分割线
\draw ([shift = {(-0.1cm-\g__whuproposal_box_width_extra_dim, \g__whuproposal_box_vertical_all_move_dim-\g__whuproposal_box_seperate_line_vertical_dim)}]current~page~text~area.north~west)
Expand All @@ -646,13 +646,13 @@
\cs_new:Npn \__whuproposal_box_after_first_page:
{
\begin{tikzpicture}[ remember~picture, overlay ]
\draw ([shift = {(-\g__whuproposal_box_width_extra_dim, 0em)}]current~page~text~area.north~west)
\draw ([shift = {(-\g__whuproposal_box_width_extra_dim, \g__whuproposal_box_height_extra_dim + 2pt)}]current~page~text~area.north~west)
--
([shift = {(\g__whuproposal_box_width_extra_dim, 0em)}]current~page~text~area.north~east)
([shift = {(\g__whuproposal_box_width_extra_dim, \g__whuproposal_box_height_extra_dim + 2pt)}]current~page~text~area.north~east)
--
([shift = {(\g__whuproposal_box_width_extra_dim, -\g__whuproposal_box_bottom_extra_dim)}]current~page~text~area.south~east)
([shift = {(\g__whuproposal_box_width_extra_dim, -\g__whuproposal_box_height_extra_dim -4pt)}]current~page~text~area.south~east)
--
([shift = {(-\g__whuproposal_box_width_extra_dim, -\g__whuproposal_box_bottom_extra_dim)}]current~page~text~area.south~west) -- cycle
([shift = {(-\g__whuproposal_box_width_extra_dim, -\g__whuproposal_box_height_extra_dim -4pt)}]current~page~text~area.south~west) -- cycle
;
\end{tikzpicture}
}
Expand Down

0 comments on commit e641993

Please sign in to comment.