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
Could not convert TeX math \frac #7771
Comments
This isn't a bug, just a warning. Pandoc will try to convert TeX math to an equation that works in the target format, e.g. OMML equation in docx. If it can't do this, it issues this warning and includes the plain TeX code. RTF doesn't have a native equation syntax, and fractions can't be "faked" with plain text since they involve putting things in a vertical stack, hence this warning. You might look at the |
The warning remains also if you try to obtain an RTF with equations rendered as images (which is what I'm trying to achieve), using the option |
I'm sorry, I forgot that |
There's actually no reason we couldn't make |
Ok, thanks. I also tried conversion to RTF from HTML containing equation rendered as PNG, but I get the message
I checked the HTML and the image of the equation is a PNG. Vector renderingThe PNG rendering obtained with the |
If you use ODT, you don't need to mess with images; ODT supports mathml and pandoc will do the conversion for you. |
Even if ODT supports math rendering, the quality of math rendered by LaTeX is much higher, so I would prefer anyway to have LaTeX rendered images in ODT. |
I just pushed a fix to the problem with data URIs you noted above. |
I try to convert from markdown to rtf using
pandoc test.md -s --self-contained --webtex -o test.rtf
a very simple markdown file containing just
Equation $\frac{1}{2}$
and I get the warning message
[WARNING] Could not convert TeX math \frac{1}{2}, rendering as TeX
and of course in the RTF file the equation is not rendered.
Pandoc version
pandoc 2.16.2 Compiled with pandoc-types 1.22.1, texmath 0.12.3.2, skylighting 0.12.1, citeproc 0.6, ipynb 0.1.0.2
Under Ubuntu running inside Windows Subsystem for Linux.
The text was updated successfully, but these errors were encountered: