Importar \mathbbit{q} do stix

Importar \mathbbit{q} do stix

Estou tentando importar o seguinte símbolo

\mathbbit{q}

da biblioteca stix,

insira a descrição da imagem aqui

veja o seguinte código, por favor:

\documentclass{article}
\usepackage{amsmath}
\DeclareFontEncoding{LS1}{}{}
\DeclareFontSubstitution{LS1}{stix}{m}{n}
\newcommand*\qq{%
\text{%
\fontencoding{LS1}%
\fontfamily{stixbb}%
\fontseries{\textmathversion}%
\fontshape{n}%
\selectfont\symbol{`q}}}
\makeatletter
\newcommand*\textmathversion{\csname textmv@\math@version\endcsname}
\newcommand*\textmv@normal{m}
\newcommand*\textmv@bold{b}
\makeatother
\begin{document}
  $\qq$ {\boldmath$\qq$}
\end{document}

Infelizmente, não há

ls1stixbbit.fd 

fonte na pasta /stix, apenas

ls1stixbb.fd 

está disponível. Portanto, posso criar apenas q não itálico ou em negrito:

insira a descrição da imagem aqui

Existe alguma maneira de importar q em itálico e quadro negro do stix?

Responder1

Uso \fontshape{it}: o mesmo .fdarquivo define vários formatos de fonte.

O código pode ser simplificado.

\documentclass{article}
\usepackage{amsmath}

\DeclareFontEncoding{LS1}{}{}
\DeclareFontSubstitution{LS1}{stix}{m}{n}

\newcommand*\qq{%
  \text{\usefont{LS1}{stixbb}{\textmathversion}{n}q}%
}
\newcommand*\qqit{%
  \text{\usefont{LS1}{stixbb}{\textmathversion}{it}q}%
}

\makeatletter
\newcommand*\textmathversion{\csname textmv@\math@version\endcsname}
\newcommand*\textmv@normal{m}
\newcommand*\textmv@bold{b}
\makeatother

\begin{document}

$\qq$ {\boldmath$\qq$}

$\qqit$ {\boldmath$\qqit$}

\end{document}

insira a descrição da imagem aqui

informação relacionada