If I convert a LaTeX file to RTF using latex2rtf and then try to view the generated RTF in LibreOffice Writer, all the formulas are missing. By contrast, if I open the RTF in Microsoft Word 2010, all the formulas are correctly displayed.
Attached is a minimal example: a simple LaTeX document containing one formula, and the RTF resulting from running latex2rtf on it.
Steps to Reproduce:
1. Open the attached RTF file
2. LibreOffice Writer displays a blank page
3. LibreOffice writer should have displayed a document containing the following formula: x² + y² = z²
User Profile Reset: No
OpenGL enabled: Yes
Possibly related to Bug 89146.
Created attachment 163096 [details]
Sample LaTeX file to run through latex2rtf
Created attachment 163097 [details]
RTF resulting from running test.tex through latex2rtf
Created attachment 163098 [details]
Comparison MSO 2010 and LibreOffice 7.1 master
Build ID: d851a02df57ab378ed0cc6d9362516de09c3279c
CPU threads: 4; OS: Linux 4.19; UI render: default; VCL: gtk3
Locale: en-US (en_US.UTF-8); UI: en-US
Build ID: 5b168b3fa568e48e795234dc5fa454bf24c9805e
CPU Threads: 4; OS Version: Linux 4.8; UI Render: default;
Locale: ca-ES (ca_ES.UTF-8)
Build ID: c15927f20d4727c3b8de68497b6949e72f9e6e9e
Version 184.108.40.206.alpha0+ (Build ID: efca6f15609322f62a35619619a6d5fe5c9bd5a)
- LibreOffice 3.3.0
Looking at attachment 163097 [details] the latex2rtf converted formula is generated as MS RTF Field code 'EQ'
See little reason to tweak RTF import filters to parse as the latex2rtf project makes no effort beyond MS Word, or using the RTF 'EQ' field code extensions to hold the equations. And this is NOTOURBUG?
Ideally we'd want MathML, but I guess MathType MTEF could be parsed. The RTF Field extensions are an unsupported dead end which the latex2rtf project concedes is getting progressively worse in fidelity on their target Word platform.
RTF has at least 3 different ways to represent formulas:
- the rtf markup which is a 1:1 mapping of OOXML (newest)
- the OLE object way, which was the norm till 2003
- the EQ field
I think if somebody is interested in improving support for the last one in LO, it would be welcome, so no reason to close this bug.