18

enter image description here

Does anybody know how I can get exactly that symbol for the set of real numbers in LaTeX?

Additional image: enter image description here

In this picture you have the symbol for the set of integers, real numbers and complex numbers. I think this must be a package.

cgnieder
  • 66,645
lork251
  • 389
  • 7
    \mathbb{R} (amsfonts packagage) – David Carlisle Oct 30 '16 at 09:41
  • Does the symbol have to be rendered in Arial (or some other sans-serif font that features a "straight-legged" uppercase-R letter)? – Mico Oct 30 '16 at 09:43
  • Could be a diplicate of http://tex.stackexchange.com/questions/104274/ – poch Oct 30 '16 at 09:43
  • No it's not a duplicate – lork251 Oct 30 '16 at 09:54
  • @DavidCarlisle gave you the package you need to load (\usepackage{amsfonts} or alternatively you can try \usepackage{amssymb}). If ℝ is \mathbb{R}, ℂ is \mathbb{C} and I'm sure you can work out the rest yourself. Sure the font is different in this work, in fact the ℂ is quite clearly crudely double struck by having a C and then another C shortly afterwards (which I suppose you could do by hand in LaTeX if you really wanted to), but are you then asking how to get that exact font? – Au101 Oct 30 '16 at 10:02
  • Yes, I'm looking for that exact font. – lork251 Oct 30 '16 at 10:05
  • 6
    The letter C looks just awful. Are you sure you want to replicate such a disaster? – Mico Oct 30 '16 at 10:17
  • 6
    that isn't a font it's just over-printed letters which is what we used to do before blackboard bold fonts came available, surely you don't want to do that now? – David Carlisle Oct 30 '16 at 10:17
  • 1
    BTW: what book is it from? It looks as a Polish book to algebra, written using LaTeX methods from the previous century... And I know at last one person, who still writes in such manner. :-) – Przemysław Scherwentke Oct 30 '16 at 10:29
  • Reminds me of the time a professor sent me some LaTeX and it turns out he used something like I\!\!\!Rand Z\!\!Z. – CompuChip Oct 31 '16 at 07:44

2 Answers2

40

An exact font for the symbols does not exist, because the symbols are composed from letters. The image clearly shows, that especially the Z- and C-symbols are poor man's versions of the symbol. All the three symbols are generated by two shifted letters:

\documentclass{article}
\newcommand*{\CC}{%
  \textsf{C\kern-1ex C}%
}
\newcommand*{\RR}{%
  \textsf{I\kern-.3ex R}%
}
\newcommand*{\ZZ}{%
  \textsf{Z\kern-1ex Z}%
}
\begin{document}
\textbf{a)} nad \ZZ,
\textbf{b)} nad \RR,
\textbf{c)} nad \CC
\end{document}

Result

Alternatives for comparison

Package amssymb

\documentclass{article}
\usepackage{amssymb}
\begin{document}
\textbf{a)} nad $\mathbb{Z}$,
\textbf{b)} nad $\mathbb{R}$,
\textbf{c)} nad $\mathbb{C}$
\end{document}

Result \mathbb of package amssymb

Package fourier

\documentclass{article}
\usepackage{fourier}
\begin{document}
\textbf{a)} nad $\mathbb{Z}$,
\textbf{b)} nad $\mathbb{R}$,
\textbf{c)} nad $\mathbb{C}$
\end{document}

Result fourier

Package dsfont

\documentclass{article}
\usepackage{dsfont}
\begin{document}
\textbf{a)} nad $\mathds{Z}$,
\textbf{b)} nad $\mathds{R}$,
\textbf{c)} nad $\mathds{C}$
\end{document}

Result \mathds of package dsfont

Sans serif version of dsfont

\documentclass{article}
\usepackage[sans]{dsfont}
\begin{document}
\textbf{a)} nad $\mathds{Z}$,
\textbf{b)} nad $\mathds{R}$,
\textbf{c)} nad $\mathds{C}$
\end{document}

Result dsfont, sans serif

Font "Segoe UI Symbol" (LuaTeX/XeTeX)

\documentclass{article}
\usepackage{fontspec}
\newfontface\SymbolFont{Segoe UI Symbol}
\begin{document}
\textbf{a)} nad {\SymbolFont\symbol{"2124}},
\textbf{b)} nad {\SymbolFont\symbol{"211D}},
\textbf{c)} nad {\SymbolFont\symbol{"2102}}
\end{document}

Result for Segoe UI Symbol

Font "FreeSans" (LuaTeX/XeTeX)

\documentclass{article}
\usepackage{fontspec}
\newfontfamily\SymbolFont{FreeSans}
\begin{document}
\textbf{a)} nad {\SymbolFont\symbol{"2124}},
\textbf{b)} nad {\SymbolFont\symbol{"211D}},
\textbf{c)} nad {\SymbolFont\symbol{"2102}}
\end{document}

Result for FreeSans

Heiko Oberdiek
  • 271,626
  • Heiko, you have also a sans serif with dsfont, if I remember correctly you activate them with sans option. – Manuel Oct 31 '16 at 11:11
13

Yet one more to the collection:

Font "Bbold"

\documentclass{article}
\usepackage{bbold}
\begin{document}
\textbf{a)} nad $\mathbb{Z}$,
\textbf{b)} nad $\mathbb{R}$,
\textbf{c)} nad $\mathbb{C}$
\end{document}

mwe

Note: In text mode you can use also {\bbfamily Z}

Fran
  • 80,769