gpt4 book ai didi

javascript - 在飞行中更改 MathJax 的 "width"的 "linebreaks"

转载 作者:行者123 更新时间:2023-11-30 15:20:40 35 4
gpt4 key购买 nike

如所述here ,我们可以使用它来配置数学线的宽度:

"HTML-CSS": { linebreaks: { automatic: true, width: "30em" } }

在 MathJax 完成页面中公式的排版后,有没有办法动态更改 width 的值?

最佳答案

来自 this post , 使用类似

function changeWidth(wide){
MathJax.Hub.Queue(
["Config",MathJax.Hub,{"HTML-CSS": {linebreaks: {width: wide+"em"}}}],
["Rerender",MathJax.Hub]
);
}

关于javascript - 在飞行中更改 MathJax 的 "width"的 "linebreaks",我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/43775099/

35 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com