2

I defined a few different blocks with different colors. Now, the problem is that when I want to use \itemize, still the color of bullets are the same as predefined colors as blue by Beamer. Thanks.

    \documentclass{beamer}
    \setbeamertemplate{caption}[numbered]% <-- added, for other option see beamer manual, page 124
    \usepackage{subcaption}

\setbeamersize{text margin left=8mm,text margin right=8mm} 
\titlegraphic{\includegraphics[width=3cm]{NTHU_Logo_Gray.pdf}}
\usepackage{amsthm,amssymb,amsmath,dsfont} % in new xepersian package, 
\usepackage{textpos}

\usepackage[utf8]{inputenc}
\DeclareUnicodeCharacter{FFFD}{\colorbox{Blue}{\color{white}?}}

\usepackage{array}




\newenvironment<>{examplefirst}[1]{%
\centering
    \setbeamercolor{itemize item}{fg=green}
     \setbeamercolor{block title}{fg=white,bg=green!40!black}%
  \begin{block}#2{#1}}{\end{block}}

\newenvironment<>{examplefirst2}[1]{%
\centering
\setbeamercolor{itemize item}{fg=red}
\setbeamercolor{block title}{fg=white,bg=red!90!black}%
  \begin{block}#2{#1}}{\end{block}}



\usetheme{Frankfurt}
\usecolortheme{whale}
    \begin{document}
    \begin{frame}
            \onslide<+->{\begin{examplefirst}{case 1}
            \begin{itemize}
                \item 1
                \item 2
            \end{itemize}
        \end{examplefirst}}
        \onslide<+->{\begin{examplefirst2}{case 2}
            \begin{itemize}
                \item 1
                \item 2
            \end{itemize}
        \end{examplefirst2}}

    \end{frame}
    \end{document}
  • 1
    Please provide a complete example which demonstrates the problem when we compile it. You probably want to change the structure colour, though this is rather a guess in the absence of a proper example. – cfr Mar 26 '17 at 1:18
  • Thanks @cfr. Here, I just want to change the color of bullets, which will be used in blocks, based on the predefined blocks. I mean, when I use each predefined block, with using \itemize, I have the same color as that block. – Amin Mar 26 '17 at 1:21
  • 1
    Why does that stop you providing an example? Your code doesn't even include a bulleted list. – cfr Mar 26 '17 at 2:00
2

You can change the colour of the bullets with \setbeamercolor{itemize item}{fg=red}

\documentclass{beamer}

\newenvironment<>{examplefirst2}[1]{%
\setbeamercolor{itemize item}{fg=red}
\setbeamercolor{block title}{fg=white,bg=red!90!black}%
  \begin{block}#2{#1}}{\end{block}}

\begin{document}

\begin{frame}

\begin{block}{bla}
    \begin{itemize}
    \item item
    \end{itemize}
\end{block}

\begin{examplefirst2}{bla}
    \begin{itemize}
    \item item
    \end{itemize}
\end{examplefirst2}


\end{frame}

\end{document}

enter image description here

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.