I have one paper on arXiv with a translation. I followed the instructions here, and arXiv have made one pdf-file from two tex-files. However, every section in the table of contents (bookmarks) always points to the corresponding section in the second file.

In my case if you click English section #n, it will bring you the Russian section #n. The labels for chapters in the tex-files are different, so it is NOT because of labels.

Is there a trick to make it right?

and more generally:

How arXiv generates one *.pdf from two standalone article files?

P.S. The following line (suggested by Ulrike Fischer)


solves the problem.

  • 2
    It would help to know how ArXiv generates one *.pdf from two 'standalone' article files – user31729 Dec 27 '18 at 23:49
  • 1
    I think what Christian means is that TeX normally processes a single tex file into a single pdf, so you have apparently done something so that arXiv concatenates english.tex with russian.tex. Without knowing how you did that, it will be difficult to figure out how arXiv got that particular output. Is it possible that you have main.tex with the sole contents \input{english}\input{russian}? And that the corresponding files are translations of each other, but that you didn't change any labels? – Teepeemm Dec 28 '18 at 3:16
  • 1
    I don't think you're following, and I'm not understanding what you mean by "this" in your last comment. You (not arXiv) have done something to make one pdf from two standalone tex files. Making it right will be a matter of undoing that something. We can't help you undo that something until you tell us what that something was. – Teepeemm Dec 28 '18 at 4:40
  • 1
    @Teepeemm I'm not quite sure that's the case. From the arxiv page, "Note that the compiled PDF will combine the different versions into a single PDF file for readers to download." it does seem the combination is done by arxiv. If you download OP's source file from arxiv, there is no main.tex, but rather english.tex and russian.tex, and a common bib.tex (containing a thebibliography environment). – Troy Dec 28 '18 at 6:14
  • 2
    You could try \renewcommand*{\HyperDestNameFilter}[1]{\jobname-#1}, to give the destinations in both files unique names. – Ulrike Fischer Dec 28 '18 at 13:15

You could try to add to both files


This gives the destinations in both files unique names which should allow a clean merge.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.