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

I have a unicode text (XeLaTeX) in which I use vowels with umlaut, like ü and ö, which worked but suddenly stoped working. These give an error message:

! Package inputenc Error: Keyboard character used is undefined (inputenc) in inputencoding `utf8'.

Removed inputenc and babel and changed \setromanfont to \setmainfont from the .sty file and the ü and ö appear again.

But the command \d{h} to create ḥ no longer works as it did previously, the text simply produces h. The font does not have the desired glyph of its own. I am using XeLaTeX; most of the information below (and more) is in a .sty file.


The suggestion below to redefine \d works :


Even better is a solution I found elsewhere:


Note: when used together with the xlxtra package it resulted in errors, so don't Note: you cannot use this last solution at the same time as \renewcommand*\d

share|improve this question
You don't have to load inputenc if you qre using xelatex; xelatex already expects input in unicode encoding. – Gonzalo Medina Oct 5 '12 at 2:26
Also, don't use babel with xelatex; use polyglossia instead. – Gonzalo Medina Oct 5 '12 at 2:42
Welcome to TeX.SE! You may also want to (i) rename \setromanfont to \setmainfont (the \setromanfont command is deprecated), (ii) replace the => after BoldItalicFont with a simple =, and (iii) check whether your paperwidth and paperheight specifications are consistent with the documentclass option a4paper. Finally, the documentclass options openright and twoside are enabled by default for the book class and are thus redundant. – Mico Oct 5 '12 at 2:43

FF Seria Pro [Is this the correct font?] seems to not have the glyph :

Neither the online preview shows it, nor does it appear on one of the three pages of the “complete character set”.

Possible solutions:

  1. You take from another font that is as close to Seria Pro as possible. (Bad)
  2. You mimick it (build it yourself).
    With the help of the calc you could do:


    Or, of course, make it your own macro:


    Or, if you want to use the original char (it's XeLaTeX after all), make it active:


    You may adjust the dimension -.45ex so that it looks good.

  3. You use another font.
    This may be the best choice if you need to typeset a lot of those “funny” characters that don't exist in the chosen font!

If you need a lot of “under-dotted” characters you might even want to redefine the existing \d macro to

share|improve this answer
That last command indeed works out of the box! Very helpful. – user19544 Oct 5 '12 at 10:44
@Willem You might find this answer of mine useful for your problem. – egreg Oct 5 '12 at 11:44

Your Answer


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