This question already has an answer here:

I try to write footnote in my file as


But the tilde is compiled as /∼ in my web browser. So it can not reach the webpage.

I tried using package URL as following, but the same problem occurs.


Any suggestion ?

marked as duplicate by Maarten Dhondt, Mico, Romain Picot, Johannes_B, egreg Jun 20 '16 at 8:35

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

  • Welcome to TeX.SX! You can have a look at our starter guide to familiarize yourself further with our format. The great thing with stackexchange, is that a lot of questions have already been asked... and answered. So it is worth to try searching if someone already had the same issue as you have -> you might get a solution even quicker than if you ask it again. This said, for all that, do not hesitate to ask a new question! A tip: You can use backticks ` to mark your inline code as I did in my edit. – ebosi Jun 20 '16 at 7:24
  • It sounds like a font issue to me. Try to save the tex-file in unicode format, and maybe add \usepackage[utf8]{inputenc} in your code. Url should treat ~ as a letter so \url{http://bla.bla.bla/~home/test} should work. – StefanH Jun 20 '16 at 7:57

With package url use:


and not \~, which is a command for the tilde as accent, eg \~n

Not the answer you're looking for? Browse other questions tagged or ask your own question.