Cooperation and compatibility between PreTeXt and LaTeXML.

52 views
Skip to first unread message

Hongyi Zhao

unread,
May 16, 2021, 1:57:00 AM5/16/21
to PreTeXt support
Today, I noticed an interesting project developed by NIST,  LaTeXML (https://github.com/brucemiller/LaTeXML), which can do the reversal work of PreTeXt, conversion of a TeX and LaTeX document to its XML/HTML/ePub/MathML counterpart. At first glimpse, it seems that PreTeXt and LaTeXML are brothers and do the opposite job.

So, I am curious if anyone has tested the cooperation and compatibility between PreTeXt and LaTeXML.

Regards,
HY

David Farmer

unread,
May 16, 2021, 10:00:27 AM5/16/21
to PreTeXt support

I am familiar with LaTeXML and am in contact with the people
who are active on that project. But the real issue is that
the markup language does not tell the whole story.

There are numerous way to convert LaTeX to HTML. None of them
have all the features of HTML produced from PreTeXt. So, having
a particular markup language as the target does not mean that it
is giving you what you want. PreTeXt is XML, but it has little
in common with the XML output from LaTeXML.

A strength of LaTeXML is how it handles the math. It is possible
that when PreTeXt converts to HTML with the option of having the
math as MathML, then LaTeXML could do the math part.

Regards,

David
> --
> You received this message because you are subscribed to the Google Groups "PreTeXt support" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to
> pretext-suppo...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/pretext-support/0d561cd6-f7b3-4aa2-96b8-eab94da07a5cn%40googlegroups.com.
>
>

Rob Beezer

unread,
May 16, 2021, 11:22:51 PM5/16/21
to pretext...@googlegroups.com
I'll just add that I like to call PreTeXt an "XML vocabulary". There is really
no such thing as just "XML".

XML really just means the

<foo bar="batz">...</foo>

syntax, organized into a hierarchy or a tree. That's about 95% of what XML is.

You get a "vocabulary" when you define the elements and attributes *and* their
relationships with each otser.

Rob
Reply all
Reply to author
Forward
0 new messages