-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Support eqn (aka troff equation preprocessor) / libreoffice syntax #3261
Comments
I've marked this as a feature request, though we currently have no plans to implement an You can export your LibreOffice expressions as MathML and use them in MathJax, if you are looking for a way to get your LibreOffice equations into a web document that uses MathJax. See the documentation from LibreOffice on that. |
Thanks ! It was not much about importing libreoffice equations and more about using a clear and concise syntax :) I'll have a look at how to write new input plug-in. What is your "internal representation" based on ? |
There is really no documentation about writing an input jax at the moment, so there are only the two examples of the TeX and MathML input jax. Neither is ideal for looking at as a starting point, as the TeX input jax is more complicated that what you would need, and the MathML one is not very parallel to the problem you are solving. The internal representation is basically MathML, but as javascript objects (not DOM objects). There is a factory for creating them, where you can pass the type of node to create, its attributes, and its contents. The TeX input jax has a NodeUtil object that sits between the input jax and the internal format, which is left over from the fact that both of these were being developed at the same time, and we wanted to insulate the input jax from possible changes in the core MathML objects. It is really no longer necessary, as you can manipulate the MathML internals directly now. There are two important pieces to the input jax. The first is a FindMath implementation that identifies the math within the document, producing a MathItem object for each one. In your case, you would be looking for The second is the parser for the text string that is between those delimiters, and is what produces the internal MathML format from the expression. This is the fun part. the TeX input jax implements a stack-based parser, but it is up to you how you handle the parsing for that's a quick overview, but if you choose to pursue this, I might be able to give you a bit more to go on, after you have taken a look at the |
Eqn is an equation preprocessor for the troff typesetting system.
Its syntax was used as a base for the libreoffice equation object.
Its syntax is clean, simple, an I would be please to be able to use it to input math formulas with mathjax
The syntax is described at least here : https://lists.gnu.org/archive/html/groff/2013-10/pdfTyBN2VWR1c.pdf
I don't know if libreoffice uses a dialect of it
This would nicely complete the availability of asciimath
Here an example of the libreoffice equation editor
The text was updated successfully, but these errors were encountered: