3

Is there an easy way to disable hyperref to tables/figures in external documents.

I would like to keep the table/figure reference in text (e.g., Figure A1), but if I click on it now it sends me back to the top of the page.

Is there any way to disable these hyperrefs solely for an external document, but to keep the text?

I am using \ref and \autoref to refer to the tables/figures and \externaldocument to load the external document's aux

Nelson
  • 31
  • 2
    Welcome to TeX.SE. Please tell us how you create cross-references at present. With \ref? \autoref? \cref? Please be specific. – Mico Nov 06 '19 at 11:44
  • Thanks Mico, I am using \ref and \autoref. To call the external document I use \externaldocument. I would like to disable links for all the references made in the externaldocument – Nelson Nov 06 '19 at 12:11
  • To create cross-references without creating a hyperlink, use \ref* and \autoref*. (This question must have come up before.) – Mico Nov 06 '19 at 12:14
  • Is there no way to disable it for all the occurrences in the external document? – Nelson Nov 06 '19 at 12:20
  • 4
    There is perhaps a way, but I won't start to look if you don't provide a sensible example document that can be used for tests. – Ulrike Fischer Nov 06 '19 at 13:11
  • In case the external document in question is created using hyperref also: If you use the package xr-hyper instead of the package xr, then \externaldocument has an optional argument where you can specify the URL, where the external document in question can be found. When the URL is specified, then links to the external document should cause opening the external document and scrolling to the named destination in question. – Ulrich Diez Nov 08 '19 at 01:03

0 Answers0