Frédéric WANG
2014-05-11 17:12:25 UTC
Dear LyX developers,
I've just built the git development version of LyX and had a look at the
(X)HTML export options. As I see, the current possibilities are (please
tell me if I missed anything):
1) HTML export: this is done by tex4ht and generates images of math
formulas.
2) LyXHTML export: this is done by tex4ht and generates MathML output by
default for math formulas.
Moreover, the Document => Parameters => Output menu allows to configure
2), to output HTML, Images or the LaTeX source instead of MathML.
LaTeXML 0.8 has recently been released with new exciting features, and
I'd like to add new export modes using LaTeXML. My idea is:
1) HTML5 export (LaTeXML)
2) XHTML export (LaTeXML)
3) EPUB3 export (LaTeXML)
In the Document => Parameters => Output menu, I wish to add the
following configurations for LaTeXML:
1) Export for maths
a) MathML (default)
b) MathML + CSS fallback
c) MathML + MathJax fallback
d) PNG
For b) and c), see
https://developer.mozilla.org/en-US/docs/Web/MathML/Authoring#Fallback_for_Browsers_without_MathML_support
c) will probably be ignored for the EPUB export, as that would mean
having a copy of the MathJax library available to lyx and packaging a
copy into each ebook...
2) Split the document into multiple pages, see --split-at
http://dlmf.nist.gov/LaTeXML/manual/usage/usage.splitting.html
a) do not split (default)
b) chapter
c) section
d) subsection
e) subsubsection
What do you think about this proposal? And do you have any hints /
recommendations about how to do that?
Well, if I don't hear any strong complaints, I think I'll just go ahead
and try to write a patch implementing that proposal...
Thanks,
PS: Other formats such as DOC (MS Word) or ODT (Open/LibreOffice Writer)
might be possible in the future: https://github.com/KWARC/LaTeXML-Plugin-Doc
PPS: I see that the XHTML output also has a "scale math" parameter. I
guess the rationale is to adjust the size to fix inconsistencies between
text & math fonts. As you probably know, the Open Type MATH table has
started to be implemented in Gecko/WebKit native MathML and I expect
LaTeXML will get some options to set up and handle (Web) fonts better.
So it would be possible in the future to get consistent text & math
fonts and hopefully a MathML rendering close to XeTeX/LuaTeX...
Frédéric Wang
maths-informatique-jeux.com/blog/frederic
I've just built the git development version of LyX and had a look at the
(X)HTML export options. As I see, the current possibilities are (please
tell me if I missed anything):
1) HTML export: this is done by tex4ht and generates images of math
formulas.
2) LyXHTML export: this is done by tex4ht and generates MathML output by
default for math formulas.
Moreover, the Document => Parameters => Output menu allows to configure
2), to output HTML, Images or the LaTeX source instead of MathML.
LaTeXML 0.8 has recently been released with new exciting features, and
I'd like to add new export modes using LaTeXML. My idea is:
1) HTML5 export (LaTeXML)
2) XHTML export (LaTeXML)
3) EPUB3 export (LaTeXML)
In the Document => Parameters => Output menu, I wish to add the
following configurations for LaTeXML:
1) Export for maths
a) MathML (default)
b) MathML + CSS fallback
c) MathML + MathJax fallback
d) PNG
For b) and c), see
https://developer.mozilla.org/en-US/docs/Web/MathML/Authoring#Fallback_for_Browsers_without_MathML_support
c) will probably be ignored for the EPUB export, as that would mean
having a copy of the MathJax library available to lyx and packaging a
copy into each ebook...
2) Split the document into multiple pages, see --split-at
http://dlmf.nist.gov/LaTeXML/manual/usage/usage.splitting.html
a) do not split (default)
b) chapter
c) section
d) subsection
e) subsubsection
What do you think about this proposal? And do you have any hints /
recommendations about how to do that?
Well, if I don't hear any strong complaints, I think I'll just go ahead
and try to write a patch implementing that proposal...
Thanks,
PS: Other formats such as DOC (MS Word) or ODT (Open/LibreOffice Writer)
might be possible in the future: https://github.com/KWARC/LaTeXML-Plugin-Doc
PPS: I see that the XHTML output also has a "scale math" parameter. I
guess the rationale is to adjust the size to fix inconsistencies between
text & math fonts. As you probably know, the Open Type MATH table has
started to be implemented in Gecko/WebKit native MathML and I expect
LaTeXML will get some options to set up and handle (Web) fonts better.
So it would be possible in the future to get consistent text & math
fonts and hopefully a MathML rendering close to XeTeX/LuaTeX...
Frédéric Wang
maths-informatique-jeux.com/blog/frederic