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

  • 3
    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
  • 1
    Also, don't use babel with xelatex; use polyglossia instead. – Gonzalo Medina Oct 5 '12 at 2:42
  • 1
    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

  • 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 clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy