0

I am using

\href{http://abcd/x/y%z/abcd.html}

but % creates problem. It is getting commented after % but I have % in my address, and \% did not work.

Ludovic C.
  • 8,888
user38375
  • 103
  • 3
  • 2
    Welcome to TeX.SX! Does this question and the associated answers help you http://tex.stackexchange.com/q/12230/31058 ? – Ludovic C. Oct 16 '13 at 13:18
  • use \href{http://abcd/x/y\%z/abcd.html} –  Oct 16 '13 at 13:28
  • 3
    Erh, \href takes two arguments, perhaps you are confusing it with \url? Both \href{...}{...} and \url{...} handles % without problems in the first argument. – daleif Oct 16 '13 at 13:29

1 Answers1

4

@Daleif is right.

href takes two arguments, and is usually used for things like a picture that you want to make "clickable" and guide you to a webpage e.g.:

\href{http://www.thefoowebapge.com}{\includegraphics{foopicture.jpeg}}

Or if you want to set up a text for it to guide you to a different address:

\href{http://wwww.thefoowebpage.com}{In our website}

On the other hand, url can be used for what you are looking for, which is convert an address into a clickable text without any problems e.g.:

\url{http://abcd/x/y%z/abcd.html}

You shouldn't have any problems while using the url package, regardless of using %

Mario S. E.
  • 18,609