El siguiente ejemplo me da una 'g' diferente en el subíndice simple:
\documentclass{article}
\usepackage{mathtools,amssymb}
\usepackage{libertine}
\usepackage[libertine]{newtxmath}
\begin{document}
\[g \ \mu_g \ A_{\mu_g}\]
\end{document}
¿Existe una forma rápida de solucionar este problema? (EDITAR: al usar MiKTex 2.9.7250, compilar el mismo código al dorso me da la 'g' "correcta" en el subíndice).
EDITAR: Esto se ha solucionado en la versión 1.612 (2019-12-01).
Respuesta1
Aparentemente, la nxlmi
fuente tiene el glifo incorrecto en los tamaños 10 y 5, mientras que tiene el correcto en el tamaño 7.
Hasta que el problema se solucione a nivel de fuente, puedes solucionarlo de alguna manera diciéndole a LaTeX que obtenga la "g" de una fuente diferente.
\documentclass{article}
\usepackage{mathtools,amssymb}
\usepackage{libertine}
\usepackage[libertine]{newtxmath}
\DeclareSymbolFont{libertineg}{\encodingdefault}{\familydefault}{m}{it}
\SetSymbolFont{libertineg}{bold}{\encodingdefault}{\familydefault}{b}{it}
\DeclareMathSymbol{g}{\mathalpha}{libertineg}{`g}
\begin{document}
\[g \ \mu_g \ A_{\mu_g}\ \textit{g}\]
\end{document}
Si quieres la “variante g”, es un poco más complicado: necesitamos reducir el estilo de texto “g” sólo cuando esté en estilo script.
\documentclass{article}
\usepackage{mathtools,amssymb}
\usepackage{libertine}
\usepackage[libertine]{newtxmath}
\usepackage{xfp,graphicx}
\newcommand{\fixg}{{%
\mathchoice
{\normalg}% displaystyle
{\normalg}% textstyle
{\scaledg}% scriptstyle
{\normalg}% scriptscriptstyle
}}
\makeatletter
\newcommand{\scaledg}{%
\scalebox{\fpeval{\sf@size/\f@size}}{$\m@th\normalg$}%
}
\begingroup\lccode`~=`g \lowercase{\endgroup\let~\fixg}
\edef\normalg{\mathchar\the\mathcode`g }
\AtBeginDocument{\mathcode`g="8000 }
\begin{document}
\[g \ \mu_g \ A_{\mu_g}\]
\end{document}