I'd like to use newtxmath along with LinuxLibertine under XeLaTeX. What maybe sounds simple really drives me crazy. Here's an MWE:
\documentclass{article}
\PassOptionsToPackage{no-math}{fontspec}
\usepackage{libertine}
\usepackage[libertine]{newtxmath}
\begin{document}
\begin{tabular}{rl}
with mathmode: & without mathmode: \\
$1+2=3$ & 1+2=3 \\
\end{tabular}
Footnote\footnote{}$^,$\footnote{$123$}$^,$\footnote{}
\end{document}
The result, however, doesn't show the intended math font:

This is XeTeX, Version 3.14159265-2.6-0.99992 (TeX Live 2015/W32TeX) (preloaded format=xelatex 2016.3.4)
With PDFLaTeX everything looks fine:

Now, the real puzzle starts when compiling this with XeLaTeX under cygwin:
This is XeTeX, Version 3.14159265-2.6-0.99992 (TeX Live 2015/Cygwin) (preloaded format=xelatex 2015.10.12)
The math font seems to be the right one, but in the case of multiple footnotes, the footnote numbers in the text are messed up if one of them contains a mathematical environment (or \url)! The last comma and the 3 are slightly lower than the preceding marks.
Any idea what's going on?

xetexnow behaves as desired (both in win32 and cygwin). Still, this is very confusing and does not boost my confidence inxetex/newtxmath. – Timm Mar 04 '16 at 21:47\urlin footnotes, just withlibertineandxetex(hence even when I don't usenewtxmath). Your patch solves this for me too:\xpretocmd{\textsuperscript} {{\sbox0{$\textstyle x$}}} {}{}. – Timm Mar 05 '16 at 09:50