1

I am trying a presentation

\documentclass[11pt] {beamer}
\begin{document}

\begin{frame}
\begin{figure}[h!]
 I have a sentence here  \footnote{\tiny I have a reference here \vspace{1.5ex}} 
\centering
\includegraphics[width=1\textwidth, height=0.5\textheight]{photo1.png}
\end{figure}
\end{frame}

\end{document}

The sentence that I have is sitting on top of the figure. I want to know if I can somehow make a space between the figure and that sentence

1

You can manually insert a \vspace*{...} between the sentence and the image.

Unrelated to the problem, but floating specifier such as [h!], don't make sense in a document class that does not have a floating mechanism and figures are centred by default, so \centering is superfluous.

Also it is usually better to either specify the width or the height of an image, but not both at the same time, because this will very likely disturb the aspect ratio. If you really must specify both, add the keepaspectratio option.

\documentclass[11pt]{beamer}
\begin{document}

\begin{frame}
\begin{figure}
 I have a sentence here  \footnote{\tiny I have a reference here \vspace{1.5ex}} 

 \vspace*{1cm}
%\centering
\includegraphics[width=1\textwidth, height=0.5\textheight, keepaspectratio]{example-image}
\end{figure}
\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.