4
\documentclass{beamer}
\usepackage{tasks}
\begin{document}
\begin{frame}[allowframebreaks]
    $1+1=$(\makebox[2cm]{})
        \begin{tasks}[counter-format = tsk[A]. ](2)
            \task one
            \task two
            \task three
            \task four
        \end{tasks}
\end{frame}
\end{document}

Enter image description here

2 Answers2

5

The environment tasks wants to generate two columns. But, there seems to be a rounding issue, when the column width is calculated, because the text width is odd (\showthe\numexpr\linewidth gives 20138549 sp).

Making it even fixes the problem:

\documentclass{beamer}
\usepackage{tasks}
\ifodd\textwidth
  \addtolength{\textwidth}{1sp}
\fi
\begin{document}
\begin{frame}[allowframebreaks]
    $1+1=(\makebox[2cm]{})$
    \begin{tasks}[counter-format = tsk[A]. ](2)
        \task one
        \task two
        \task three
        \task four
    \end{tasks}
\end{frame}
\end{document}

Result

Heiko Oberdiek
  • 271,626
2

Workaround:

I suggest using a simple enumerate environment instead. The label can be formatted with \setbeamertemplate{enumerate item}{...}.

\documentclass{beamer}

\begin{document} \begin{frame} $1+1=$(\makebox[2cm]{}) { \setbeamertemplate{enumerate item}{\Alph{enumi}.} \begin{enumerate} \item one \item two \item three \item four \end{enumerate} } \end{frame} \end{document}

enter image description here

In case the items should be arranged in two columns, see https://tex.stackexchange.com/a/25712/36296