[Tex/LaTex] Getting the theme’s itemize bullet in beamer

beameritemize

I was wondering if there is a way to get the itemize bullet symbol defined by the theme in beamer. More precisely, I'd like to manually place the bullet symbol somewhere in the text.

One option is to look in the style file of the theme and place the appropriate mark manually (e.x. in default theme the bullet is a $\blacktriangleright$ and I can place the same symbol whenever I want — I also have to take care of the color and size, …) but in this case if I want to change the theme it will be a mess!

I believe there must be a better way to do this …

Thanks,

Best Answer

You can use the appropriate template, font, and color`, to define a command; in this way you assure that your definition will honour the settings of the selected theme:

\documentclass{beamer}
\usetheme{Madrid}

\newcommand\Mitemitem{%
  \begingroup
  \leavevmode
  \usebeamerfont*{itemize item}%
  \usebeamercolor[fg]{itemize item}%
  \usebeamertemplate**{itemize item}%
  \endgroup
}
\newcommand\Mitemsubitem{%
  \begingroup
  \leavevmode
  \usebeamerfont*{itemize subitem}%
  \usebeamercolor[fg]{itemize subitem}%
  \usebeamertemplate**{itemize subitem}%
  \endgroup
}

\begin{document}

\begin{frame}
\Mitemitem\ AAA

\Mitemsubitem\ AAA
\end{frame}

\end{document}

enter image description here

The same code, but with the default theme gives

enter image description here