I'm using utf-8 characters like "ğ" or "ı" in math-mode in LaTex, but it does not render the characters as it should. Outside of math-mode I do not have this problem.
My preamble with respect to font and input encoding is:
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
Any pointers on how to fix this problem for math-mode?
Best Answer
First of all be warned, that it is not recommended to use such special chars in your math source code, as they are very hard to distinguish from each other. For example look at
ğ
(\breve{g}
) andǧ
(\check{g}
) orı
(dottless i U+0131) andι
(\iota
).If you still need it, the way to go these days is to use either
xetex
orluatex
for compilation and theunicode-math
package. In this example, my math font does not contain a native characterğ
, so I also have to declare it with\newunicodechar
: