TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

This is a follow-up question to UTF8 for listings

With these MWE I will not see the german umlauts in the resulted pdf (XeLaTeX was used):

Test äöü Test

What should I do to support UTF-8 in verbments?

share|improve this question
It doesn't compile in my system. – cacamailg Apr 22 '13 at 12:51
I use Debian and I have to install python-pygments first. To compile, I use xelatex -shell-escape inputtest.tex – Micha Apr 22 '13 at 13:01
Since I cannot install that package in my machine, I found a solution to deal with UTF-8 and listings here tex.stackexchange.com/questions/24528/… (see the best answer). – cacamailg Apr 22 '13 at 13:29
load the package fontspec which should be loaded by default of you use LuaLaTeX or XeLaTeX. – Marco Daniel Apr 22 '13 at 19:55
As Marco Daniel observes, you must load fontspec for the thing to work. – egreg Apr 22 '13 at 20:36
up vote 2 down vote accepted

Your issue isn't related to verbments. It's a font issue related to German umlauts. XeLaTeX uses utf-8 as default but the predefined font doesn't support this. A look in the log file shows for the following example:

Test äöü Test

related part of the log-file:

Missing character: There is no ä in font cmr10!
Missing character: There is no ö in font cmr10!
Missing character: There is no ü in font cmr10!

To work with German umlauts you have to load the package fontspec which should be loaded normally. See: Frequently loaded packages: Differences between pdfLaTeX and XeLaTeX

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.