2

The following document:

\documentclass{standalone}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{lmodern}

\begin{document}
Hello world
\end{document}

result in the following weird selection behavior in Sumatra PDF v3.2:

enter image description here

(the d is selected, but the bounding box is wrong)

Which when copied gives the text He l l o w or l d.

If I remove \usepackage{lmodern} and \usepackage[T1]{fontenc}, everything seems to work fine.

What's going on here?

3
  • On Windows, I have tried compiling with pdftex, xelatex, lualatex but also with latex-dvips-ps2pdf but I don't experienced your problem viewing the resulting PDF in SumatraPDF. Aug 18, 2020 at 17:10
  • 2
    This should be fixed in the next version see github.com/sumatrapdfreader/sumatrapdf/issues/1505 Aug 18, 2020 at 17:14
  • @F.Pantigny: I've been compiling with overleaf and opening on windows, perhaps building on not-windows causes issues when opened on windows.
    – Eric
    Aug 18, 2020 at 17:22

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.