1

I have difficulties while using special symbols from my language such as š, č, ť. I use this statement in my document:

\documentclass{book}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage[czech,british,slovak]{babel}
\usepackage{lmodern}

\begin{document}
š č ť ž ý á í é ä ú ô ň ď ľ
\end{document}

The output file looks all right (exactly the same characters as above), however when I copy the text from the output pdf file and paste it to any text editor, I see only following:

š c t ž ý á í é ä ú ô n d l

So a part of symbols is incorrect in the output.

I use pdfLatex for the compression. When I use Latex+dvips+ps2pdf, everything is allright. However I need to use pdfLatex for various reasons and I believe that the solution must be simple.

Note that I use \usepackage{lmodern}. Without that the copied and pasted output would be totally broken (both with Latex and pdfLatex compression it would be ² £ ´ º ý á í é ä ú ô ¬ ¤ ©).

Thank you for your suggestions!

  • 1
    Works for me with pdfLaTeX when I copy and paste in SumatraPDF (on Win 10), but not with Adobe Reader. – moewe Mar 27 at 11:57
3

Use cmap package before fontenc.

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.