在 MathJax 中显示长除法符号 )‾‾‾‾‾‾的方法 [英] Way to show long division symbol )‾‾‾‾‾‾ in MathJax

查看:35
本文介绍了在 MathJax 中显示长除法符号 )‾‾‾‾‾‾的方法的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有没有办法在 MathJax 中格式化长除法,所以它看起来像这样:

Is there a way to format long division in MathJax so it looks like this:

     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)

但显然格式正确?

推荐答案

这是对 Werner 答案的修改,可以让您得到您想要的.它使用 MathJax 的 enclose 扩展来插入处理长除法符号的 MathML <menclose> 元素.

Here is a modification of Werner's answer that gets you what you want. It uses MathJax's enclose extension to insert a MathML <menclose> element that handles the long-division symbol.

$$

equire{enclose}
egin{array}{rll}
    125 && hbox{(Explanations)} \[-3pt]
   4 enclose{longdiv}{500}kern-.2ex \[-3pt]
      underline{4phantom{00}} && hbox{($4 	imes 1 = 4$)} \[-3pt]
      10phantom{0} && hbox{($5 - 4 = 1$)} \[-3pt]
      underline{phantom{0}8phantom{0}} && hbox{($4 	imes 2 = 8$)} \[-3pt]
      phantom{0}20 && hbox{($10 - 8 = 2$)} \[-3pt]
      underline{phantom{0}20} && hbox{($4 	imes 5 = 20$)} \[-3pt]
      phantom{00}0
  end{array}
$$

结果是

这篇关于在 MathJax 中显示长除法符号 )‾‾‾‾‾‾的方法的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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