Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature Request: Support inserting Office MathML (Mathematical Formula) in Excel files #473

Open
wangjinyin7136 opened this issue Mar 7, 2025 · 0 comments

Comments

@wangjinyin7136
Copy link

Hi, thanks for this great library!

Background

Currently, libxlsxwriter doesn't support inserting mathematical formulas (like Office MathML or LaTeX-style math expressions) into Excel files. This is a useful feature when generating scientific or technical reports directly from code.

Expected feature

Add an API to allow embedding Office MathML into Excel files, possibly in cells, textboxes, or shapes. This can enable rendering complex formulas such as:

a² + b² = c²

Why it matters

This is very useful for scientific, engineering, educational applications, and automatic report generation tools. Other Office files (like Word or PowerPoint) can handle MathML, so Excel supporting it would make sense for compatibility.

Potential Approaches

  • Directly insert Office MathML into drawing.xml or sheet.xml.
  • Expose an API for adding MathML strings into textboxes or shapes.
  • Support injecting preformatted XML blocks into the XLSX archive.

Would love to hear your thoughts on this.

Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant