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 ...
NEW: TikZ book now 40% off at Amazon.com for a short time.
And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p
- 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.