Difference between revisions of "Linking using LaTeX"
m |
m |
||
Line 1: | Line 1: | ||
[[Main Page | Home]] > [[LaTeX]] > [[Linking using LaTeX]] | |||
==Making hyperref links which point to figures / tables work properly== | ==Making hyperref links which point to figures / tables work properly== | ||
Line 43: | Line 40: | ||
[[Main Page | Home]] > [[LaTeX]] > [[Linking using LaTeX]] |
Latest revision as of 06:08, 18 April 2022
Home > LaTeX > Linking using LaTeX
Making hyperref links which point to figures / tables work properly
The links created by hyperref point to the label created within the float environment and not to the actual table or figure. Since label is set after caption which is above or below the figure, the figure or table itself may not be visible upon clicking the link. This is not user friendly as one should see table or figure on clicking link and not just its caption. To solve this problem we can use package hypcap using
\usepackage[all]{hypcap}
which changes link behavior such that actual figure / table is visible on clicking link and not just the caption.
Linking portions in same file using \hyperref
We can link to portions in same file using \hyperref tag which has following syntax
\hyperref[label]{Link Text}
To display URL as it is and also make them point to same URL
To display links to URL as URL in Latex file we can use
\url{<actual url>}
command
Pointing to external URL
To display text which points to external URL we can use
\href{<actual URL}{Text to be displayed}