Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make .tex source of paper available #132

Closed
dfm opened this issue Jun 8, 2016 · 45 comments · Fixed by #1320
Closed

Make .tex source of paper available #132

dfm opened this issue Jun 8, 2016 · 45 comments · Fixed by #1320

Comments

@dfm
Copy link
Contributor

dfm commented Jun 8, 2016

As mentioned in openjournals/joss-reviews#24, it would be great to make the .tex source of the compiled paper available (maybe it is and I'm just blind...) to enable things like uploading the paper to arXiv.

Thanks for making all this work!

@arfon
Copy link
Member

arfon commented Jun 8, 2016

We don't actually persist this anywhere currently but we could. We generate the PDF using this command: https://github.com/openjournals/whedon/blob/master/lib/whedon/processor.rb#L152-L171, the Pandoc tex template is here https://github.com/openjournals/whedon/blob/master/resources/latex.template

@kyleniemeyer
Copy link
Collaborator

I might be missing something, but what's the reason for uploading a JOSS paper to arXiv? The PDF generated by JOSS is citable with a DOI, and should persist.

@danielskatz
Copy link
Collaborator

I was wondering about that too. Is there a reason a very short arXiv paper with an arXiv URL is better than a JOSS paper that has a DOI and is indexed?

@dfm
Copy link
Contributor Author

dfm commented Jun 8, 2016

@arfon: Yeah. I ran the pandoc command with output paper.tex and that worked but it might be convenient to add that as part of the build process. Your call!

@kyleniemeyer: In astronomy, papers pretty much don't exist unless they're on arXiv so I wanted to post it there to make it available to the community (and advertise JOSS 😄).

@dfm
Copy link
Contributor Author

dfm commented Jun 8, 2016

Note: people would cite JOSS but they would find the paper through arXiv.

@kyleniemeyer
Copy link
Collaborator

Gotcha, sounds good.

@arfon
Copy link
Member

arfon commented Dec 8, 2017

@dfm - I'm just revisiting this. What would you need for an arXiv submission - would it simply be the paper.md file compiled into a paper.tex file? We could certainly add this as an output and commit it to the joss-papers repo: https://github.com/openjournals/joss-papers/tree/master/joss.00024

@ngoldbaum
Copy link

ngoldbaum commented May 25, 2018

@arfon I'm looking at this as well for the paper I'm submitting.

We'd need a paper.tex file along with a way to get the .sty file to get the styling of the generated arxiv submission to match the JOSS internal styling. That's not necessary of course, I could just use a regular article document style, but that makes the final paper on the arxiv look less nice and professional.

Here's the details about how to upload a LaTeX document to the arxiv: https://arxiv.org/help/submit_tex

@labarba
Copy link
Member

labarba commented May 26, 2018

… and also the .bbl file, if that is generated from the .bib — arXiv will process this and add the bibliography.

@arfon
Copy link
Member

arfon commented May 26, 2018

Max Ogden has a good write up here https://gist.github.com/maxogden/97190db73ac19fc6c1d9beee1a6e4fc8 of how to do this.

I think you need to modify the Whedon pandoc command to generate LaTeX as an alternative output. I'm not sure if that will produce .bbl files but it's a start.

@mattpitkin
Copy link

mattpitkin commented Jun 5, 2018

This may not be the best place to ask, but: I was just wondering if anyone has successfully submitted a JOSS paper to arXiv? I tried submitting my paper to the arXiv today, but just got this email from them:

Dear arXiv user,

arXiv only accepts complete, self-contained, research article submissions in a format appropriate for publication in a conventional journal.

Your submission did not appear to be complete and, as a result, has been removed. Please feel free to resubmit a complete paper.

For more information, see:
ref: http://arxiv.org/help/primer
ref: http://arxiv.org/help/moderation

Regards,
arXiv admin

As a side note: I created my .tex source file using this Makefile.

@ngoldbaum
Copy link

It looks like @dfm ran into similar issues back in 2016, since corner.py never got an arxiv submission as far as I can see:

