rstudio / rstudio/rticles

Arxiv submission may need \pdfoutput=1 in the preamble

Open
#469 10 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
TeX
Stars
1.5k
Forks
517
Avg merge
1d 8h
Merged PRs (30d)
5

Description

Hello, as I reported in https://github.com/rstudio/rmarkdown/issues/2315, Arxiv sometimes fails to recognize a submitted document as a PDFLaTeX, consequently not showing the material in the final output; for example this happens if no images are linked in the .tex file.
To force recognition by the arxiv system one has to add \pdfoutput=1 in the first 5 lines of the .tex file preamble (see https://arxiv.org/help/submit_tex).

The rticles::arxiv_article() template does not provide such option.

I suggest either adding \pdfoutput=1 at the beginning of the template or, if you think there could be reasons to use such options, conditioning the option to a flag in the YAML.

I can take care of it once agreed on the implementation.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by locating the rticles::arxiv_article() template and reviewing the linked arXiv submission guidance. Decide whether the generated preamble should always include \pdfoutput=1 or expose it through YAML, then verify that the resulting .tex file places the setting within its first five lines.

Written by the indexing model from the issue text.

Assessment

Tech stack
latex
Domain
tooling
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.