Latex 显示长除法符号的方式)和#x203E‾‾‾‾‾;在MathJax中
有没有一种方法可以在MathJax中格式化长除法,使其看起来像这样:Latex 显示长除法符号的方式)和#x203E‾‾‾‾‾;在MathJax中,latex,mathjax,Latex,Mathjax,有没有一种方法可以在MathJax中格式化长除法,使其看起来像这样: 125 (Explanations) 4)500 4 (4 × 1 = 4) 10 (5 - 4 = 1) 8 (4 × 2 = 8) 20 (10 - 8 = 2) 20 (4 × 5 = 20) 0 (20 - 20 = 0) 但显然格式正确吗?您可以
125 (Explanations)
4)500
4 (4 × 1 = 4)
10 (5 - 4 = 1)
8 (4 × 2 = 8)
20 (10 - 8 = 2)
20 (4 × 5 = 20)
0 (20 - 20 = 0)
但显然格式正确吗?您可以使用
$$
\begin{array}{rl}
\underline{125} & \hbox{(Explanations)} \\[-5pt]
4 | 500 \\
\underline{4\phantom{00}} & \hbox{($4 \times 1 = 4$)} \\
10\phantom{0} & \hbox{($5 - 4 = 1$)} \\
\underline{\phantom{0}8\phantom{0}} & \hbox{($4 \times 2 = 8$)} \\
\phantom{0}20 & \hbox{($10 - 8 = 2$)} \\
\underline{\phantom{0}20} & \hbox{($4 \times 5 = 20$)} \\
\phantom{00}0
\end{array}
$$
这是它在以下屏幕上的渲染方式:
这里是对沃纳答案的修改,它能让你得到你想要的。它使用MathJax的include扩展插入处理长除法符号的MathML
元素
$$
\require{enclose}
\begin{array}{rll}
125 && \hbox{(Explanations)} \\[-3pt]
4 \enclose{longdiv}{500}\kern-.2ex \\[-3pt]
\underline{4\phantom{00}} && \hbox{($4 \times 1 = 4$)} \\[-3pt]
10\phantom{0} && \hbox{($5 - 4 = 1$)} \\[-3pt]
\underline{\phantom{0}8\phantom{0}} && \hbox{($4 \times 2 = 8$)} \\[-3pt]
\phantom{0}20 && \hbox{($10 - 8 = 2$)} \\[-3pt]
\underline{\phantom{0}20} && \hbox{($4 \times 5 = 20$)} \\[-3pt]
\phantom{00}0
\end{array}
$$
结果是
老实说,在MathJax中,简单地说就是符号)————————————————————————————————————————————————————————————————————————————————。类似于我键入\sqrt{}的方式,平方根符号延伸到整个数字。嗯。。。好吧,我想这就是我要说的。我不太担心
(解释)
位,因为我可以稍后再写,但实际的符号就是我想要的。我假设一个官员)——————————————符号不存在?(但是谢谢你的投入,这很有帮助)很好。很遗憾代码这么难看,但是谢谢你。我不确定该接受哪个答案,因为这是对Werner答案的改进。是的,代码很难看,但这个答案的排版比另一个好得多,并且带有MathJax作者批准的官方印章。我认为这应该是公认的答案。