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.

In a related question, I asked about getting a blackboard bold 0 in addition to a 1. But now I'd like to do it along with \usepackage[utopia]{mathdesign}. If I try to \usepackage{bbold}, I get the error

Latex Error: /usr/local/texlive/2011/texmf-dist/tex/latex/bbold/bbold.sty:42 LaTeX Error: Command `\mathbb' already defined.

It seems that \usepackage{dsmath} works with \mathds{01}, but if possible I'd like to use them with the command \mathbb. Is there a way to make that work?

share|improve this question
    
Just say \let\mathbb\relax before \usepackage{bbold}, which should go after the call to mathdesign. However consider that this font is rather visually incompatible with Utopia. –  egreg Feb 26 '12 at 20:38
add comment

2 Answers

up vote 1 down vote accepted

You can try:

\documentclass{article}

\usepackage[utopia]{mathdesign}
\let\mathbb\undefined  % delete the command definition 
\usepackage{bbold}     % let bbold define its own \mathbb command

\begin{document}

$\mathbb{0,1,2,3,4,5,6,7,8,9,10}$

\end{document}

This example works, but I haven't done any further tests.

share|improve this answer
add comment

Alternatively to Micheal Palmer's answer, I did the following: declare a new math alphabet and use that (learned that trick from another answer at TeX.SX, don't have a reference at hand).

% Copied and modified from bbold.sty:
\DeclareMathAlphabet{\mathbbold}{U}{bbold}{m}{n}

$\mathbbold{1}$
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.