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.

How do I write the Bitcoin symbol in LaTeX?

  • Abusing Unicode, "B⃦" can be used in normal text files. I'm not a fan of writing non-ASCII in LaTeX, as you can run into all sorts of encoding issues.
  • There does not seem to be a package defining it.
  • I could use TikZ to roll my own version, but then that would probably not scale well (telling from past attempts at similar things).

So: what do you think would be the best way of writing the Bitcoin currency symbol in LaTeX?

For comparison, here's the Bitcoin wiki entry for the symbol.

share|improve this question
    
related: tex.stackexchange.com/q/201597 –  LaRiFaRi Sep 23 at 15:21

1 Answer 1

up vote 3 down vote accepted

Three examples, from here:

\def\bitcoinA{%
  \leavevmode
  \vtop{\offinterlineskip %\bfseries
    \setbox0=\hbox{B}%
    \setbox2=\hbox to\wd0{\hfil\hskip-.03em
    \vrule height .3ex width .15ex\hskip .08em
    \vrule height .3ex width .15ex\hfil}
    \vbox{\copy2\box0}\box2}}

and

\def\bitcoinB{\leavevmode
  {\setbox0=\hbox{\textsf{B}}%
    \dimen0\ht0 \advance\dimen0 0.2ex
    \ooalign{\hfil \box0\hfil\cr
      \hfil\vrule height \dimen0 depth.2ex\hfil\cr
    }%
  }%
}

and

\def\bitcoinC{\leavevmode\rlap{\hskip.5pt-}B} 
share|improve this answer

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.