brucemiller / LaTeXML

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

JATS: proper way to add "author date" for LaTeXML #2352

Open castedo opened 1 month ago

castedo commented 1 month ago

When I add \date{2024-04-11} to my .tex file the resulting JATS is

      <pub-date>
        <year>2024-02-02</year>
      </pub-date>

I have little idea why -02-02 got appended.

JATS4R has suggestions but for the most part I suspect those suggestions are only tangentially related. Pandoc when given LaTeX \date{2024-04-11} outputs this:

     <pub-date date-type="pub" publication-format="electronic" iso-8601-date="2024-04-11">
        <day>11</day>
        <month>4</month>
        <year>2024</year>
     </pub-date>

which seems OK, but also wonky to me because of the date data redundancy and ambiguity of "pub".

I have been using the language of "author date" and "archive date" in HTML and PDFs that I generate, but that's just me making up stuff that makes sense to me. The author date is whatever the author says it is. The archive date is when the article data gets archived, according to the first authoritative archive to archive it. In my mind the author date belongs in LaTeXML generated JATS and the archive date (and all other kinds of dates around institutional publishing) do not.

What makes sense to me is:

     <pub-date date-type="author" publication-format="electronic" iso-8601-date="2024-04-11"/>

But for the most part, as long as there is only one <pub-date> I doubt it matters that much what date-type= is assigned to.