7

I am trying to include an url with a label so something like that: GOOGLE I am writing this

\hypperef[mylabel]{myurl}

or this

\url[mylabel]{myurl}

and compiler gives me an error what am I doing wrong? I am using both required packages

3
  • 3
    Can you please add a minimal working example? That is, the shortest complete LaTeX document that demonstrates this problem?
    – Yossi Gil
    Apr 4, 2015 at 22:03
  • \href{myurl}{mylabel}?
    – cfr
    Apr 4, 2015 at 22:20
  • Welcome to TeX.SX! You can have a look at our starter guide to familiarize yourself further with our format.
    – user11232
    Apr 5, 2015 at 1:41

1 Answer 1

14

You just need to customise the formatting hyperref uses. For example:

\documentclass{article}
\usepackage[colorlinks=true,urlcolor=blue]{hyperref}        
\begin{document}
  \href{http://google.ru/}{GOOGLE}
\end{document}

coloured link

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .