我编写了一个脚本,它打开一个侧边栏,当我单击一个按钮时,它可以输入符号和数学公式。然而,我希望它能够在没有^和分数的情况下增加幂和分数,而不是并排。有没有办法做到这一点?下面是一个分数的例子:
function insertPyramidVolumeFormula() {
DocumentApp.getUi()
var body = DocumentApp.getActiveDocument().getBody();
// Define a custom paragraph style.
var style = {};
style[DocumentApp.Attri
我需要一个数学公式(或直接的JS代码)来从给定值的范围中获得百分比:
//For example:
Range 1: [-5, 5] -> given value: 6 -> percentage will be 110%
-> given value: 5 -> percentage will be 100%
-> given value: -5-> percentage will be -100%