This is a follow-up question on a question I asked a few days ago (Chemmacros: Adjusting the properties of the coupling constant J)
I am using the fonts libertine and beramono together with the chammacros package to typeset experimental data. When I do so, there are two things I have noticed:
The coupling constant J is displayed in the math font of latin modern roman. This also applies to the frequency - both value and unit. I believe this is because the coupling constant is typeset in a math environment?
Is there a way to change this?
Obviously, one suggestion would be to change the math font, e.g. to euler vm font. However, this font uses upright letters, and I would like to follow the convention and have an italic coupling constant J.
Any suggestions how to overcome this issue? I suppose the easiest way would be to redefine J in eulervm fonts to be italic, because everything else would be fine automatically, however, I don't know how to do that. Of course a more general solution would be appreciated. Am I right in assuming this will be not possible with the standard options of the package?
Here is a MWE, illustrating my problem:
\documentclass[a4paper,10pt,bibliography=totoc,listof=totoc]{scrreprt}
\usepackage{chemmacros}
\usepackage{siunitx}
\chemsetup[nmr]{delta=(ppm),pos-number=side,use-equal,format = \bfseries,list=true}
\sisetup{separate-uncertainty,per-mode=symbol,detect-all,range-phrase=--}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage{libertine}
\usepackage[scaled=.83]{beramono}
\ExplSyntaxOn %Defining Coupling Constant J with Subscript
\cs_set_protected:Npn \__chemmacros_nmr_coupling:w (#1;#2)
{
\tl_set:Nn \l__chemmacros_nmr_coupling_bonds_tl { #1 \! }
\tl_set:Nn \l__chemmacros_nmr_coupling_nuclei_tl
{
\c_math_subscript_token
{ \chemmacros_chemformula:n { #2 } }
}
\__chemmacros_nmr_coupling_aux_i:w
}
\ExplSyntaxOff
\begin{document}
\begin{experimental}
\NMR(400)[C6D6] \val{2.01} (d, \J(2;CH)[Hz]{25.0}, \#{24}, \pos{5})
\end{experimental}
\end{document}

! Undefined control sequence. \LaTeX3 error:
Erroneous variable \l__chemmacros_nmr_position_tl...
– Vlad030691 Jan 27 '14 at 18:22\tl_use:N \l__chemmacros_nmr_position_tlwith-– cgnieder Jan 27 '14 at 18:41