Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

微调本科模板表格格式 #483

Merged
merged 4 commits into from
May 2, 2024
Merged

Conversation

YDX-2147483647
Copy link
Collaborator

@YDX-2147483647 YDX-2147483647 commented Apr 30, 2024

#396 已注意到这一问题,当时认为不重要。昨天有同学说他们组专门提出来了,只好改一下。

具体的修改请看提交信息。

Word模板

图片

BIThesis新旧对比

  • 表格caption不再有空隙,直接紧贴。
  • 表格每行变窄一些。

只影响本科模板,且不改变表格前后间距。

图片

图片

> 三线表由`booktabs`宏包支持,它提供了`\toprule`、`\midrule`和`\bottomrule`命令用以排版三线表的三条线,以及和`\cline`对应的`\cmidrule`。除此之外,最好不要用其它横线以及竖线。
>
> ——[lshort-zh-cn](https://www.ctan.org/pkg/lshort-zh-cn),§3.6.3表格横线
首先`\linespread{1.5}`并不是1.5倍行距。

> (它的参数)作用于基础行距而不是字号。缺省的基础行距是 1.2 倍字号大小,因此使用`\linespread{1.5}`意味着最终行距为 1.8 倍的字号大小。
>
> ——lshort-zh-cn,§5.3.2,v6.0.4

原来的`\linespread{1.5}`会影响caption和表格本体。

- caption

  Word模板明文写应当1.25倍行距。默认的1.2倍加上其它skip,已经很接近了,没必要再加。

- 表格本体

  Word模板无明文规定,实作是1倍行距,但最终行高其实取决于设置的“行→尺寸→指定高度最小值0.66厘米”,并没那么宽。

  况且在表格中,lshort-zh-cn和[Overleaf][overleaf-doc]都推荐用`\arraystretch`控制,[TeX.SE][tex-se]上有时还推荐`\extrarowheight`,总之都不宜用`\linespread`。

  [overleaf-doc]: https://www.overleaf.com/learn/latex/Questions/How_do_I_change_column_or_row_separation_in_LaTeX_tables%3F
  [tex-se]: https://tex.stackexchange.com/questions/114421/extrarowheight-vs-arraystretch
本来默认有一定空隙,现改为紧贴,这样更接近Word模板实作。
@YDX-2147483647 YDX-2147483647 added this pull request to the merge queue May 2, 2024
Merged via the queue into BITNP:main with commit ad44533 May 2, 2024
3 checks passed
@YDX-2147483647 YDX-2147483647 deleted the table branch May 2, 2024 01:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants