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

[RFC] LaTeX 公式后不应接句号「。」 #4872

Open
3 tasks
Tiphereth-A opened this issue May 4, 2023 · 6 comments
Open
3 tasks

[RFC] LaTeX 公式后不应接句号「。」 #4872

Tiphereth-A opened this issue May 4, 2023 · 6 comments
Labels
Discussion / 需要讨论 Further discussion is welcome RFC / 提案

Comments

@Tiphereth-A
Copy link
Member

Tiphereth-A commented May 4, 2023

related #4246

句号「。」容易与公式中的 $\scriptstyle o$$\scriptstyle 0$ 混淆,如:

$A_{a_0}=A_o=2A_{\mathrm{o}}=3A$

理工科类图书中一般使用句点「.」来避免该情况。

关于相关标准,GB/T 15834-1995 中提到:

4.1.1 句号的形式为“。”。句号还有一种形式,即一个小圆点“.”,一般在科技文献中使用。

但是该标准已经废弃,现行标准 GB/T 15834-2011 中移除了这句话。不过该标准是非强制性的,实际应用中各出版社都有自己的排版规则。考虑到 OI Wiki 的特性,为避免出现公式符号混淆的情况,我认为 OI Wiki 的文章中,LaTeX 公式后在需要使用句号「。」时应用句点「.」替代。

具体而言,我提议 OI Wiki 应:

  • 在格式手册中补充相关说明与例子
  • 修正现有的公式后接句号的文章
  • 补充 CI: 若文章中存在公式后接句号的情况则检查不通过。或者添加格式化规则 $foo$。 -> $foo$.

相关链接

@Tiphereth-A Tiphereth-A added Discussion / 需要讨论 Further discussion is welcome RFC / 提案 labels May 4, 2023
@so1ve
Copy link

so1ve commented Jun 7, 2023

🤔 如果这个RFC通过了的话我可以帮忙写一个小脚本(?)

@Tiphereth-A
Copy link
Member Author

thinking 如果这个RFC通过了的话我可以帮忙写一个小脚本(?)

可以先开个 PR(

@so1ve
Copy link

so1ve commented Jun 7, 2023

(顺带提问一下有没有必要加入eslint)

@Tiphereth-A
Copy link
Member Author

Tiphereth-A commented Jun 9, 2023

(顺带提问一下有没有必要加入eslint)

应该没有必要吧,目前 OI Wiki 格式化用的应该是 remark 插件,比如 https://github.com/OI-wiki/remark-math-space 🤔

GitHub
Contribute to OI-wiki/remark-math-space development by creating an account on GitHub.

@so1ve
Copy link

so1ve commented Jun 9, 2023

主要是ts代码看着有点乱

@Great-designer
Copy link
Contributor

希望尽快通过

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Discussion / 需要讨论 Further discussion is welcome RFC / 提案
Projects
None yet
Development

No branches or pull requests

3 participants