[Tex/LaTex] Checklist in beamer using enumitem package

beamerenumitemlists

I am working with beamer and wanna make a slide including a check list . What I wanna do is exactly like in this link: How to create checkbox todo list?. but in beamer instead.

I know that enumitem and beamer are not compatible and I have changed my codes according to this: Does enumitem conflict with beamer for lists?

However, the \only command seems not to work within the itemize environment when enumitem package is used.

Here is my example code, which is not working:

\documentclass{beamer}    
\usepackage{enumitem,amssymb}
\setitemize{label=\usebeamerfont*{itemize item}
\usebeamercolor[fg]{itemize item}
\usebeamertemplate{itemize item}}
\newlist{checklist}{itemize}{1}
\setlist[checklist]{label=$\square$}
\usepackage{pifont}
\newcommand{\cmark}{\ding{51}}%
\newcommand{\xmark}{\ding{55}}%
\newcommand{\done}{\rlap{$\square$}{\raisebox{2pt} {\large\hspace{1pt}\cmark}}\hspace{-2.5pt}}
\newcommand{\wontfix}{\rlap{$\square$}{\large\hspace{1pt}\xmark}}
\begin{document}
\begin{frame}[t]{My check list} 
\begin{itemize}
    \only<1->{\item Item 1}
    \only<2->{\item Item 2}
    \begin{checklist}
    \only<3->{\item [\done]checklist 21}
    \only<4->{\item [\wontfix]checklist 22}
    \only<5->{\item [\wontfix]checklist 23}
    \end{checklist}
    \only<6->{\item Item 3}
    \begin{checklist}
    \only<7->{\item[\done]checklist 31}
    \only<8->{\item[\wontfix]checklist 32}
    \end{checklist}
    \only<9->{\item Item 4}
    \begin{checklist}
    \only<10->{\item[\done]checklist 41}
    \only<11->{\item [\wontfix]checklist 42}
    \end{checklist} 
\end{itemize}
\end{frame}
\end{document}

Please see the attached file for imagination and note that the items will show up one by one enter image description here

Can anyone help me with this issue?

Thanks a ton!

Chung

Best Answer

Just use the classic itemize environment. Together with the symbols from https://tex.stackexchange.com/a/313337/36296 this gives:

\documentclass{beamer}
\usepackage{pifont}

\newcommand{\cmark}{\ding{51}}%
\newcommand{\xmark}{\ding{55}}%
\newcommand{\done}{\rlap{$\square$}{\raisebox{2pt}{\large\hspace{1pt}\cmark}}%
    \hspace{-2.5pt}}
\newcommand{\wontfix}{\rlap{$\square$}{\large\hspace{1pt}\xmark}}


\begin{document}

    \begin{frame}
        \begin{itemize}[<+->]
            \item bla

            \begin{itemize}[<+->]
                \item[\done] blub
                \item[\wontfix] bla
            \end{itemize}

            \item blub
        \end{itemize}
    \end{frame} 

\end{document}

enter image description here