如何指示jqmath中的删除线? [英] How does one indicate strikethrough in jqmath?

查看:137
本文介绍了如何指示jqmath中的删除线?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

例如,我想通过对分子和分母进行质因子分解,然后显示可以消除的普通项,来将分数简化为最简单的项.

For example I want to show reduction of fractions to simplest terms by doing prime factorization on numerator and denominator and then showing common terms that can be eliminated.

所以像$ 6/8 =(2)(3)/(2)(2)(2)= 3/4 $这样的东西,但在顶部和底部的2s处都显示了删除线.

So something like $6/8=(2)(3)/(2)(2)(2)=3/4$ but showing a strikethrough on the 2s on the top and bottom.

推荐答案

基本上,您使用CSS,例如,然后将.cancel { text-decoration: line-through }添加到样式表中.

Basically you use CSS, like in jqMath highlight box like bbox in MathJax/MathJs. So write e.g. $$6/8={\cl"cancel"{(2)}(3)}/{\cl"cancel"{(2)}(2)(2)}=3/4$$ and then add .cancel { text-decoration: line-through } to your style sheet.

这篇关于如何指示jqmath中的删除线?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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