[英]How to type \sqrt[3]{64}=4 in math quill
If you paste that code \\sqrt[3]{64}=4
its working good. 如果粘贴该代码
\\sqrt[3]{64}=4
它的工作正常。
But at the time of writing the input \\sqrt[3]{64}=4
, the root is not renderd as expected. 但是在编写输入
\\sqrt[3]{64}=4
,根未按预期呈现。 How can I get the result like in the picture above at the time of typing? 键入时如何获得如上图所示的结果?
This is my code: 这是我的代码:
var mathFieldSpan = document.getElementById('math-field'); var MQ = MathQuill.getInterface(2); // for backcompat var mathField = MQ.MathField(mathFieldSpan, { spaceBehavesLikeTab: true, // configurable });
#math-field{ position:absolute; width:65%; left:40px; height:40px; border-radius:5px; box-shadow:none; outline:none; font-family:Lato,sans-serif;color:#767676;font-weight:400; border:2px solid #20BF9F; font-size:15px; transition:all 0.5s ease-out; }
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js"></script> <link rel="stylesheet" type="text/css" href="http://mathquill.com/lib/mathquill.css"> <script type="text/javascript" src="http://mathquill.com/lib/mathquill.js"></script> <span id="math-field" ></span>
You can achieve this when typing: \\nthroot3{64}=4
. 您可以在输入时实现:
\\nthroot3{64}=4
。
Note that the latex of the mathfield is converted to: \\sqrt[3]{64}=4
. 注意,mathfield的乳胶被转换为:
\\sqrt[3]{64}=4
。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.