We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

Tool Library to Convert HTML Files with Latex Equations to Word DOCX Document C# Java

Any update on this? I am looking for a tool/library can convert HTML contains Latex equations to Word.

@AlexWang,

Please ZIP and upload your sample input HTML file (containing the latex format equations) here for testing. We will then investigate the scenario on our end and provide you more information.

Thanks for your response, here is a sample HTML:

  • Rational numbers are those that can be expressed in the form $$\frac{a}{b}$$, where a and b are integers; for example, −$$\frac{4}{3}$$, 3.12, $$\frac{1}{2}$$ −7, 0, 205, $$6.\dot4$$, −32.5.

There are 4 Laxtex equations in the list, I tried code snippet below to convert the HTML string to a Word document:

        Document doc = new Document();
        DocumentBuilder builder = new DocumentBuilder(doc);
        builder.InsertHtml(@"<ul><li>Rational numbers are those that can be expressed in the form $$\frac{a}{b}$$, where <em>a</em> and <em>b</em> are integers; for example, −$$\frac{4}{3}$$, 3.12, $$\frac{1}{2}$$ −7, 0, 205, $$6.\dot4$$, −32.5.</li></ul>");
        doc.Save(@"C:\temp\latex.docx");

But Aspose.Words library couldn’t display the Latex equations in Word document.

@AlexWang,

We have logged your requirement in our issue tracking system. Your ticket number is WORDSNET-21190. We will further look into the details of this requirement and will keep you updated on the status of the linked issue.