2

I am trying to import the following symbol

\mathbbit{q}

from stix library,

enter image description here

see the following code, please:

\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}

Unfortunately, there is no

ls1stixbbit.fd 

font in the /stix folder, only

ls1stixbb.fd 

is available. Therefore, I am able to create only non-italic or bold q:

enter image description here

Is there any way of importing italic, black-boarded q from stix?

0

1 Answer 1

3

Use \fontshape{it}: the same .fd file defines several font shapes.

The code can be simplified.

\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}

enter image description here

1
  • @ egreg:Thank you very much for your code and explanation... Commented Apr 14, 2017 at 21:04

You must log in to answer this question.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.