There are more and more papers which accept supplementary materials, as e.g. the Physical Review Letters: see their policy regarding supplementary materials. For them you can submit two different documents, say main.tex
and supp.tex
. I believe that preprint servers will display only one final document. At least it seems so for arXiv, see their policy regarding LaTeX submission. Let stick ourself with RevTeX and arXiv examples for the present purpose. The problems are that main.tex
and supp.tex
usually do not use the same layout and co. : two columns vs. one column, different abstracts, different bibliographies, …
So I'm wondering about the best choice(s) for presenting our papers including supplementary materials on preprint servers. I'm well aware that it should depend on the nature of the supplementary materials (video, code, equations, …). Here let us suppose the supplementary materials are some pure LaTeX document.
What is the the best option: including extra documents (with the difficulty to have a clear distinction between the main part and the supplementary part, especially the preamble of supp.tex
is not displayed anymore, see How to include a document into another document?), or to abuse of appendix (with the problem that appendix is not a supplementary material) ?
So, in short: How to combine my main.tex
and my supp.tex
into a global paper.tex
file in a clever way ?
Best Answer
Here I give a workable solution, but not a clever one. In whatever case, we have to make a third separate file for arXiv submission (say, with at least one line to include Supp.) unless they support supplementary directly.
Basically, the method is to append the supplementary material at the end of main text. Then add the commands to reset all counters and append the "S" for equations, figures, table and references. The resulting file would look like
The \pagebreak will put supplementary materials in the new page, but I don't know why it doesn't work here. The template codes are given below. Note the important codes is in the middle part. Also, please don't use same reference citation name, otherwise, there will be wrong numbering for citation.