For the sake of using captions I'd like to put my graphics into a \begin{figure} ... environment. Doing that a white space is added before and after the picture, table or whatever.
This answer is actually quite clear on how to avoid this.
But setting all lengths affecting float separation to zero has no effect:
\setlength{\textfloatsep}{0pt plus 0pt minus 0pt}
\setlength{\floatsep}{0pt plus 0pt minus 0pt}
\setlength{\intextsep}{0pt plus 0pt minus 0pt}
How can I insert a picture in beamer using
\begin{figure}
\includegraphics ...
...
without any margins?
MWE:
\documentclass{beamer}
\beamersetrightmargin{0.1\paperwidth}
\beamersetleftmargin{0.1\paperwidth}
\setlength{\textfloatsep}{0pt plus 0pt minus 0pt}
\setlength{\floatsep}{0pt plus 0pt minus 0pt}
\setlength{\intextsep}{0pt plus 0pt minus 0pt}
\begin{document}
\begin{columns}
\column{.5\textwidth}
Some text.
\begin{figure}
\framebox[\textwidth][c]{\strut figure one}
\end{figure}
Some text.
\column{.5\textwidth}
Some text.
\framebox[\textwidth][c]{\strut figure two}
Some text.
\end{columns}
\end{document}

figureenvironment is defined in the other way by default? (Is it sensible)? And is there possibly an easier way (like a toggle) to fix this in the future? – clel Mar 12 '24 at 13:41