http://adsabs.harvard.edu/abs/2016JOSS....1...24F

@danielskatz
Copy link
Collaborator

Someone would have to contact arxiv to be sure, but my guess is that the 1-2 page typical JOSS paper is not something that arxiv is likely to consider sufficiently weighty/lengthy.

@mattpitkin
Copy link

@ngoldbaum yeah, I'd noticed that for corner.py too.

@danielskatz I'd guess so. It's a shame that arXiv won't accept JOSS papers, but I suppose it's not too much of a big deal. As @dfm mentioned before, it would be nice if they would accept them to advertise and provide more exposure for JOSS, but it's probably not worth pushing too hard.

@ngoldbaum
Copy link

I'm planning to submit a more substantial paper (~10 pages typeset) this week or next week. I will comment here about whether it gets through the arxiv moderation.

@ngoldbaum
Copy link

I asked Steinn Sigurdsson (the arxiv scientific director) on twitter about this. He pointed me to the moderation policy which notes:

Abstract-only submissions, presentations, book announcements, book reviews, submissions without references, calls for papers, or advertisements may be removed.

So I guess that's the issue here. I expect a longer paper would make it past the moderators.

@mhucka
Copy link

mhucka commented Jun 6, 2018

But ... that list of criteria doesn't seem to cover JOSS-style papers, IMHO. Maybe arxiv would change their policy if petitioned and made aware that JOSS papers really are typically short yet complete?

@mattpitkin
Copy link

@mhucka - I've appealed my arXiv rejection with the following email:

Dear arXiv-moderation,

My submission submit/XXXXXXX was rejected and I presume this was due to the paper being very short. This is a paper that has been peer reviewed and accepted by the Journal of Open Source Software (JOSS) http://joss.theoj.org/ - which, although not a conventional journal, is becoming quite widely used, and may in the future be partnering with the American Astronomical Society. Typically, papers for this journal are very short, and as such what is included in the arXiv abstract field may represent the bulk of the paper, but they are complete and reviewed.

Would it be possible to reconsider this rejection for this article, and look at allowing JOSS papers for submission in the future?

Regards,

Matt Pitkin

I'll let you know what response I get.

@ngoldbaum
Copy link

My paper got posted: https://arxiv.org/abs/1806.02417

I ended up using @mattpitkin's makefile, which was very useful (and could probably be integrated into the JOSS submission instructions).

@mattpitkin
Copy link

I'm happy to report that the moderators accepted my appeal and my JOSS paper is now on arXiv (as is another JOSS paper I'm author on 😄).

@SuperKam91
Copy link

In case this is any use to anyone, I submitted the .pdf of the JOSS paper, and appealed to arXiv to let me use this for the submission rather than the LaTeX files, due to the standard JOSS procedure not giving access to those files. They accepted my appeal and so I uploaded the .pdf to arXiv

@jonasrauber
Copy link
Contributor

Has anything changed or is the above Makefile still the recommended workaround?
I'd prefer to submit LaTeX to arXiv rather than the PDF, if possible.

@arfon
Copy link
Member

arfon commented Aug 7, 2020

Nothing has changed sorry.

@flokno
Copy link

flokno commented Aug 26, 2020

Simply providing the .tex file would be great. I was successful with using the Makefile, but it is slightly outdated and this overall felt like an unneccesary exercise.

@flokno
Copy link

flokno commented Aug 28, 2020

FYI: My preprint got rejected even after appealing with a reference to arxiv's policy on short works.

@s-goldman
Copy link

I was able to reproduce my JOSS paper using latex. It took some tinkering, but they accepted the latex version. https://arxiv.org/abs/2010.03031v1

@dfm
Copy link
Contributor Author

dfm commented Feb 2, 2021

For those who continue to stumble across this:

@rodluger and I worked out yet another way to generate the .tex file for a JOSS manuscript using GitHub actions. I'm sure it would be possible to use the official action, but the way that we're doing it is (assuming the manuscript is in a directory called joss):

