0

When using the lettrine package, I can't copy/paste the text on the first few lines (tested with Okular 21.04).

enter image description here

while it does work on the next lines:

enter image description here

This also make the document harder to annotate since the selected text is not the good one.

Is it possible to solve that?

MWE:

\documentclass[a4paper,12pt]{memoir}
\usepackage{fix-cm}
\usepackage{lmodern} % vector font
%% Language
\usepackage[english]{babel}
%% Input encoding
\usepackage[utf8]{inputenc}
%% Output encoding https://tex.stackexchange.com/a/677. Important to copy accents
\usepackage[T1]{fontenc}
\usepackage{xcolor}

\usepackage{lipsum} \usepackage{lettrine} \setcounter{DefaultLines}{3} \LettrineRealHeighttrue \setlength{\DefaultNindent}{0em} \renewcommand*{\DefaultLhang}{0.33} \renewcommand{\LettrineFontHook}{\fontshape{sc}}

\begin{document} \chapter{Hello}

\lettrine{H}{ello world}, \lipsum[1-2]

\end{document}

tobiasBora
  • 8,684
  • I'm not sure how far this is a TeX issue. It works for me with PDF-XChange, so this might be a problem of okular, not lettrine. – campa Jul 03 '21 at 14:18
  • Works OK with Acrobat Reader DC. – Cicada Jul 04 '21 at 13:32
  • Okular-related. Okular 20.12.2 for Windows (latest version from Microsoft Store) leaves off the "H", but can copy everything else, including page number. – Cicada Jul 04 '21 at 13:46

0 Answers0