Created attachment 70441 [details] Document with macro that demonstrates formatting of chemical formula It would be great to have functionality in Writer of formatting chemical formula automatically. Just place text cursor inside of formula and click "Format formula". Attachment contains macro which performs such automatically formatting. Try it. If it contains bugs or You have new idea how improve it, please, tell here. If it formats something wrong, please, attach document with well formatted formula for I can see how it should be.
While this is really nifty I can't imagine adding to the core code of LibreOffice. My suggestion is to add something to the extensions site where it can be downloaded as a third party extension. Really is pretty awesome - hope you understand why it's better as a macro or extension than in our core code. Feel free to contact me personally if you have any questions.