Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

I am trying to match the sans serif math font provided by cmbright with proper blackboard bold symbols (also sans serif). I found that the fourier and stix (xits?) fonts provide such symbols. But how can I use cmbright and import only the blackboard bold symbols in LuaLaTeX/XeLaTeX?

share|improve this question
add comment

2 Answers

Getting the definition of the font from fourier is easy; with a little trial and error one can also get the right magnification factor.

\documentclass{article}
\usepackage{cmbright}

%%% taken from fourier.sty
\DeclareFontFamily{U}{futm}{}
\DeclareFontShape{U}{futm}{m}{n}{
  <-> s * [.97534] fourier-bb % but changing the magnification factor
  }{}
\DeclareMathAlphabet{\mathbb}{U}{futm}{m}{n}

\begin{document}
$-3\in\mathbb{Z}\subseteq\mathbb{Q}\ne Q$

\texttt{\sbox0{$Q$}\the\ht0}

\texttt{\sbox0{$\mathbb{Q}$}\the\ht0}

\end{document}

The last two lines show that the heights match (up to 0.00001pt).

enter image description here

For the STIX fonts the procedure is similar.

\documentclass{article}
\usepackage{cmbright}

%% taken from the STIX font distribution
\DeclareFontEncoding{LS1}{}{}
\DeclareFontSubstitution{LS1}{stix}{m}{n}
\DeclareFontFamily{LS1}{stixbb}{\skewchar\font127 }
\DeclareFontShape{LS1}{stixbb}{m}{n} {<-> s*[1.032631] stix-mathbb}{}
\DeclareFontShape{LS1}{stixbb}{b}{n} {<-> s*[1.032631] stix-mathbb-bold}{}
\DeclareMathAlphabet{\mathbb}{LS1}{stixbb}{m}{n}
\SetMathAlphabet{\mathbb}{bold}{LS1}{stixbb}{b}{n}

\begin{document}
$-3\in\mathbb{Z}\subseteq\mathbb{Q}\ne Q$

\texttt{\sbox0{$Q$}\the\ht0}

\texttt{\sbox0{$\mathbb{Q}$}\the\ht0}

\end{document}

enter image description here

share|improve this answer
    
This works for me for the fourier fonts, but for the stix fonts it say LaTeX Error: This NFSS system isn't set up properly. Am I missing somestig? –  porst17 Sep 18 '13 at 8:28
    
@porst17 I just copied from my file. –  egreg Sep 18 '13 at 9:15
    
What's the name of the file? Maybe mine is different (TeXLive 2012) or even absent. –  porst17 Sep 18 '13 at 10:11
add comment
up vote 1 down vote accepted

The mathalfa package makes this kind of changes quite easy!

For fourier:

\usepackage{cmbright}
\usepackage[bb=fourier]{mathalfa} % esstix math bb font

For stix (resp. esstix):

\usepackage{cmbright}
\usepackage[bb=esstix]{mathalfa} % fourier math bb font
share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.