I am having trouble with the following code whereby it compiles okay but the problem is that the the picture is not showing up in a slide of two columns. So the code is as follows where I have tried using the figure and the centering suggested in this post: Creating two columns in beamer, but both are producing the same result.
\documentclass{beamer}
\usepackage{pgfpages}
\usepackage{stmaryrd}
\usepackage{multicol}
\usepackage[english]{babel}
\usepackage{units}
\usepackage{tikz}
\newcommand{\pic}[2] {\begin{center}\includegraphics[height = #1]{#2}\end{center}}
\newcommand{\cip}[2] {\begin{center}\includegraphics[width = #1]{#2}\end{center}}
\usepackage{bmpsize}
\usepackage{multicol}
\begin{document}
\begin{frame}{Example}
\begin{columns}
\begin{column}{0.5\textwidth}
some text here some text here some text here some text here some text here
\end{column}
\begin{column}{0.5\textwidth}
\begin{figure}[p]
\caption{a}
\includegraphics[width=0.5\textwidth]{test} %This is my picture
\end{figure}
\end{column}
\end{columns}
\end{frame}
\end{document}
and the second one that I have tried is:
\documentclass{beamer}
\usepackage{pgfpages}
\usepackage{stmaryrd}
\usepackage{multicol}
\usepackage[english]{babel}
\usepackage{units}
\usepackage{tikz}
\newcommand{\pic}[2] {\begin{center}\includegraphics[height = #1]{#2}\end{center}}
\newcommand{\cip}[2] {\begin{center}\includegraphics[width = #1]{#2}\end{center}}
\usepackage{bmpsize}
\usepackage{multicol}
\begin{document}
\begin{frame}{Example}
\begin{columns}
\begin{column}{0.5\textwidth}
some text here some text here some text here some text here some text here
\end{column}
\begin{column}{0.5\textwidth}
\begin{center}
\includegraphics[width=0.5\textwidth]{test} %This is my picture
\end{center}
\end{column}
\end{columns}
\end{frame}
\end{document}
Would someone please help me take a look at where the bug is ? I know that it is not the picture's problem so it must be somewhere within my code. A screen shot of the output slide looks as follows (where there is just a blank area below and above the caption).
Thank you.


mwepackage is useful for minimal examples (such as provide these dummy pictures) and doesn't do anything more, so that won't be fixing the issue. Are you sure that LaTeX is finding the picture? The log file will have something likeLaTeX Error: File '<filename>' not found.if it can't find it. – JP-Ellis Mar 03 '16 at 06:07