2

What is wrong with the following declaration.

\setbeamercolor{itemize/enumerate body}{fg=\usebeamercolor[fg]{frametitle}}

I want to set the color of itemize body to that of beamer's frametitle.

Update

\documentclass{beamer}

\setbeamercolor{itemize/enumerate body}{fg=blue}

\begin{document}
\begin{frame}
\begin{itemize}
  \item A
  \item B
\end{itemize}
\end{frame}
\end{document}

I would like to use beamer's frametitle color for itemize body i.e. colorize A and B.

5
  • Can you provide a complete example?
    – user11232
    Oct 8 '15 at 5:42
  • @HarishKumar An example is provided.
    – Shahzad
    Oct 8 '15 at 5:48
  • Try with \setbeamercolor{itemize/enumerate body}{fg=structure} BTW which color theme are you using?
    – user11232
    Oct 8 '15 at 6:24
  • @HarishKumar I am using the default color theme.
    – Shahzad
    Oct 8 '15 at 6:34
  • @HarishKumar. Yes. Its working. Thanks. Please post an answer so that I may accept it.
    – Shahzad
    Oct 8 '15 at 6:43
1

Many of the colors in beamer use a base called structure. So you can use

 \setbeamercolor{itemize/enumerate body}{fg=structure}

Code:

\documentclass{beamer}
\usecolortheme{albatross}   %% just for example
\setbeamercolor{itemize/enumerate body}{fg=structure}

\begin{document}
\begin{frame}
\frametitle{Fame}
\begin{itemize}
  \item A
  \item B
\end{itemize}
\end{frame}
\end{document}

enter image description here

1

If you want to "copy" the beamer color frametitle you can use the following command:

\setbeamercolor{itemize/enumerate body}{parent=frametitle}

In this way both the fg and bg parts of the color are set even if, depending on the template, the bg part might not be used.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.