jobs:
  tests:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v2
      - name: TeX
        uses: docker://openjournals/paperdraft:latest
        with:
          args: joss/paper.md --to=latex --output=paper.tex
        env:
          GIT_SHA: $GITHUB_SHA
          JOURNAL: joss
      - name: PDF
        uses: docker://openjournals/paperdraft:latest
        with:
          args: joss/paper.md
        env:
          GIT_SHA: $GITHUB_SHA
          JOURNAL: joss
      - uses: actions/upload-artifact@v2
        with:
          path: joss

See it in action here: https://github.com/rodluger/starry_process

@ashleychontos
Copy link

ashleychontos commented Jun 5, 2021

The above action worked and created a .tex file for me, thanks a bunch @dfm and @rodluger! I was curious if we can somehow apply this workflow to the most up-to-date draft in the review process?

@arfon
Copy link
Member

arfon commented Jun 5, 2021

@tarleb – might be good to adapt this Action to optionally include a .tex output https://github.com/openjournals/openjournals-draft-action ?

I was curious if we can somehow apply this workflow to the most up-to-date draft in the review process?

@ashleychontos – the content in the joss-papers repo you link to above is mostly for operating the journal so I don't really want to add .tex outputs there. That said, I'm definitely interested in making it easier for authors to generate a .tex version of their paper for their own needs.

@ashleychontos
Copy link

@arfon oh whoops, yeah that definitely makes sense. Like many others in this thread, I was just having issues uploading the current draft to arXiv. I imagine adding that action would definitely be helpful for others in the future

tarleb added a commit to tarleb/whedon that referenced this issue Jun 7, 2021
Passing the `-k` option when calling the image ensures that the
intermediary LaTeX file, named `paper.tex`, is put next to the
`paper.pdf` PDF file.

See openjournals/joss#132
tarleb added a commit to tarleb/whedon that referenced this issue Jun 7, 2021
Passing the `-k` option when calling the image ensures that the
intermediary LaTeX file, named `paper.tex`, is put next to the
`paper.pdf` PDF file.

See openjournals/joss#132
@tarleb
Copy link
Contributor

tarleb commented Jun 7, 2021

I've made a small change to the underlying Docker image; passing -k as the first argument now ensures that the paper.tex is placed next to the paper.pdf. So the following should work:

jobs:
  tests:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v2
      - name: TeX and PDF
        uses: docker://openjournals/paperdraft:latest
        with:
          args: '-k joss/paper.md'
        env:
          GIT_SHA: $GITHUB_SHA
          JOURNAL: joss

zonca added a commit to galsci/pysm that referenced this issue Aug 1, 2021
@zonca
Copy link

zonca commented Aug 1, 2021

thanks,

I just submitted a JOSS paper to Arxiv, here my steps:

@ashleychontos
Copy link

I was just able to finally submit to the arXiv based on @zonca 's detailed instructions (^^). Thank you so much @zonca 🙌

@rkurchin
Copy link

One note on @zonca's very nice clear suggestion above: It's not quite so simple if the repo isn't hosted on GitHub (e.g. it's on GitLab, as in openjournals/joss-reviews#4040) – to me, this is an argument to maybe just make editorialbot have an option to generate and output the .tex directly...

@szhorvat
Copy link

szhorvat commented Aug 29, 2022

@arfon It would be great for JOSS to make a clear statement about arXiv submissions. The preprint policy states that preprints are okay, but in practice there are many obstacles to submitting to arXiv, the most prominent preprint server.

There are workarounds above—I think it's fair to call them workarounds rather than solutions—but no officially supported way to produce a format that is suitable for arXiv. While JOSS is a software journal, many authors are still primarily researchers and not software developers. Using these workaround will not be trivial for many people, and having to jump through this many technical hoops just to submit a preprint is quite unpleasant.

