1

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
  • 2
    Have you tried something like see url \url{https://www.university.edu/~person/index.html}?
    – Mensch
    Nov 1, 2018 at 2:23
  • What about this (code)?
    – Werner
    Nov 1, 2018 at 3:19

1 Answer 1

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}

0

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .