I use LyX to create my LaTeX files. Recently, when I've used LyX's pdflatex to view my file, the text looks fine, but when I attempt to copy it, I just get strange symbols. If I use LyX's dvipdfm, I can copy fine.

I've attempted to troubleshoot by using a minimal example (as follows) and pdflatex directly.

here is some text

If I run pdflatex on this file, open it in Okular, and copy "here is some text", the clipboard contains "❤❡r❡ ✐s s♦♠❡ t❡1t". If, however, I remove the second line ( \usepackage[T1]{fontenc}) the pdf is created fine.

Has something gone wrong with pdflatex or LyX's defaults? What has changed? Also, how can I fix this problem while still using LyX?

  • 2
  • What fonts does pdflatex include? (see the end of the log file). – Ulrike Fischer Mar 1 '13 at 7:53
  • 1
    Does \usepackage{lmodern} make any difference? – JLDiaz Mar 1 '13 at 8:39
  • @TorbjørnT. I found that question too, but didn't think it directly answered my question. Also, I didn't really understand it all anyway, so it might be more relevant than I realise. – Sparhawk Mar 1 '13 at 9:23
  • 3
    Type3 means bitmaps (the .600pk files in your comment above (did you edit it?)) and are certainly the source of the problem. Install the cm-super fonts (or use as suggested lmodern). (But I have no idea why it works with dvipdfm - perhaps it adds additional mapping informations to the pdf). – Ulrike Fischer Mar 1 '13 at 9:59

Browse other questions tagged or ask your own question.