On 2014-07-01, Alexander Berg wrote: > Dear all, > i am using Lyx 2.1.0 on Arch Linux x86 and i hope that somebody out > there can help me :). Google told me nothing helpful.
> I am trying to export a document (class: article) to pdf. There are some > listings with greek characters and degree signs the appendix of this > document. ( Insert->Program Listing, Insert->File(plain text) ) The "Listings" package and Greek characters are known to be tricky: It is already nontrivial to have mixed Greek and Latin text characters in 8-bit TeX (e.g. pdftex). This is, because in LaTeX, Greek fonts use a non-standard Greek-only font encoding. With LaTeX input encoding set to utf-8 and the package "textalpha", you can get Greek characters in "normal" Latin Text. Do Greek text characters work in "normal" text in your document? Listings does not handle utf-8: Similarly, if you are using UTF-8 extended characters in a listing, they must be placed within an escape to L A TEX. -- listings.pdf > If i try to export this document via pdflatex it tells me that there is > no representation for these characters in the current encoding. What is your encoding? > After confirming with 'OK' the export gets done and all mentioned > characters are missing. There should be an error report/log telling more about what went wrong. > Using LuaTeX or XeTeX there are no dialogs, but some "Error ... UTF-16 > ..." are displayed in the status line for a second. Afterthe export is > done the greek characters are missing and the degree-sign is represented > as an 'ř'. > What i am doing wrong and how can i fix it? Also with LuaTeX/XeTeX, the listings package needs special care. Have a look at its documentation. If you insert plain text, make sure the encoding matches what you set in Document>Settings>Language>Encoding. Günter
