I want to use the symbol ƀ (b with stroke) in my document. I use it for the blank symbol in the formal definition of Turing machines.

I use XeLaTeX, so I should be able to use the Unicode symbol, but I don't know how to enable the font for it in math mode.

Right now, I use the following, which works, but is quite ugly:

\newcommand{\blank}{\raisebox{0.8ex}{-}\kern-0.4em b}

What do I need to do in order to use the Unicode character in my document?

  • What text and math fonts are you using? Some have the glyph. – egreg Apr 2 '13 at 8:51
  • math font is cmmil0, text fonts are David CLM for Hebrew and DejaVu Sans for English. I need the glyph in math mode - do you know which math fonts have it, and how to switch to them? – cha0site Apr 2 '13 at 8:57
  • Could you please add a minimal example, with some (English) text and math, just to understand better your setting? – egreg Apr 2 '13 at 9:05
  • Welcome to TeX.sx! – Peter Jansson Apr 2 '13 at 9:06

Thanks to egreg pointing me towards other fonts, I came up with the following:


I picked Gentium since it has a glyph that fits in well with the CM fonts, but other fonts work as well.

  • 1
    It's better to say \newfontfamily{\gentium}{Gentium} in the preamble and change the definition into \newcommand{\blank}{{\gentium\textit{ƀ}}} so that the code for defining a font family will be done only once. – egreg Apr 2 '13 at 10:30

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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