I want to adjust the kerning between f' in math mode (and other pairs) across the entire document. I found https://tex.stackexchange.com/a/219881/54601, which is exactly what I want but for text mode, and indeed it does not work for math mode. How do I do it? I do not want to have to create a macro for every pair. I would like to use XeTeX if possible. Is it? I have already gone through like a hundred different questions on TeX SE and I could not find an answer to my question.
Here is an example that needs fixing. No, I do not want to use any other font, and no, I do not want to fix each instance manually nor use a macro. Is LaTeX or XeTeX is incapable of fixing such a simple typographical issue?
\documentclass{article}
\usepackage{unicode-math}
\setmathfont{xits-math.otf}
\setmathfont[range=\mathit]{Times New Roman Italic}
\begin{document}
$f'$
\end{document}



predoes not give syntax highlighting while four spaces does! – user21820 Jul 13 '15 at 09:16\setmathfont[range=\mathit]{TeX Gyre Termes Math}there would be no problem. – Ulrike Fischer Jul 13 '15 at 09:22\XeTeXinterchartoksbut not even a difficult way to modify kerning in math mode. I've even seen an answer by Hendrik at http://tex.stackexchange.com/a/4939/54601 to 'solve' italic correction problems of math in italic text, which is not the kind of solution I am looking for. I seriously thought there was some relatively unknown but 'correct' method to do what I wanted in XeTeX. – user21820 Jul 13 '15 at 11:38