There are several possibilities:

  • If JOSS wants to support preprint submissions with JOSS's official template, there should be a supported and documented way to retrieve the TeX file. Even better, there should be a way to make it very clear whether the paper was submitted to JOSS at all so far—after all, there's no guarantee of acceptance, and that big JOSS logo may confuse preprint readers.
  • JOSS may want to discourage using the official template (and JOSS logo) in preprints, and ask authors to convert to TeX on their own. IMO this is entirely reasonable, but if this is the case, it should be made clear.
  • JOSS may want to discourage arXiv submissions due to the not-so-positive reactions by some moderators, reported in a few comments above. I assume this is not the case though.

I feel that the current approach by JOSS is neither here nor there. Using the template is not technically prevented, but in practice it's much more difficult than it should be. It would be very useful if you could clarify the situation, or if you could point me to prior statements on this that I may have missed 🙂

@szhorvat
Copy link

I should note that adding -k to the command suggested here does not work, and it's not clear to me how to make use of @tarleb's improvement.

@arfon
Copy link
Member

arfon commented Aug 30, 2022

Thanks for the summary statement here @szhorvat. While I've not canvassed opinion widely amongst the editorial team this is my preferred option:

JOSS may want to discourage using the official template (and JOSS logo) in preprints, and ask authors to convert to TeX on their own. IMO this is entirely reasonable, but if this is the case, it should be made clear.

I think it's reasonable to say that JOSS supports people uploading a preprint of their paper to the arXiv (and other preprint servers) but I think this has also caused confusion when the paper looks very similar to the published version in JOSS.

In summary my position is:

  • Preprints are fine (in fact, encouraged!)
  • JOSS discourages authors to use the official template for their preprints.

This second point seems to point towards it being a bad idea for us to support exporting (from @editorialbot) a TeX version of the paper.

@tarleb @xuanxu – perhaps we could have some way to produce a 'plain' version of a JOSS paper that is stripped of all of the JOSS styling (i.e., akin to the default Panda output). That should be possible right?

@tarleb
Copy link
Contributor

tarleb commented Aug 30, 2022

I'll try to improve the support for that in Inara.

@xuanxu
Copy link
Member

xuanxu commented Aug 30, 2022

+1 to a --plain option

@szhorvat
Copy link

szhorvat commented Aug 30, 2022

Thank you for the clear response @arfon !

I think it's reasonable to say that JOSS supports people uploading a preprint of their paper to the arXiv (and other preprint servers) but I think this has also caused confusion when the paper looks very similar to the published version in JOSS.

I fully agree with this. The first time I saw such a preprint as a reviewer, I though that it looked as if it has already been published. But then I checked the preprint policy, which clearly encourages preprints, so I did not mention anything about this in the review.

@tarleb @xuanxu – perhaps we could have some way to produce a 'plain' version of a JOSS paper that is stripped of all of the JOSS styling (i.e., akin to the default Panda output). That should be possible right?

If JOSS does this, it would certainly be a great convenience for authors.

@tarleb
Copy link
Contributor

tarleb commented Aug 30, 2022

I've opened openjournals/inara#16. We may have to strip down the resulting LaTeX a little more. We'll also have to adjust the openjournals/paperdraft action and add more documentation.

@xuanxu
Copy link
Member

xuanxu commented Sep 28, 2022

📢 New command available for the JOSS reviews 📢

@editorialbot generate preprint will respond with a link to a simple .tex version of the paper to be used in arXiv or other preprint servers.

The preprint file can also be created directly running the inara image with the following option: -o preprint

@xuanxu xuanxu closed this as completed Sep 28, 2022
@arfon
Copy link
Member

arfon commented Sep 28, 2022

Amazing, thank you @xuanxu and @tarleb!

@kavanase
Copy link

This editorialbot preprint command is very useful!

Just a note, it might be worth adding a mention of this to the Preprint Policy part of the JOSS submission guidelines (https://joss.readthedocs.io/en/latest/submitting.html#preprint-policy). Just it took a bit of Googling and looking for other options before I came across this thread. I realise now if I searched 'preprint' in the JOSS docs, I would've found this command (and I probably should have tried this), but it would make it a bit easier for authors if this was mentioned in the submission guidelines part. Just a suggestion!

@sneakers-the-rat
Copy link
Contributor

@kavanase got u :) #1320

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.