I am using beamer class to make a presentaation. I am using minipage to get 4 figures in 2 by 2 arrangement.
When I give captions to the figures 2 problems arise:
- The caption starts right from the figure instead of below
- Instead of decreasing the size of the figure the caption will be cut by the figure.
- I also get error: "\caption outside figure or table. \end{frame}"
\documentclass{beamer} \usetheme{default} \setbeamerfont{caption}{size=\footnotesize} \begin{document} \begin{frame} \begin{columns} \column{0.5\textwidth} \begin{minipage}[c][0.4\textheight][c]{\linewidth} \centering \includegraphics[width=1\linewidth]{ETRM1042-epspdf-to} \caption{WT terminal voltage} \end{minipage} \begin{minipage}[c][0.4\textheight][c]{\linewidth} \centering \includegraphics[width=1\linewidth]{ITRM1042-epspdf-to} \caption{WT terminal current} \end{minipage} \column{0.5\textwidth} \begin{minipage}[c][0.4\textheight][c]{\linewidth} \centering \includegraphics[width=1\linewidth]{ETRM1042-epspdf-to} \caption{Caption 3} \end{minipage} \begin{minipage}[c][0.4\textheight][c]{\linewidth} \centering \includegraphics[width=1\linewidth]{VAACC-epspdf-to} \caption{previous Vterm angle} \end{minipage} \end{columns} \end{frame} \end{document}
{example-image}
as the image (it is in most tex distributions)\caption
in the code above.