Home > Net >  ASPOSE. WORD derived formula pages for the WORD.
ASPOSE. WORD derived formula pages for the WORD.

Time:10-21

There is a web page, the front part of the code is as follows,

MathJax. Hub. Config ({
ShowProcessingMessages: false,
MessageStyle: "none",
Extensions: [" tex2jax. Js "],
Jax: [" input/TeX ", "the output/HTML and CSS"],
Tex2jax: {
InlineMath: [[" $", "$"]],
DisplayMath: [[" $$", "$$"]],
SkipTags: [' script ', 'noscript', 'the style', 'textarea', 'pre', 'code', 'a'],
IgnoreClass: "comment - the content
"},
"HTML and CSS" : {
AvailableFonts: [" STIX ", and "TeX"],
ShowMathMenu: false
}
});
MathJax. Hub. The Queue ([" Typeset, "MathJax. Hub]);



9. The following secondary radical, and $\ SQRT {5} $is the secondary radical is ()









& nbsp; A. $\ SQRT {and} $& amp; nbsp; & nbsp; & nbsp; & nbsp; B. $\ SQRT {\ frac {5} {2}} $& amp; nbsp; & nbsp; & nbsp; & nbsp; C. $\ SQRT {20} $& amp; nbsp; & nbsp; & nbsp; & nbsp; D. $$\ SQRT {0.5}







This code in the web page is displayed properly mathematical formula, now I want to use aspose. Word will

Inside the content of the export is saved as a word. The word document in normal display formula symbols, how to do things, seek expert advice, thank you very much!

CodePudding user response:

Found that the style of these formulas is too complex, copied to the word are shown is not correct, to export go no more, also tested through canvas into images also not line, the style is wrong,

CodePudding user response:

Thank the teacher for advice, these formulas code is able to correctly display on the browser, I use aspose word export this part of the contents for the word. In the word after the export is shown above to see the web page code, rather than a mathematical formula, I want it how to get things, if there are any help answer winner, devious,

CodePudding user response:

The HTML to the background as a whole.

A insertHTML aspose. Words inside the dom methods.

Hand in the past the front desk of the HTML directly inserted into the inside. You can.

So the inside of the HTML elements can be identified.. Can try this method.

CodePudding user response:

Is not applied the style, as if also refers to the special font: https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.5/jax/output/CommonHTML/fonts/TeX/fontdata.js? V=2.7.5
Generated by HTML word or PDF will be messy

CodePudding user response:

To turn the good has a lot of restrictions, such as the need to replace all the content of the page with HTML format, the INPUT of the logo to all & lt; Td> The logo,
  • Related