如何设置 MathJax 以使用角度(贯穿整个项目,而不仅仅是特定组件)?

问题描述 投票:0回答:0

我的角度页面上有一些 asciimath 文本,想要任何 asciimath,用反引号分隔 `` 到 即:这些反引号中的

sum_(i=1)^n i^3=((n(n+1))/2)^2
,应由MathJax库获取并转换为数学注释

我已经安装:

npm install mathjax
npm install mathjax-full
npm install mathjax-angular

我正在尝试根据这个模糊的 documentation.

以某种方式设置我的 app.component.ts 文件

如何导入

MathjaxModule.forRoot(/*Optional Config*/)
与使它为 asciimath 工作所需的特定配置?

我在官方asciimath支持中看不到这样的东西.

angular module mathjax asciimath
© www.soinside.com 2019 - 2024. All rights reserved.