14

I am creating a manual for an application and I would like to provide step by step directions of the application. For the step numbers, I would like to use big, blue circles with white numbers in it. Thus I was thinking if I can modify the bullet style, I would be able to achieve such list. I read few similar questions and it looks like it will have to use the enumitem package and the likes. Probably, there would be a new command for a big circle. I just don't know how to pull everything together.

Example:

example

Thorsten
  • 12,872
karlos
  • 281
  • How about http://tex.stackexchange.com/questions/34735/using-circled-numbers-for-answer-choices-in-exam-document-class ? – raphink Apr 02 '12 at 13:21
  • cool! i followed that thread and bumped into this one: http://tex.stackexchange.com/questions/7032/good-way-to-make-textcircled-numbers It shows how to create a circled number for a enumerated list. But now I will have to figure out tikz so that I can increase the circle size and fill it with color – karlos Apr 02 '12 at 13:32
  • 2
    When you're posting your next question, please show what you've already figured out, even if it is only basic usage of enumitem. – doncherry Apr 02 '12 at 14:09

3 Answers3

27

Here is an adaptation of Good way to make \textcircled numbers? for your needs:

\documentclass{article}

\usepackage{tikz}

\newcommand*\circled[1]{\tikz[baseline=(char.base)]{%
            \node[shape=circle,fill=blue!20,draw,inner sep=2pt] (char) {#1};}}

\usepackage{enumitem}

\begin{document}

\begin{enumerate}[label=\protect\circled{\arabic*}]
\item Step one
\item Step two
\item Step three
\end{enumerate}

\end{document}

result

To increase the circle size, play with the inner sep parameter (the border between the number and the circle). To change the color, play with the fill parameter.

If you wish to change the text color, you can use the xcolor package:

\documentclass{article}

\usepackage{tikz}

\newcommand*\circled[1]{\tikz[baseline=(char.base)]{%
            \node[shape=circle,fill=blue!20,draw,inner sep=2pt] (char) {#1};}}

\usepackage{enumitem}
\usepackage{xcolor}

\begin{document}

\begin{enumerate}[label=\protect\circled{\color{red}\arabic*}]
\item Step one
\item Step two
\item Step three
\end{enumerate}


\end{document}

red text?!

raphink
  • 31,894
  • thank you, Raphink, that's exactly what I am trying to do. Is there a parameter for text color as well? – karlos Apr 02 '12 at 13:53
  • Updated with text color. – raphink Apr 02 '12 at 13:57
  • \usepackage{tikz} \newcommand*\circled[1]{\tikz[baseline=(char.base)]{ \node[shape=circle, draw,inner sep=11pt, fill=NavyBlue] (char) {#1};}} when I increase the circle size, the longer bulleted text creates extra space between lines. Would it be possible for to wrap text around the bullet circle – karlos Apr 02 '12 at 15:18
  • @karlos: Use backticks to highlight code in comments. – raphink Apr 02 '12 at 17:42
  • What happens when you use the pair \label{list::item} in the list and \ref{list::item} in the tex? – pluton Feb 27 '21 at 15:46
15

Without loading tikz and default LaTeX macros:

\documentclass{article}
\usepackage{xcolor}
\newcommand*\circled[1]{\kern-2.5em%
  \put(0,4){\color{blue}\circle*{18}}\put(0,4){\circle{16}}%
  \put(-3,0){\color{white}\bfseries\large#1}~~}
\usepackage{enumitem}
\begin{document}

\begin{enumerate}[label=\protect\circled{\arabic*}]
\item Step one
\item Step two
\item Step three
\end{enumerate}

\end{document}

enter image description here

0

In order to further add to the top casted vote, if you want to not all the time set the text color you can also set the text color in the newcommand directly that way:

\documentclass{article}

\usepackage{tikz}

\newcommand*\circled[1]{\tikz[baseline=(char.base)]{% \node[shape=circle,fill=blue!20,draw,inner sep=2pt,text=red] (char) {#1};}}

\usepackage{enumitem} \usepackage{xcolor}

\begin{document}

\begin{enumerate}[label=\protect\circled{\arabic*}] \item Step one \item Step two \item Step three \end{enumerate}

\end{document}