Turning LaTeX Into Real, Editable Word Equations: 5 Things That Broke
Exporting a ChatGPT or Gemini answer to Word sounds like a solved problem until the answer contains math. Most tools give you one of two things: raw LaTeX (\frac{a}{b} sitting in your report like a typo) or a picture of
Exporting a ChatGPT or Gemini answer to Word sounds like a solved problem until the answer contains math. Most tools give you one of two things: raw LaTeX (\frac{a}{b} sitting in your report like a typo) or a picture of the equation that nobody can edit.
I wanted the third option: a real Word equation, the kind you get from Insert β Equation, that you can click into and change. Word stores those in its own format, OMML (Office Math Markup Language), and it turns out to be full of surprises. Here are the ones that cost me the most time.
1. Brackets have to know what they wrap
In LaTeX, \left( \frac{a}{b} \right) is a pair of brackets that grow with their content. In Word that only works if the brackets are one object that contains the fraction. Treat them as two separate characters and Word draws tiny fixed-size parentheses next to a tall fraction. It looks broken, even though every character is "correct".
\begin{cases} adds a twist: it only has an opening {. If you don't explicitly tell Word there is no closing bracket, it helpfully adds a ) at the end.
2. The dotted boxes
The bug that kept coming back: a formula in Word with small dotted placeholder boxes in it. Word shows those whenever a slot in an equation is empty, the same boxes you see when you insert a blank fraction.
They appeared in places I didn't expect:
- Sums. In Word, the thing being summed lives inside the β object. If it ends up next to it instead, you get a β with an empty dotted body, followed by the expression floating on its own.
-
Empty limits, like
\sum_{i}^{}, which is perfectly valid LaTeX. -
Chemistry. Formulas like HβO written with
\ce{}produce subscripts with nothing in front of them.
3. Every sum became an integral
For a while, every β in an exported document quietly turned into β«. Word's big-operator object has a default symbol, and the default is the integral sign. If you don't spell out which operator you mean, Word picks for you. Nobody notices until a statistics student does.
4. Characters you can't see
Math renderers in the browser sprinkle in invisible Unicode characters, for example a "function application" mark after sin or log. Browsers hide them. Some Word fonts draw them as little boxes. There are also "spaces" that exist only to adjust height and have no width at all. Turn those into real spaces and your formula gets gaps in odd places.
5. Non-English text inside math
People write math in their own language. Vietnamese was a great stress test: a letter like "α»" can arrive as a base letter with accents stacked on top as separate pieces. Shown as stacked math accents in Word, it looks wrong to any native reader. It needs to come out as the single letter a person would type.
What I'd tell anyone trying this
- Test in real Microsoft Word. Most of the bugs above are invisible in DOCX viewers, Google Docs previews and LibreOffice.
- Collect real formulas from real users. My neat test set passed long before real chats stopped breaking: chemistry, cases, empty limits, other languages.
- Never let math break the whole export. If one formula can't be converted, show it as text and still deliver the document.
Editable equations ended up being the clearest difference between a dedicated exporter and copy-paste, and for students and researchers it's the whole point.
I build Chrome extensions that export AI chats (ChatGPT, Gemini, Claude, DeepSeek and others) to Word, PDF, Google Docs and Notion. If you've fought with Word equations too, I'd love to hear which edge cases got you.
I used an AI assistant to help draft this write-up; the bugs and the lessons are from my own project.
Originally published by Dev.to WebDev. Aggregated on AIWithGhost for educational purposes β full credit and traffic to the original publisher.