0

How can I make the tilde appear in the url in the following document? I know that this has been asked many times before but googling has -not- helped me in my case. The following document does not show the tilde in the url.

\documentclass[letterpaper,10pt]{letter}
\usepackage[ansinew]{inputenc}
\usepackage{lmodern}
\usepackage[T1]{fontenc}

\usepackage[lowtilde]{url} 
\usepackage{hyperref} 

\begin{document}

\href{http://www.university.edu/~person/index.html}{http://www.university.edu/~person/index.html}

\end{document}
  • 2
    Have you tried something like see url \url{https://www.university.edu/~person/index.html}? – Kurt Nov 1 '18 at 2:23
  • What about this (code)? – Werner Nov 1 '18 at 3:19
1

One solution is just to use \(\sim \), another is \textasciitilde

Demo

\href{http://www.university.edu/~person/index.html}{http://www.university.edu/\(\sim \)person/index.html}

\href{http://www.university.edu/~person/index.html}{http://www.university.edu/\textasciitilde person/index.html}

  • Works well in my example above. Thank you. – shuhalo Nov 1 '18 at 3:44

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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