I just downloaded MiKTeX today and \mathbb{C}
won't work nor will \C
. Can somebody explain what I need to do/or download? Thanks!
4 Answers
You need to load a package such as amsfonts or amssymb which provide the additional maths alphabet required. For example:
\documentclass{article}
\usepackage{amsfonts}
\begin{document}
\[
\mathbb{C}
\]
\end{document}
Here's bbm
- package version -- if this is not nice enough choose amssymb
(which is apparently preferred by some fellows here;-) )
\documentclass{article}
\usepackage{bbm}
\begin{document}
$\mathbbm{C}$
Will not work: \verb+\C+
\end{document}
-
1
-
2While I can't say I like
\mathbb
, I surely dislike\bbm
. Consider also that the font is only bitmap.– egregDec 10, 2015 at 23:47
I always define the command \C
to be \mathbb{C}
. You can too:
\documentclass{article}
\usepackage{amssymb}
\newcommand{\C}{\mathbb{C}}
\newcommand{\R}{\mathbb{R}}
\begin{document}
Let $z\in\C$. Then $z\cdot\overline{z}\in\R$.
\end{document}
If you are using one of the Unicode TeX engines, say either xelatex
or lualatex
, then this approach might come in handy.
The unicode-math
package will load the Latin Modern Math font by default, which also has various blackboard bold glyphs. The can be accessed as usual via \mathbb
. Moreover unicode-math
defines shorthands for all glyphs (which avoids loading huge token lists). These can be looked up in unimath-symbols
. For blackboard bold glyphs these shorthands are \BbbA
for A and so on.
\documentclass{article}
\usepackage{unicode-math}
\begin{document}
$\mathbb{C}$ or $\BbbC$
\end{document}
-
+1. You may want to state explicitly which LaTeX engines can handle, or cannot handle, this approach.– MicoDec 15, 2015 at 10:04
bbm
package (for example), but as far as I know,\C
will not work anyway.\mathbbm{C}
however does!\usepackage{amssymb}
, you have\mathbb
.\C already defined
Error while trying to redefine\C
in a document, and that was becausehyperref
withunicode
option.