How to add link as reference in LaTeX?

How to add link as reference in LaTeX?

Summary

  1. Add the hyperref package to your preamble.
  2. Links will show up in a colored box which will be invisible when you print it.
  3. Use \href{URL}{DESCRIPTION} to add a link with description.
  4. Use rl{URL} to add a link without a description.

How to use hyperlink in LaTeX?

Include the hyperref package in the document preamble. Make use of \href{Url} command for adding a hyperlink without its description. Make use of \href{Url}{Description} command for adding hyperlink or Url along with its description.

Is there default formatting for hyperlinks in hyperref?

One must be careful when importing hyperref: usually, it has to be the last package to be imported—but there might be some exceptions to this rule. The default formatting for links can be changed so the information in your documents is more clearly presented. Below you can see an example:

What do the red boxes mean in hyperref?

The red boxes are link annotations that are part of the final PDF file, of course. But they are not part of the page description and they are usually not printed (sometimes configurable). The documentation of hyperref lists many options regarding the visual appearance of the links, e.g.:

What is the default colour for hyperlinks in overleaf?

Links will be coloured, the default colour is red. Internal links, those generated by cross-referenced elements, are displayed in blue. Links to local files will be shown in magenta colour (see linking local files ).

Which is the default colour for hyperlinks in latex?

Links will be coloured, the default colour is red. Internal links, those generated by cross-referenced elements, are displayed in blue. Links to local files will be shown in magenta colour (see linking local files ). Links to web sites are set to cyan colour (see linking web addresses ).