Estoy intentando importar el siguiente símbolo.
\mathbbit{q}
de la biblioteca stix,
vea el siguiente 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}
Desafortunadamente no hay
ls1stixbbit.fd
fuente en la carpeta /stix, sólo
ls1stixbb.fd
está disponible. Por lo tanto, solo puedo crear q que no estén en cursiva o en negrita:
¿Hay alguna forma de importar q en cursiva y pizarra desde stix?
Respuesta1
Uso \fontshape{it}
: el mismo .fd
archivo define varias formas de fuente.
El código se puede simplificar.
\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}