Difference between revisions of "Linking using LaTeX"

From Notes_Wiki
(Created page with "=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 env...")
 
m
Line 1: Line 1:
<yambe:breadcrumb self="Linking using LaTeX">LaTeX|LaTeX</yambe:breadcrumb>
=Linking using LaTeX=
=Linking using LaTeX=


Line 40: Line 41:
     \href{<actual URL}{Text to be displayed}
     \href{<actual URL}{Text to be displayed}
</pre>
</pre>
<yambe:breadcrumb self="Linking using LaTeX">LaTeX|LaTeX</yambe:breadcrumb>

Revision as of 06:13, 18 September 2018

<yambe:breadcrumb self="Linking using LaTeX">LaTeX|LaTeX</yambe:breadcrumb>

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}


<yambe:breadcrumb self="Linking using LaTeX">LaTeX|LaTeX</yambe:breadcrumb>