openjournals / inara

Tools to create JOSS/JOSE publishing artifacts
MIT License
30 stars 17 forks source link

Add `arxiv` target #51

Open musoke opened 6 months ago

musoke commented 6 months ago

The preprint target outputs a very plain file without any styling. It is nice when the preprint version of a paper has similar formatting to the published version. There have been requests and discussions concerning a smooth way to do this:

Some issues were raised, the biggest one being possible confusion about the publication status of a preprint. (See for example https://github.com/openjournals/joss/issues/132#issuecomment-1230300142 and https://github.com/openjournals/joss/issues/132#issuecomment-1231338773.)

In this PR I have configured pandoc to output a LaTeX file somewhat closer to that which would generate the official PDFs. In order to distinguish it from a published article, this style:

There are other minor differences in fonts and PDF tags because arxiv.org only supports pdflatex, not lualatex:

Possible issues/room for improvement:

Here is the PDF preview generated by arxiv: image

This PR may not be merged here, but I figured I would put the changes out there in case they are useful to someone.

cthoyt commented 2 months ago

I really like this idea since it means that the regular publication and preprint can be managed in the same template

I would go even further and say that this should replace the preprint template completely