
Digitei o seguinte código para um quadro na apresentação do beamer.
\documentclass{beamer}
\usepackage{amsmath}
\newcommand\setItemnumber[1]{\setcounter{enumi}{\numexpr#1-1\relax}}
\begin{document}
\begin{frame}[t] \vspace{-7 pt} \boldmath
\begin{enumerate}
\setItemnumber{5}
\item If $f(x)$ be a twice differentiable function such that $f(x)=x^2$ for $x=1,2,3$, then
\begin{multicols}{2}
\begin{enumerate}[a]
\item $f''(x)=2 \;\; \forall \; x \in[1,3] $
\item $f''(x)=2 \; \; \textrm{for some } x \in (1,3)$
\end{enumerate}
\end{multicols}
\begin{multicols}{2}
\begin{enumerate}[a]
\setItemnumber{3}
\item $f''(x)=2 \;\; \forall \; x \in(1,3) $
\item $f''(x)=2x \;\; \forall \; x \in(1,3) $
\end{enumerate}
\end{multicols}
\end{enumerate}
\end{frame}
\end{document}
e obtive a saída
Agora eu esperava que a linha inferior fosse enumerada como c e d, pois usei SetItemnumber{3}, mas ela está aparecendo como a e b. Como consertar isto?
Responder1
Como você está interessado na segunda ordem de itens enumerados... use enumii:
\documentclass{beamer}
\usepackage{amsmath}
\newcommand\setItemnumber[1]{\setcounter{enumii}{\numexpr#1-1\relax}}
\begin{document}
\begin{frame}[t] \vspace{-7 pt} \boldmath
\begin{enumerate}
\setItemnumber{5}
\item If $f(x)$ be a twice differentiable function such that $f(x)=x^2$ for $x=1,2,3$, then
\begin{multicols}{2}
\begin{enumerate}[a]
\item $f''(x)=2 \;\; \forall \; x \in[1,3] $
\item $f''(x)=2 \; \; \textrm{for some } x \in (1,3)$
\end{enumerate}
\end{multicols}
\begin{multicols}{2}
\begin{enumerate}[a]
\setItemnumber{3}
\item $f''(x)=2 \;\; \forall \; x \in(1,3) $
\item $f''(x)=2x \;\; \forall \; x \in(1,3) $
\end{enumerate}
\end{multicols}
\end{enumerate}
\end{frame}
\end{document}