How to convert LaTeX equation into editable equation using Google Apps Script

元气小坏坏 提交于 2020-08-22 04:54:15

问题


tldr: How can I convert a LaTeX equation in Google Docs so that it is editable as a Google Doc equation?

Background: I want to import html into Google Docs. This HTML includes (in my native database) LaTeX equations. When I import to Google Docs, the LaTeX is converted into non-editable images. I want to convert the LaTeX into editable Google equations. I'm thinking I can use Google Apps Scripts to accomplish this. My plan is to insert the equations as a text-string "tag" such as [latex: x + 5 = -3] - then I'll run a Google Apps Scripts function that converts that tag to a Google Docs equation.

I'm not sure if there's a well-known way to convert LaTeX into Google Apps Scripts equations? Should I just load a javascript library to accomplish this? Would I convert LaTeX to MathML and load that into the Google Apps Scripts equation object?


回答1:


This genuinely isn't possible - and I tried for ages! The official Docs say that equations are not supported as insertable types, IE they can only be edited in place.



来源:https://stackoverflow.com/questions/45804238/how-to-convert-latex-equation-into-editable-equation-using-google-apps-script

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!