我正在尝试在 Beamer 演示文稿中创建列。我使用以下代码:
\begin{frame}
\frametitle{Deep Learning and Autoencoders}
The visualization derives from the weight normalization using the following formula for the case of $10 \times 10$ (for all 100 pixels $ j = 1, ..., 100$):
\medskip
\begin{columns}[t,onlytextwidth]
\column{.2\textwidth}
\begin{equation}
x = \frac{W_{ij}^{(1)}}{\sqrt{\sum_{j=1}^{100} (W_{ij}^{(1)})^{2}}}
\end{equation}
\column{.2\textwidth}
\begin{figure}[ht!]
\centering
\includegraphics[width=25mm]{images/2.jpg}
\caption{A simple caption \label{overflow}}
\end{figure}
\end{columns}
\结束{框架}
该代码可以正常工作,但是两列之间有很大的间隙。我该如何调整该间隙。我的幻灯片如下所示:
答案1
尝试均等地增加列宽(或\column{.2\textwidth}
增加第一个列宽和\column{.8\textwidth}
第二个列宽):
\documentclass{beamer}
\begin{document}
\begin{frame}
\frametitle{Deep Learning and Autoencoders}
The visualization derives from the weight normalization using the following formula for the case of $10 \times 10$ (for all 100 pixels $ j = 1, ..., 100$):
\medskip
\begin{columns}[t,onlytextwidth]
\column{.5\textwidth} %%width increased
\begin{equation}
x = \frac{W_{ij}^{(1)}}{\sqrt{\sum_{j=1}^{100} (W_{ij}^{(1)})^{2}}}
\end{equation}
\column{.5\textwidth} %%width increased
\begin{figure}
\centering
\vrule height 3cm width 3cm
\caption{A simple caption \label{overflow}}
\end{figure}
\end{columns}
\end{frame}
\end{document}