2

I want to create a slideshow. For some slides I want to have a caption above the image but the rest of the slide filled with the image. How is this possible? Maybe with \usepackage{tikz}? If so, could someone maybe help me with the settings?

For now those slides look like this :

\documentclass[aspectratio=169]{beamer}
\usepackage{media9}
\usepackage{graphicx}
\usepackage{tikz}
\usetheme{default}
\usecolortheme{wolverine}
\begin{document}
\begin{frame}{Some Caption}
 \includegraphics[width=\textwidth,height=\textheight,keepaspectratio]{somepicture.jpg}
\end{frame}
\end{document}
  • 2
    tikz is not needed to simply include graphic perhaps see some of the questions and answers using "figure" with caption not including the figure number – user170109 Apr 25 at 12:09
3

Something like this? Play with the graphics width in order to fit below the heading:

\documentclass[aspectratio=169]{beamer}

\usepackage{tikz}
\usetikzlibrary{calc}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% absolute positioning of typeset material    
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\newcommand{\placetextbox}[4][center]{%
  % [#1]: box anchor: center (default) | 
  %                 south west | west | north west | north |
  %                 north east | east | south east | south | 
  %                 mid west | mid | mid east |
  %                 base west | base | base east 
  % #2: horizontal position (fraction of page width)
  % #3: vertical position (fraction of page height)
  % #4: content
  %
  \tikz[remember picture,overlay,x=\paperwidth,y=\paperheight]{%
    \node[anchor=#1,inner sep=0pt]
    at ($(current page.south west)+(#2,#3)$) {#4};
  }%
}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

\begin{document}
\begin{frame}{Some Caption}
  \placetextbox[south]{0.5}{0}{\includegraphics[width=0.68\paperwidth]{example-image-a}}
\end{frame}
\end{document}

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.