6

I'm simply compiling this code

\documentclass{article}
\usepackage{amssymb}             % AMS Math

\begin{document}

\begin{equation}\label{eee}
\mathbb{R} \mathbb{A}  \mathbb{1}  \mathbb{\Omega} 
\end{equation}

\end{document} 

The output is really strange. What is going on with amssymb package?

enter image description here

7
  • Don't use \mathbb for numbers and greek. It is a command only for letters. Commented Feb 5, 2016 at 16:24
  • then how people usually type this $\mathbb{1}$. I've seen may times in the literature
    – Ehsan
    Commented Feb 5, 2016 at 16:29
  • Check the symbol list ctan.org/pkg/comprehensive (Table 299: Math Alphabets). Commented Feb 5, 2016 at 16:35
  • Thanks for referencing the table. using "amssymb" I can generate nice blackboard bold letters such as $\mathbb{R}$. But this package produces strange characters for greek letters, as mentioned in my post above. However, if I use "mathbbol", instead of amssymb, it does generate blackboard bold greek letters. But the problem is the letters such as $\mathbb{R}$ are not as nice as before.
    – Ehsan
    Commented Feb 5, 2016 at 16:53
  • you can declare both alphabets and use ams for letters and a different one for digits. Commented Feb 5, 2016 at 18:33

2 Answers 2

6

You can declare both fonts, I called them \amsmathbb and \mathbb here:

enter image description here

\documentclass{article}

\usepackage{mathbbol}
\usepackage{amssymb}             % AMS Math

\DeclareSymbolFontAlphabet{\amsmathbb}{AMSb}%

\begin{document}

\begin{equation}\label{eee}
\amsmathbb{R} \amsmathbb{A}  \mathbb{1}  \mathbb{\Omega} 
\end{equation}

\end{document} 
2
  • 2
    This is not working, I compiled your code exactly and the 1 and Ω came out as normal fonts. Commented Apr 19, 2019 at 6:13
  • @YanKingYin it should work or you get an error about fonts not being installed, if you can't get it working ask a new question and show your log file from the above test file. Commented Apr 19, 2019 at 7:16
3

I recommend to use the following format.

\documentclass{article}
\usepackage{bbold}

\begin{document}
 \begin{itemize}
    \item $\mathbb{1}_X$
    \item $\mathbb{\Omega}$
    \item $\mathbb{\Delta}$
\end{itemize}

\end{document}

Blackboard Characters

1

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .