Skip to content

[Bug]: misc/tabularFontSize不支持longtable #501

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

Closed
4 tasks done
CZLeader opened this issue May 11, 2024 · 17 comments
Closed
4 tasks done

[Bug]: misc/tabularFontSize不支持longtable #501

CZLeader opened this issue May 11, 2024 · 17 comments
Assignees
Labels
📚 documentation Improvements or additions to documentation 🚀 enhancement New feature or request

Comments

@CZLeader
Copy link
Contributor

CZLeader commented May 11, 2024

发生了什么?

使用了longtable宏包,发现表格字号仍然是12点(小四),应该是10.5点(五号),并受misc/tabularFontSize影响。

整理

@CZLeader
Copy link
Contributor Author

目前是这样实现的。

{
\zihao{5}
\begin{longtable}[htbp]{cccc}
…
\end{longtable}
}

@CZLeader
Copy link
Contributor Author

建议之后所有表格都改为longtable

@CZLeader
Copy link
Contributor Author

建议之后所有表格都改为longtable

因为longtable不跨页时正常显示,跨页时可以显示为续表。
建议将实例表格换成longtable,具体写法我给 @YDX-2147483647 发过

@CZLeader
Copy link
Contributor Author

建议之后所有表格都改为longtable

因为longtable不跨页时正常显示,跨页时可以显示为续表。 建议将实例表格换成longtable,具体写法我给 @YDX-2147483647 发过

不过还要看学校的格式要求,即表格跨页时前后页如何标注

@YDX-2147483647

This comment was marked as resolved.

@YDX-2147483647
Copy link
Collaborator

建议之后所有表格都改为longtable

我反对。有时与其将表格切断,不如独占一页,那样还是普通表格好。

图片
图片

——幻灯片《漫谈 LaTeX 排版常见概念误区——别把 LaTeX 当 Word 用!

@CZLeader
Copy link
Contributor Author

CZLeader commented May 12, 2024

建议之后所有表格都改为longtable

我反对。有时与其将表格切断,不如独占一页,那样还是普通表格好。

但如果章节过短,使用table会导致表格被强制移动到其他章节。
这种显示模式有利有弊,我认为应该给予用户选择权,至少知情权

@YDX-2147483647
Copy link
Collaborator

但如果章节过短,使用table会导致表格被强制移动到其他章节。
这种显示模式有利有弊,我认为应该给予用户选择权,至少知情权

有一定道理,不过我还是认为解决方法不在于改表格,而在于避免过短的章节。

我认为longtable应该只用于那种好几页的表格,比如罗列几十种材料的物理化学常数。一般同学用不到。

Overleaf文档也如此推荐:

If you have to insert a very long table, which takes up two or more pages in your document, use the longtable package.

@CZLeader
Copy link
Contributor Author

但如果章节过短,使用table会导致表格被强制移动到其他章节。
这种显示模式有利有弊,我认为应该给予用户选择权,至少知情权

有一定道理,不过我还是认为解决方法不在于改表格,而在于避免过短的章节。

我认为longtable应该只用于那种好几页的表格,比如罗列几十种材料的物理化学常数。一般同学用不到。

Overleaf文档也如此推荐:

If you have to insert a very long table, which takes up two or more pages in your document, use the longtable package.

1、用到的同学会不知道
2、这文档没人看……建议在示例里面找个表格换,有必要我之后提个pull request,不过在此之前要确定格式
3、避免过短章节……三级小标题也算章节吧,不一定有多长

@YDX-2147483647
Copy link
Collaborator

╮(╯_╰)╭

如果你想提PR,建议等 #498 合并了再加,并且不删除原有表格,因为那是学校模板有的。

@CZLeader
Copy link
Contributor Author

╮(╯_╰)╭

如果你想提PR,建议等 #498 合并了再加,并且不删除原有表格,因为那是学校模板有的。

换一个成么,不跨页的话显示一样的

@CZLeader
Copy link
Contributor Author

╮(╯_╰)╭
如果你想提PR,建议等 #498 合并了再加,并且不删除原有表格,因为那是学校模板有的。

换一个成么,不跨页的话显示一样的

不管了,之后提交pull request再请reviewer审核

YDX-2147483647 added a commit to YDX-2147483647/BIThesis that referenced this issue May 13, 2024
@YDX-2147483647 YDX-2147483647 linked a pull request May 13, 2024 that will close this issue
@YDX-2147483647 YDX-2147483647 added 📚 documentation Improvements or additions to documentation 🚀 enhancement New feature or request and removed 🐛 bug Something isn't working labels May 13, 2024
@YDX-2147483647

This comment was marked as resolved.

@YDX-2147483647

This comment was marked as resolved.

YDX-2147483647 added a commit to YDX-2147483647/BIThesis that referenced this issue May 25, 2024
@YDX-2147483647

This comment was marked as resolved.

YDX-2147483647 added a commit to YDX-2147483647/BIThesis that referenced this issue May 26, 2024
@YDX-2147483647
Copy link
Collaborator

@CZLeader 如果你这几天有时间,要不从 #499#513 抽离出最小例子,发到 #503 就得了?因为改*.tex会给所有同学加上\usepackage{longtable},恐怕不太好。

@YDX-2147483647
Copy link
Collaborator

已更新 #503

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
📚 documentation Improvements or additions to documentation 🚀 enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants