News for hackers. Stuff that matters.
Re:NIST Digital Library of Mathematical Functions by bfirsh on Thursday December 24, 2020 @11:51AM (#25529087)
These functions are represented as LaTeX, because that's the gold standard for rendering math. But, they also want them available as XML so they're in a more sensible format for archiving.

So, funnily, as part of this, NIST maintain a LaTeX to XML converter.[0] It's a pretty complete LaTeX runtime. (Yes, runtime -- TeX is a programming language, not a markup language!)

This is the thing that powers arXiv Vanity[1] and other academic publishing projects.

I just find it quite amusing that the US Government maintains a LaTeX runtime written in Perl.

[0] https://dlmf.nist.gov/LaTeXML/

[1] https://www.arxiv-vanity.com/

Re:NIST Digital Library of Mathematical Functions by yudlejoza on Thursday December 24, 2020 @02:59PM (#25530896)
> This is the thing that powers arXiv Vanity.

Never heard of this. Does it have access to the LaTeX source of the arXiv paper? I didn't know arXiv hosted sources.

Re:NIST Digital Library of Mathematical Functions by petschge on Thursday December 24, 2020 @04:10PM (#25531455)
Depends what the authors upload. You can just upload a PDF. But if arXiv detects that the PDF came out of pdflatex it will pretty instantly nag you to give it the TeX sources. It will then render the PDF itself and also offer the sources for download. That is also how astro-ph-leaks [1] works.

[1] https://twitter.com/LeaksPh

Re:NIST Digital Library of Mathematical Functions by ISL on Thursday December 24, 2020 @09:52PM (#25533783)
Oh, wow. Had never heard of astro-ph-leaks. That is the best.
Re:NIST Digital Library of Mathematical Functions by jimktrains2 on Thursday December 24, 2020 @12:02PM (#25529204)
Xml in what sense? Mathml?
Re:NIST Digital Library of Mathematical Functions by bfirsh on Thursday December 24, 2020 @12:50PM (#25529663)
It's own format, which is a rough semantic representation of a LaTeX document: https://dlmf.nist.gov/LaTeXML/manual/schema/

There are ways of exporting MathML within that schema, I think.

Re:NIST Digital Library of Mathematical Functions by kevinb7 on Thursday December 24, 2020 @02:12PM (#25530435)
The site has MathML (pMML) representations that can be downloaded.