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

如何处理数学公式中的多字母变量? #4525

Open
ImpleLee opened this issue Dec 19, 2022 · 1 comment
Open

如何处理数学公式中的多字母变量? #4525

ImpleLee opened this issue Dec 19, 2022 · 1 comment
Labels
Discussion / 需要讨论 Further discussion is welcome RFC / 提案

Comments

@ImpleLee
Copy link
Contributor

ImpleLee commented Dec 19, 2022

按惯例,数学公式中每个变量都是单字母的,而多个字母相继出现表示它们相乘。多字母变量事实上完全不能fit到这个惯例中。

但另一方面,编程中的变量都是多字母的,进而在推导相关数学公式时,写这些变量在程序中的多字母名字看上去更自然也更统一。因此,从与程序一致的角度来说,多字母变量是更好的。

现有的实践中,多字母变量在本wiki是常见现象。例如,字符串基础页面中就出现了许多多字母变量。它们完全是按照多个变量相乘的格式被format的,我的感觉是它们比较难看。

另一个可能的选项是使用等宽字体\mathtt来显示它们。有一些已有的实践(如 #4374#3344),但毕竟也没有形成完整的传统,而且在公式中出现等宽的变量可能有些奇特……

@Enter-tainer Enter-tainer added RFC / 提案 Discussion / 需要讨论 Further discussion is welcome labels Dec 19, 2022
@untitledunrevised
Copy link
Contributor

我自己的话,目前在用 \mathrm{idx} 这样的形式,感觉看起来还可以:

$$ a_\mathrm{idx} = \mathrm{cnt}_w $$

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