JATS XML and author-supplied formats

In my work on building a publishing pipeline, I’ve come to realize that one of the major pain points of scholarly publishing is how to convert author-supplied documents into a format that can be distributed to readers. In many disciplines the author-supplied format is often Microsoft Word, but that is almost unheard of in the disciplines I work in (mathematics and computer science). In my world authors almost always write in LaTeX, and that is what the publisher accepts from authors. There are a few other formats that some people argue for, and I recently looked at typst as an option but it has almost no usage so far.

For the publisher, the problem is how to convert the author-supplied document into a format that can be published on the website. In today’s world that is usually either PDF or HTML. I’ve read that some publishers convert the author-supplied format into the intermediate format of JATS XML, because then it is relatively simple to produce PDF and HTML from it. That caused me to wonder why authors don’t write their documents in the JATS format to start with, so we could eliminate the need for this expensive format conversion step. One problem I stumbled across immediately is that the ecosystem for JATS tools is almost completely proprietary, and the tools are too clumsy for authors to really use. As an experiment I built an online tool for JATS editing that is very much like the overleaf collaborative editing platform for LaTeX. In case anyone is interested it is temporarily running at jatsy.mccurley.org.

Unfortunately I’ve learned that JATS itself contains essentially no information about how the document should be formatted, so any author-supplied formatting (e.g., text size, location of figures, etc) is lost in the conversion. There is always a tension between the stuff that an author might try to put into their document and the style that a journal tries to enforce to maintain a consistent look-and-feel. An example is when an author writes their section headings in comic sans :roll_eyes: Sometimes it makes sense for an author to apply special formatting if they are producing very complex documents. If you consider the example of this document it contains a small figure that text flows around in the PDF version. Unfortunately the conversion to HTML completely discards that. A journal may of course dictate that such constructions are forbidden, and perhaps that is the norm in the humanities. Many documents in computer science use a two-column format in which there may be figures that span the two columns and float to the natural place in the document when it is rendered. https://arxiv.org/abs/2103.00020 is an example of that. A two-column format doesn’t make much sense for an HTML version unless it is mobile-friendly and converts to a single column on small screens. In the case of arxiv, their HTML version has one column (and the figure survives).

My reason for mentioning this here is to ask whether people have thought much about what the future authoring document format should be, and how we will ultimately build low-cost publishing platforms in the future that satisfy the different requirements:

  • publishing is increasingly dependent on handling of metadata, so it’s important to capture that accurately from authors. If possible that should be bundled into the document the author submits since they are the supplier of a lot of the metadata (e.g., author names, affiliations, title, abstract, bibliographic references, etc). Microsoft Word is almost useless for this, but I’ve been working on ways to embed this into LaTeX and our publishing pipeline now requires it.
  • It should be capable of producing an accessible document format from what the author supplies. This means both that it should be consumable by people with disabilities, but also consumable on a variety of screens and other media. In today’s world that usually means PDF or mobile-friendly HTML, but it might also include the capability of speaking the contents. Now that machine translation is fairly good, it might also mean automatic conversion to other natural languages. For mathematics it is quite complicated to produce accessible documents, but the LaTeX team has been working hard on it for over a decade and the results are pretty good now. HTML conversion remains a mess in LaTeX but arxiv is experimenting with it. typst may eventually be the format that wins because of this.
  • It should be capable of producing finely typeset material. For mathematics the gold standard is TeX and that’s part of the reason why it has survived for over 40 years. There are almost no software systems that are this old.
  • The environment should be easy for authors to use. I suspect that is why many authors are drawn to Microsoft Word in the humanities, and why authors are drawn to overleaf in mathematics and computer science. The tools are quite usable.
  • The tools should be open source or at least low cost. Microsoft word does not fulfill this but there is always Libreoffice.

I have a pretty good grasp on what is happening in mathematics and computer science, but are there any alternatives that I am overlooking here that might have promise in the humanities? Are there any document features that others can think of that are important for a scholarly publishing pipeline? How do publishers cope with author-supplied Microsoft Word without investing huge amounts of human effort?

Hi @kmccurley,

Thanks for sharing - lots of great insights here, and. And, Jatsy McCurley has a really nice ring to it :wink:

I’m not as up on LaTeX, but, with respect to JATS, you might be interested in what @Dulip_Withanage is doing with Pubready: https://withanage.de/pubready/en/

Also, if you. haven’t seen it, some of the JATS related workflow that will be forthcoming in future versions of OJS were discussed in the PKP Dev update back in May: https://www.youtube.com/watch?v=zYOoXHcWqDg

-Roger
PKP Team

@kmccurley just ping me via email or https://www.linkedin.com/in/dulipwithanage/ I can show you how we are handling the latex to jats support!