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.

I've recently seen How to "bubble in"/color fill an item counter ((A),(B),(C),...) in an enumerated list and I just wondered: what if I'd like to enumerate my list with the arabic numbers, i.e. 1,2,3 etc? What would be the code?

share|improve this question
    
\begin{enumerate} \item whatever \end{enumerate} ? (With enumitem if something more fancy is needed.) –  mbork Feb 27 '13 at 20:03
    
ok but I think that this kind of code was used there. –  giannis Feb 27 '13 at 20:15

1 Answer 1

up vote 3 down vote accepted

Just replace all occurences of \Alph by \arabic in How to "bubble in"/color fill an item counter ((A),(B),(C),...) in an enumerated list:

\documentclass{article}
\usepackage{tikz}

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

\def\cnt{\stepcounter{enumi}\arabic{enumi}}

\usepackage{enumitem}

\begin{document}
\renewcommand{\labelenumi}{(\arabic{enumi})}
\begin{enumerate}
\item Answer A
\item Answer B
\item[\circled{\cnt}] Answer C
\item Answer D
\item Answer E
\end{enumerate}

\end{document}

enter image description here

share|improve this answer

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.