MathJax数字中的逗号渲染 [英] MathJax rendering of commas in numbers

查看:88
本文介绍了MathJax数字中的逗号渲染的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我在tex字符串中包含带有嵌入式逗号(例如3,456,789)的数字时,当MathJax渲染它们时,它们似乎在逗号(例如3、456、789)之后有空格.有什么方法可以关闭此功能吗?

When I include numbers with embedded commas (e.g. 3,456,789) in tex strings, They appear to have spaces after the commas (e.g. 3, 456, 789) when MathJax renders them. Is there some way to turn this off?

推荐答案

这绝对是一种解决方法,但是您可以在括号中加上大括号以避免不必要的间距,如3{,}456{,}789所示.原因是tex将逗号解释为列表分隔符,如果您单独对逗号进行分组,则会抑制该行为.

It's definitely just a work-around, but you could put braces around the commas to avoid unwanted spacing, as in 3{,}456{,}789. The reason is that tex interprets the comma as a list separator, which behaviour is inhibited if you group the comma by itself.

这篇关于MathJax数字中的逗号渲染的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