Beamer inline itemize and enumeration
Hi is this appropriate?
\documentclass[slidestop]{beamer}
\usetheme{Madrid}
\begin{document}
\newcommand{\inlineitem}{%
\leavevmode\usebeamertemplate{itemize item}
}
\newcounter{newenumi}
\setcounter{newenumi}{1}
\newcommand{\inlineenum}{%
{%
\setcounter{enumi}{\thenewenumi}%
\leavevmode\usebeamertemplate{enumerate item}
\stepcounter{newenumi}
\setcounter{enumi}{0}
}
}
\newcommand{\resetinlineenum}{
\setcounter{newenumi}{1}
}
\begin{frame}{Test}
\inlineitem short \inlineitem list test
\inlineenum test \inlineenum test \resetinlineenum \inlineenum new test
\begin{block}{in a block}
\inlineitem short in a block
\end{block}
\begin{enumerate}
\item normal
\item
\end{enumerate}
\end{frame}
\end{document}
Three new user-commands here: \inlineitem
produces just a ball. \inlineenum
a inline enumerate label and \resetinlineenum
resets it at your will.
For environmentalists:
\documentclass[slidestop]{beamer}
\usetheme{Madrid}
\newenvironment{inlineitemize}{%
\let\par\relax%
\def\item{\usebeamertemplate{itemize item}\hspace{1mm}}
\leavevmode%
}{}
\newenvironment{inlineenumerate}{%
\let\par\relax%
\setcounter{enumi}{1}%
\def\item{\usebeamertemplate{enumerate item} \stepcounter{enumi}}%
\leavevmode%
}{%
\setcounter{enumi}{0}%
}
\begin{document}
\begin{frame}{Test}
\begin{inlineitemize}
\item item
\item 2
\end{inlineitemize}%
\begin{inlineenumerate}
\item test
\item test
\item test
\end{inlineenumerate}
\begin{block}{in a block}
\begin{inlineenumerate}
\item test
\item test
\item test
\end{inlineenumerate}
\end{block}
\begin{enumerate}
\item normal
\item
\end{enumerate}
\end{frame}
\end{document}
I'm sorry to post an answer, but since I haven't reached 50 points yet I can't comment it seems. You can fix the color issue with this:
\newcommand{\inlineitem}{\leavevmode{\color{blue}\usebeamertemplate{itemize item}} }
Probably very crude but it does work for Madrid.