I need to insert a graphic in a block of my beamer presentation. I used the following code
Code: Select all
\documentclass[xcolor={dvipsnames}, 10pt]{beamer}
\usepackage[utf8]{inputenc}
\usepackage{marvosym} %
\usepackage{hyperref} %
\usepackage{transparent} %
\usepackage{ragged2e, siunitx, xcolor,caption}
\usepackage{adjustbox, amsmath,booktabs,threeparttable}
\usepackage{tabularx,graphicx,rotating,subfigure,multirow,colortbl}
% \usepackage{enumitem}
\newcommand{\Min}{\operatornamewithlimits{Min}}
\captionsetup{
%format=hang,
%width=15cm,
aboveskip=4pt,
belowskip=1pt
}
%\usepackage{etoolbox}
% \apptocmd{\frame}{\justifying}{}{}
\let\olditem\item
\renewcommand\item{\olditem\justifying}
\usepackage[english]{babel}
\usetheme{Warsaw}
\setbeamertemplate{caption}[numbered]
\hyphenpenalty 10000
\justifying
%\setbeamertemplate{footline}{\insertframenumber/\inserttotalframenumber}
\setbeamertemplate{footline}[frame number]
\title{On Economic Design of Dynamic Control Charts for Attribute Data}
\date{}
%%%%%Mes cdes%%%%
\newcommand{\makepart}[1]{ % For convenience
\part{Title of part #1} \frame{\partpage}
\chapter{Chapter}\begin{frame} Chapter \end{frame}
}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\begin{document}
\begin{frame}
\begin{block}{Operation of the chart}
%\vspace*{-0.5cm}
\begin{figure}[H]
\centering
\centering\vspace*{-0.5cm}
\includegraphics[width=0.9\textwidth]{D:/MESIMAGES/VSSchart}\vspace{-2.5cm}
\caption{Chart's partition}
\end{figure}
\end{block}
\end{frame}
\end{document}
I need to have the background of the figure in the same color of the block (grey instead of white), what should I do?
Thanks.