[Tex/LaTex] writing inside a ball in a itemize/enumerate in Beamer


I am doing a Beamer and I don't know how to put something like that:

\item item1

\item[1'] % I want that the 1' appears inside a ball.

\item item2
\item item3

Best Answer

The easy way for automatic numeration: use an appropriate theme in the preamble:

\usetheme{JuanLesPins} % or Madrid, or ...

The hard way for the same: remember to write


(...and set more things to have an attractive presentation).

For custom items a solution could be tikz macro that can look almost as the default numbered items, but in long items the ball become enormous. The same as rounded boxes are more elegant in this case. There are other possible decorations without managing directly tkiz. For example, the menukeys, or without extra packages, with \fbox or \textcircle (but the last one do not allow much more that one digit). With the pifont package it is possible print one digit in filled circle, but anything extra must be outside. A comparison of these methods is made in this MWE:

\usepackage{menukeys} % for \keys
\usepackage{pifont}   % for \ding

% tkiz ball item
            \node[circle,ball color=purple, shade, 
 color=white,inner sep=1.2pt] (char) {\tiny #1};}}

% tkiz rounded item
            \node[draw=none,ball color=purple, shade, 
 color=white, rounded corners=3.5pt, inner sep=2.5pt] (char) {\scriptsize #1};}}


    \item Default item  
    \item[\circled{2}] Item with {\tt tikz} ball 
    (not so smooth)     
    \item[\circled{3'}] With {\tt tikz} ball (bigger)
    \item[\circled{3''b}] With {\tt tikz} ball (really big) 
    \item[\rounded{4}] With {\tt tikz} roundex box      
    \item[\rounded{4'}] With {\tt tikz} rounded box     
    \item[\rounded{4''b}] With {\tt tikz} rounded box 
    \item[\textcircled{\scriptsize{5}}'] With\textbackslash{\tt texcircled} item (not expandable)
    \item[\large\ding{187}'] With {\tt pifont} (\textbackslash{ding}\{\})   
    \item[\small\keys{7'}] With {\tt menukey}   
    \item[\small\fbox{8'}] With \textbackslash{\tt fbox}    




Related Question