[Tex/LaTex] A white number inside a black circle.

symbolstikz-pgf

How to make a white number inside a black circle (the picture below)? I want to change numbers inside the black circle, of course. I use Share LaTeX. I have read some articles here but anyone are not what I would like to get. I would like to get this an article (the picture below) – the sixth answer.

Thanks for help.

enter image description here

Best Answer

Created from this answer linked in the question above.

\documentclass{article}
\usepackage{tikz}
\usepackage{xcolor}
\newcommand*\circled[1]{\tikz[baseline=(char.base)]{
            \node[shape=circle,fill,inner sep=2pt] (char) {\textcolor{white}{#1}};}}

\begin{document}
\circled{1}
\end{document}