3

I am working on some presentation with beamer. However, I need a specific frame size (not the default values of aspect ratios). What I need is to crop the frame around its content and control the padding size. For example:

\documentclass{beamer}

\beamertemplatenavigationsymbolsempty

\begin{document}
\begin{frame}
\begin{tikzpicture}

\draw (0,0) circle(3cm);

\end{tikzpicture}
\end{frame}
\end{document}

And here is what I got:

enter image description here

What I am looking for is to get:

enter image description here

1 Answers1

4

Beamer is not meant to automatically adjust paper sizes, but two possibilities:

  1. Adjust the paper size manually

    \documentclass{beamer}
    
    \geometry{papersize={8cm,8cm}}
    
    \mode<presentation>{ }
    \beamertemplatenavigationsymbolsempty
    
    \usepackage{tikz}
    
    \begin{document}
    \begin{frame}
    \centering
    \begin{tikzpicture}
    \draw (0,0) circle(3cm);
    \end{tikzpicture}
    \end{frame}
    \end{document}
    

    enter image description here

  2. Use another class which can automatically resize based on the content, e.g. standalone.

    \documentclass[tikz, margin=1cm]{standalone}
    
    \begin{document}
    \begin{tikzpicture}
    \draw (0,0) circle(3cm);
    \end{tikzpicture}
    \end{document}