brucemiller / LaTeXML

LaTeXML: a TeX and LaTeX to XML/HTML/ePub/MathML translator.
http://dlmf.nist.gov/LaTeXML/
Other
863 stars 93 forks source link

JATS: mixed-citation vs element-citation #2349

Open castedo opened 2 months ago

castedo commented 2 months ago

LaTeXML 0.8.8 outputs <mixed-citation> elements in the <ref-list>, instead of <element-citation> elements.

Not sure what is the right approach for LaTeXML but I can say mixed-citation causes a problem for anybody that wants to parse JATS with Pandoc, since Pandoc currently can not parse mixed-citation: https://github.com/jgm/pandoc/issues/6287. https://gitlab.com/perm.pub/epijats, and thus everything Baseprints, currently uses Pandoc to parse JATS. However that might change this year.

@dginev you mentioned PMC4053489 as a "another kind of high quality reference". It uses <element-citation>.

Unfortunately I am not experienced enough with publishing and JATS to know which makes sense in the context of how LaTeXML gets used. I can say that element-citation fundamentally is easier to parse because it's like a json object, whereas mixed-citation is marked up text, what XML is designed for.