Graphics, Figures & TablesHyperref and Cleveref don't provide hyperlinks

Information and discussion about graphics, figures & tables in LaTeX documents.
Post Reply
EagleLee
Posts: 4
Joined: Fri Nov 11, 2022 3:49 pm

Hyperref and Cleveref don't provide hyperlinks

Post by EagleLee »

Hello all

I find a problem writing paper in the recently updated TeXworks. When I use \cref{} in codes, the figures and tables in the complied PDF can not be linked to the corresponding floats. That's to say, when I click, e.g., "Fig. 3" in text, it can't go to the float Fig. 3.

However, there's nothing wrong when the same .tex file is complied in the TeXworks 2022.

The warning information is :
Package hyperref Warning: Suppressing link with empty target on input line ...
And this is the .tex file's start:

Code: Select all

Code, edit and compile here:
\documentclass[aip,graphicx]{revtex4-1}
\usepackage[hidelinks]{hyperref}
\usepackage{amsmath}
\usepackage[nameinlink]{cleveref}
\usepackage{graphicx,caption,subcaption}
\usepackage{booktabs,array}
הההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההה
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
I've read the hyperref-doc.pdf but haven't got a clue. The reason may be the hyperref package in the TeXworks 2023 is updated. How to make \cref{} link to the corresponding floats?

I would be sincerely grateful to anyone who can help!
Last edited by Stefan Kottwitz on Sun Jun 18, 2023 2:37 pm, edited 1 time in total.
Reason: code marked

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org
TikZ book
EagleLee
Posts: 4
Joined: Fri Nov 11, 2022 3:49 pm

Hyperref and Cleveref don't provide hyperlinks

Post by EagleLee »

The problem has been solved by returning the version of Texlive to 2022. I downloaded texlive2022.iso using a mirror and installed. Perhaps the new version is not compatible with the document class of the journal. :shock:
Post Reply