General\mathbb{1} not working

LaTeX specific issues not fitting into one of the other forums of this category.
Post Reply
hanfmampf
Posts: 2
Joined: Sat Aug 23, 2008 1:41 pm

\mathbb{1} not working

Post by hanfmampf »

Hi guys,

I figured that unfortunately \mathbb{} is not working with numbers as input. Does anyone know how to produce a comparable result? I already did some inquiery on this subject, but to no avail...

I would be glad if someone could help me!

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

gmedina
Posts: 2313
Joined: Wed Jul 11, 2007 11:45 pm

\mathbb{1} not working

Post by gmedina »

Hi,

you can try loading the bbm package. A little example:

Code: Select all

\documentclass{article}
\usepackage{amsmath}
\usepackage{bbm}

\begin{document}

$\mathbbm{1}$

\end{document}
1,1,2,3,5,8,13,21,34,55,89,144,233,...
hanfmampf
Posts: 2
Joined: Sat Aug 23, 2008 1:41 pm

Re: \mathbb{1} not working

Post by hanfmampf »

It works, thank you for your help!

Meanwhile a friend could help me as well and he suggested to use \mathds{}. Now I must decide which one i like better xD.
User avatar
Stefan Kottwitz
Site Admin
Posts: 10345
Joined: Mon Mar 10, 2008 9:44 pm

\mathbb{1} not working

Post by Stefan Kottwitz »

Hi,

usually I prefer the doublestroke package with

Code: Select all

\usepackage{dsfont}
...
$\mathds{R}, \mathds{1}$
at least the number 1 is available, it's frequently used as a symbol. Have a look at blackboard.ps , it demonstrates some blackboard bold typefaces, you will find also numbers there.

Stefan
LaTeX.org admin
Post Reply