General ⇒ address with "~"
address with "~"
I wish to add an hyperlink to the following address : http://www.eng.tau.ac.il/~dan/
The LaTEX line I use for that is :
http://www.eng.tau.ac.il/$\sim$ dan/
However, when I click the link at the PDF document, it doesn't work ...
The "~" symbol ruins it ...
How can I overcome this problem ?!?
Thank you ...
Learn LaTeX easily with newest books:
The LaTeX Beginner's Guide: 2nd edition and perfect for students writing a thesis
The LaTeX Cookbook: 2nd edition full of practical examples for mathematics, physics, chemistry, and more
LaTeX Graphics with TikZ: the first book about TikZ for perfect drawings in your LaTeX thesis
- localghost
- Site Moderator
- Posts: 9202
- Joined: Fri Feb 02, 2007 12:06 pm
address with "~"
Code: Select all
\symbol{num}
Code: Select all
\symbol{126}
Code: Select all
http://www.eng.tau.ac.il/\symbol{126}dan/
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10
Re: address with "~"
The address in the PDF appears correct ... but when I click the link, it directs me to the following adress :
http://www.eng.tau.ac.il/%CB%9Cdan/
The problem is that the tilde is changed ...
How can I avoid this ?
- localghost
- Site Moderator
- Posts: 9202
- Joined: Fri Feb 02, 2007 12:06 pm
address with "~"
Code: Select all
\textaciitilde
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10
Re: address with "~"

I used the URL package and it does the job ...
-
- Posts: 15
- Joined: Fri Feb 23, 2007 9:29 am
address with "~"
http://www.latex-community.org/forum/vi ... 63&p=47374
for getting tilde's to display in the typeset version of the url. The link itself should work fine if you use pdflatex and a sensible pdf reader.