If you use sisetup{mode=text}
of siunitx
with kpfonts-otf
then \num{2.23e-23}
fails.
MWE:
\documentclass[]{scrbook}
\usepackage[spanish,es-tabla]{babel}
\usepackage{siunitx}
\usepackage[]{kpfonts-otf}
\setmathfont{KpMath-Sans.otf}[]
\sisetup{
mode = text % falla y pone puntos en vez de commas
}
\vbadness=10000
\begin{document}
Fuera: \num{2,23e-3} y como números: 2,23 o 2.23
\[
\theta=\sec\alpha\,(\num{2,20e-4} h + \num{2,23e-3})
\]
\[
\theta=\sec\alpha\,(\num{2.20e-4} h + \num{2.23e-3})
\]
\end{document}
Why doesn't this work?