[okular] [Bug 401944] New: Copy listings created in Latex not copied properly

Martin bugzilla_noreply at kde.org
Mon Dec 10 08:59:39 GMT 2018


https://bugs.kde.org/show_bug.cgi?id=401944

            Bug ID: 401944
           Summary: Copy listings created in Latex not copied properly
           Product: okular
           Version: 1.5.3
          Platform: Other
                OS: Linux
            Status: REPORTED
          Severity: normal
          Priority: NOR
         Component: general
          Assignee: okular-devel at kde.org
          Reporter: martin.marmsoler at gmail.com
  Target Milestone: ---

Created attachment 116825
  --> https://bugs.kde.org/attachment.cgi?id=116825&action=edit
Created PDF file

SUMMARY
When copying listings produced with latex there are extra spaces between the
characters, so it is not possible to use the copied text.

STEPS TO REPRODUCE
1. Copy listing from the attached pdf or create a new pdf with the following
code:
\documentclass[10pt,a4paper]{article}
\usepackage[latin1]{inputenc}
\usepackage{amsmath}
\usepackage{amsfonts}
\usepackage{amssymb}
\usepackage{graphicx}
\usepackage{listings} % Syntax Highlining, Programmier sprachen
\begin{document}
        \begin{lstlisting}[language=bash,caption={Skript um für Eclipse die
Projektdateien zu erstellen}]
        #!/bin/bash
        sudo apt-get install libevdev-dev libglib2.0-dev
        sudo apt-get install libpcre3 libpcre3-dev lzma lzma-dev
        \end{lstlisting}
\end{document}

2. Copy one line from the listing and paste it somewhere

OBSERVED RESULT
sudo apt−g e t i n s t a l l l i b e v d e v −dev l i b g l i b 2 .0− dev


EXPECTED RESULT
sudo apt-get install libevdev-dev libglib2.0-dev


SOFTWARE/OS VERSIONS
Linux/KDE Plasma: Gnome 3.30.2, Arch Linux
KDE Frameworks 5.52.0
Qt 5.11.2 (kompiliert gegen 5.11.2)
Das xcb Fenstersystem

ADDITIONAL INFORMATION

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the Okular-devel mailing list