Cómo usar \mathsf o \symsf en kpfonts

Cómo usar \mathsf o \symsf en kpfonts

ingrese la descripción de la imagen aquí

Lo sabemosfuentes kptiene una fuente matemática sans-serif, pero \mathsfy \symsfparecen usar fuentes CM.

\documentclass{article}

\usepackage[bold-style=ISO,sans-style=italic]{unicode-math}
\usepackage{kpfonts-otf}

\begin{document}
    Hello world ball, 2022.
    \begin{equation}
        \mathsf{ABC}\symsf{ABC}
    \end{equation}
\end{document}

Respuesta1

Las fuentes son diferentes, aunque puede ser difícil saberlo con fuentes sin fuentes. Comparar:

ingrese la descripción de la imagen aquí

\documentclass{article}

\PassOptionsToPackage{sans-style=italic}{unicode-math}
\usepackage{kpfonts-otf}
\setmathfont{Latin Modern Math}[version=LM]

\begin{document}

Kpfonts:

$\mathsf{ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz}$

$\symsf{ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz}$

Latin modern (default:

\mathversion{LM}
$\mathsf{ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz}$

$\symsf{ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz}$

\end{document}

información relacionada