On 2019-05-06, Bob Alvarez wrote:
>>>Does using "non-TeX" fonts in Document>Settings>Fonts help?(This
>>>allows all Unicode characters in listings and uses Unicode-encoded
>>>fonts in the output.)
> There was no change. The '-' character on the clipboard is still
> encoded as 3f hex.
Does it show up as hyphen or as question mark in the PDF?
Which fonts does your PDF use?
Maybe it is a lookalike character in the source?
Which character code do you get when copying from the LyX-GUI?
Are there similar problems with other characters in listings?
What is the result if your listing contains:
30 ! " # $ % & '
40 ( ) * + , - . / 0 1
50 2 3 4 5 6 7 8 9 : ;
60 < = > ? @ A B C D E
70 F G H I J K L M N O
80 P Q R S T U V W X Y
90 Z [ \ ] ^ _ ` a b c
100 d e f g h i j k l m
110 n o p q r s t u v w
120 x y z { | } ~
160 ¡ ¢ £ ¤ ¥ ¦ § ¨ ©
170 ª « ¬ ® ¯ ° ± ² ³
180 ´ µ ¶ · ¸ ¹ º » ¼ ½
190 ¾ ¿ À Á Â Ã Ä Å Æ Ç
200 È É Ê Ë Ì Í Î Ï Ð Ñ
210 Ò Ó Ô Õ Ö × Ø Ù Ú Û
220 Ü Ý Þ ß à á â ã ä å
230 æ ç è é ê ë ì í î ï
240 ð ñ ò ó ô õ ö ÷ ø ù
250 ú û ü ý þ ÿ
> p.s. I copied the text at the bottom of my email and pasted into a text
> editor then saved as example2.lyx. When I tried to open it with my Lyx
> 2.1.3 I get a pop-up saying
> ...example2.lyx is not a readable LyX document.
> where ... is the path on my computer
Here, I was able to save the example from my text editor to a file, open it
in LyX and compile:
Drag-and-drop from the PDF results in:
x−y
With the - beeing the ASCII Character (45, 0x2D) 002D HYPHEN-MINUS
Günter