简体   繁体   English

如何显示jqmath中的删除线?

[英]How does one indicate strikethrough in 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. 例如,我想通过对分子和分母进行素因子分解,然后显示可以消除的常用项,来将分数简化为最简单的项。

So something like $6/8=(2)(3)/(2)(2)(2)=3/4$ but showing a strikethrough on the 2s on the top and bottom. 因此,类似于$ 6/8 =(2)(3)/(2)(2)(2)= 3/4 $,但在顶部和底部的2s处都显示了删除线。

Basically you use CSS, like in jqMath highlight box like bbox in MathJax/MathJs . 基本上,您使用CSS,就像在jqMath高亮框中,如MathJax / MathJs中的bbox一样 So write eg $$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. 所以写例如$$6/8={\\cl"cancel"{(2)}(3)}/{\\cl"cancel"{(2)}(2)(2)}=3/4$$然后将.cancel { text-decoration: line-through }到样式表。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM