refactor: 让硕博模板书脊上下居中,并适应长标题,避免与姓名粘连 #511
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Resolves #505
MWE
old.pdf
:旧版new.pdf
:此PR标准例子
特殊例子
测量
29.7 mm / 941 × 158 = 5.0 mm.
具体修改
\vskip
→\newgeometry
+\restoregeometry
原来的
\vskip
没生效(删掉后编译结果相同),而且需要从上边距开始算。干脆改边距好了。center
环境 →\centering
lshort-zh-cn:
center
等环境会在上下文产生一个额外间距,而\centering
等命令不产生,只是改变对齐方式。minipage
环境的对齐方式t
→c
这样遇到超长标题时,可以向两边溢出。
\vfill
→\par
+\vpace
\vspace
可以设置间距最小值,避免标题稍长就和姓名学校粘在一起。另外,
\vfill
会直接生效,而\vspace
不会,所以要加\par
。