答案1
beamer
对于这种情况有自己的办法:columns
。
\documentclass{beamer}
\usetheme{Warsaw}
\begin{document}
\begin{frame}
\frametitle{Test}
\begin{columns}
\begin{column}{4cm}
\includegraphics[width=\linewidth]{example-image-duck}
\end{column}
\begin{column}{6cm}
\begin{theorem}
$a^2+b^2=c^2$
\end{theorem}
\end{column}
\end{columns}
\end{frame}
\end{document}
或者
\documentclass{beamer}
\usetheme{Warsaw}
\usepackage{tikz}
\begin{document}
\begin{frame}
\frametitle{Test}
\begin{columns}
\begin{column}{4cm}
\begin{tikzpicture}
\draw[thick] (3.9,0) -- (0,0) node[midway,below]{$a$} -- (0,2) node[midway,left]{$b$}
-- cycle node[midway,above]{$c$};
\end{tikzpicture}
\end{column}
\begin{column}{6cm}
\begin{theorem}
$a^2+b^2=c^2$
\end{theorem}
\end{column}
\end{columns}
\end{frame}
\end{document}