I am rendering two documents, that cross-reference items in each other. For that I am using the LaTeX package zref
.
To make zref
work, it needs the *.aux
file of the documents which are created when calling pdflatex
.
Unfortunately, using RStudio and its basic approach to render the document (the knit button, Cmd+Shift+K or rmarkdown::render()
) these files will be deleted after the compilation was successful.
Unchecking the global option Tools -> Global Options -> Sweave -> Clean auxiliary output after compile does not help.
I know of two options to go around this:
Manually compile the tex file after the pdf was rendered.
Write a makefile that does that.
But is there another option I am not aware of?