Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/m-x-d/dwml_cs

OMML to LaTeX conversion library.
https://github.com/m-x-d/dwml_cs

docx latex ooml

Last synced: 2 months ago
JSON representation

OMML to LaTeX conversion library.

Awesome Lists containing this project

README

        

# dwml_cs - MSOffice OMML to LaTeX conversion library.
A C# port of dwml library by xiilei (https://github.com/xiilei/dwml).

#### Example input:

![equation](https://github.com/user-attachments/assets/c6e8f9ef-1cac-41d7-81e0-6374ef3dbb26)

#### Example output:
```latex
2\pi\int_{a}^{b}{y\sqrt{1+(f^{\prime}(x))^{2}}}\ dx
```

# Usage:
```csharp
using mxd.Dwml;

var xmldoc = new XmlDocument();
xmldoc.Load("example.xml");

// DocumentElement is expected to be a m:oMath node.
var latex_str = MLConverter.Convert(xmldoc.DocumentElement);
Console.WriteLine($"LaTex: '{latex_str}'");
```