Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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.
- Host: GitHub
- URL: https://github.com/m-x-d/dwml_cs
- Owner: m-x-d
- License: apache-2.0
- Created: 2024-08-01T15:09:09.000Z (5 months ago)
- Default Branch: main
- Last Pushed: 2024-08-02T14:54:09.000Z (5 months ago)
- Last Synced: 2024-09-27T14:43:21.646Z (3 months ago)
- Topics: docx, latex, ooml
- Language: C#
- Homepage:
- Size: 38.1 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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}'");
```