Thanks to visit codestin.com
Credit goes to github.com

Skip to content

[Feature Request]请问是否能加入对于KaTeX中加中英文间空隙的支持? #96

@ChasingZenith

Description

@ChasingZenith

现在非常神奇的对于某些KaTeX公式也能支持,但是对于复杂的就不行。

而且其实我注意到现在的 heti-space 会放到KaTeX元素的内部,这可能会带来公式渲染的一些问题比如$xyz\text{下}\sum_{i=1}^{n} s_i$
是否有方法改进或者有方法在 KaTeX 中屏蔽?

示例

公式前$x\sum_{i=1}^{n} s_i$后 (此例没有空格)
公式前$x$后 (此例电脑chome正常,但在ipad上浏览器打开不正常,x前的空格更大)

$\underset{\text{价格为}s\text{时最优生产方案下的净利润}}{f^{*}(s)} = \sup_{x \in E } { \underbrace{\left< s,x \right>}{总销售额} - \underbrace{f(x)}{\text{生产}x\text{时的生产成本}}} $ (此例电脑chome正常,但在ipad上浏览器打开不正常,x前的空格更大)

公式前$xyz\text{中}\sum_{i=1}^{n} s_i$后 (此例x后多出一个空格)

使用前

Screenshot_20221116_101625
Screenshot_20221116_103300
Screenshot_20221116_104303

使用后

Screenshot_20221116_100826

Screenshot_20221116_102937

Screenshot_20221116_104148

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions