I am using the Two Column CV class from ShareLaTeX. My academic website includes a tilde, but the tilde character is not displayed (although the hyperlink is correct). It is important for my resume to be readable when printed, so I cannot ignore the missing tilde. How do I fix this?


displays as www.institution.edu/ username/ when printed (note the space where the tilde should appear).

  • 1
    maybe \~ or \ttfamily\char126 or $\sim$ – Steven B. Segletes Dec 29 '16 at 0:55
  • @StevenB.Segletes - Changing the URL string in this way will probably render it unusable for hyperlinking, right? – Mico Dec 29 '16 at 1:47
  • @Mico I will take your word on it, as I am not a hyperlinking type person. I will therefore also upvote your accepted answer! :^) – Steven B. Segletes Dec 29 '16 at 2:22

I suggest you do the following:

  • At the very top of your tex file, before \documentclass..., insert the following two lines:

  • In the left-hand column of the main ShareLaTeX window, click on the tag for tccv.cls. Scroll down to the definition of the \personal macro. (It should start at around line 108.) By default, the penultimate line of the macro's definition should look like this:

    \ifstrempty{#1}{}{\smallskip\\ \Lightning & \href{http://#1}{#1}}
  • Change this line to

    \ifstrempty{#1}{}{\smallskip\\ \Lightning & \url{#1}}

    If there's a chance you'll be using a pdf viewer that doesn't handle "plain" URL strings well, you should probably write:

    \ifstrempty{#1}{}{\smallskip\\ \Lightning & \href{http://#1}{\url{#1}}}

    i.e., encase the second instance of #1 in a \url{...} wrapper.

  • Go back to your main tex file and click on "Recompile".

| improve this answer | |

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.