I regularly use a combination of pslatex.sty and pdflatex to produce PDF documents. Some of this are for student use and I have come across a problem with the tilde character. Using default LaTeX fonts and \textasciitilde, I can copy and paste from the PDF to a Unix terminal window and all is well, but I have yet to find a way of doing this in the presence of pslatex

Any ideas?

  • Have you tried $\~$ ? – Pawan Mude Nov 15 '13 at 14:23
  • 4
    You have to use a font encoding that has a tilde in the ASCII position. Try \usepackage[T1]{fontenc}. – Dan Nov 15 '13 at 21:44
  • Welcome to TeX.SX! It's not necessary to sign your questions (as there is already a box with your username below it) or to begin them with a greeting. A suggestion: Do us a favour and change your username to something more telling than "user41092". – Martin Schröder Nov 15 '13 at 22:03
  • Dan's suggestion of fixing the font encoding did the trick, thanks. I should really have thought have that. – Graham Gough Nov 16 '13 at 16:25
  • 1
    @Dan Do you want to convert your comment into an answer? – TeXnician Jun 5 '17 at 9:16

To just answer it with Dan's words:

You have to use a font encoding that has a tilde in the ASCII position. Try \usepackage[T1]{fontenc}.

As egreg stated you should also consider alternatives to pslatex.

| improve this answer | |
  • What constitutes an alternative please? – Graham Gough Jul 2 '17 at 19:25
  • @GrahamGough Maybe you want to read the entry on CTAN. There are some references. – TeXnician Jul 2 '17 at 20:11

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.