Script to automate making hyperlinks to text anchor?
- May 2, 2020
- 4 replies
- 2761 views
Hi!
I have question regarding hyperlinks and cross references. I have this problem: a lot of links in the text (e.g. [ 1 ], [ 2 ], [ 3 ]), which must be combined with the paragraph beginning with [ 1 ] [ 2 ] [ 3 ] etc. at the end of the document (such a bibliography). Links are repeated, that is, there are several [1]s to the same source at the end. The final PDF has to be “clickable”, so after clicking the link we have to be moved to the end of the document and the final paragraph [1]. How to do it quickly and painlessly? Is there some script that would help? I do it by creating text anchors at the end of the document and I go in turn, creating hyperlinks 1, 2, 3, but this is a way of torture … 🙂 Maybe some script or another method? Edit: An additional difficulty is that the links in the middle of the text are written differently. There are 1 and 2, but also [1, p. 1] or even [1, 2, 3, 4] and I would like each digit to link to a specific position at the end of the document.