# Adjust space between two columns

I am trying to create columns in beamer presentation. I am using the following code:

\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}
$$x = \frac{W_{ij}^{(1)}}{\sqrt{\sum_{j=1}^{100} (W_{ij}^{(1)})^{2}}}$$
\column{.2\textwidth}
\begin{figure}[ht!]
\centering
\includegraphics[width=25mm]{images/2.jpg}
\caption{A simple caption \label{overflow}}
\end{figure}
\end{columns}


\end{frame}

THat code is working however, two columns are having a great space between them. how can I adjust that space. My slide looks like:

Try increasing the column width equally (or \column{.2\textwidth} for the first one and \column{.8\textwidth} for the second one):

\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
$$x = \frac{W_{ij}^{(1)}}{\sqrt{\sum_{j=1}^{100} (W_{ij}^{(1)})^{2}}}$$
\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}


• Ok it works. One last question how can I move up the right image to be in the same level with the equation? – Jose Ramon Jun 19 '15 at 9:52
• Do you mean bottom align with the equation? – Ambika Vanchinathan Jun 19 '15 at 9:54
• Yes i want the equation to be in the same level of the image(in fact in the middle of image). – Jose Ramon Jun 19 '15 at 9:55
• Use \begin{columns}[c,onlytextwidth] (note the option "c") to center – Ambika Vanchinathan Jun 19 '15 at 9:58

As Gonzalo has mentioned in this answer,

The only way to decrease the intercolumn space is to increase the column width

So you will have basically two options:

1. Change \column{.2\textwidth} to something bigger, e.g., \column{.8\textwidth} which bring the right column as close to left column as possible.
2. Remove onlytextwidth options which will center the columns hence bringing them close to each other at center.