beamer
provides the columns
environment. Within it, you specify a column
environment with a given width. Together, the following generic structure is used:
\begin{columns}[<options>]
\begin{column}{<width>}
...
\end{column}
...
\begin{column}{<width>}
...
\end{column}
\end{columns}
It is best to specify the above <width>
parameters as factors of \textwidth
. As such, I've passed the option onlytextwidth
to columns
in the example below. Since these environments are inherent to beamer
, it doesn't warrant using something like multicol
. Here's an example of what you might be after - I used \rule{<width>}{<height>}
to denote your graphics:
\documentclass{beamer}
\let\Tiny\tiny% http://tex.stackexchange.com/a/94159/5764
\begin{document}
\begin{frame}
\frametitle{This is a frame title}
\begin{columns}[onlytextwidth]
\begin{column}{0.4\textwidth}
\centering
\rule{100pt}{150pt}% Place your graphic here
\end{column}
\begin{column}{0.2\textwidth}
\centering
\rule{40pt}{150pt}% Place your graphic here
\end{column}
\begin{column}{0.4\textwidth}
Here is some regular text in a column. And there is an equation
\[
f(x)=ax^2+bx+c
\]
Here is some more text.
\end{column}
\end{columns}
\end{frame}
\end{document}
Read the beamer
package documentation (p 127, section 12.7 Splitting a Frame into Multiple Columns) for more information.
For adjusting the vertical alignment of the columns, you can add the t
(for t
op) option to the columns
environment:
\documentclass{beamer}
\let\Tiny\tiny% http://tex.stackexchange.com/a/94159/5764
\usepackage[export]{adjustbox}
\begin{document}
\begin{frame}
\frametitle{This is a frame title}
\begin{columns}[onlytextwidth,t]
\begin{column}{0.4\textwidth}
\centering
\includegraphics[width=40pt,height=150pt,valign=t]{example-image-a}% Place your graphic here
\end{column}
\begin{column}{0.2\textwidth}
\centering
\includegraphics[width=40pt,height=150pt,valign=t]{example-image-b}% Place your graphic here
\end{column}
\begin{column}{0.4\textwidth}
Here is some regular text in a column. And there is an equation
\[
f(x)=ax^2+bx+c
\]
Here is some more text.
\end{column}
\end{columns}
\end{frame}
\end{document}
Note that the inclusion of graphics makes for some unintuitive output in terms of alignment. That's before alignment at the t
op implies the "baseline of the t
op line." And since graphics are placed in a single line, their t
op turns out to be more like their b
ottom. To correct for this, we use adjustbox
's valign=t
option, which is export
to be used as part of graphicsx
's \includegraphics
options.
You have a \begin{itemize}
and \end{itemize}
without an \item
:
After reducing your code to a MWE by commenting out sections of code, the problem is more obvious:
\documentclass{beamer}
\begin{document}
\begin{frame}
\frametitle{Svemir dominiran tvari}
\begin{columns}
\begin{column}{0.5\textwidth}
\begin{itemize}
\flushleft{\includegraphics[width=0.5\textwidth]{btph.eps}}
% <----- There is no \item within this itemize environment
\end{itemize}
\end{column}
\end{columns}
\end{frame}
\end{document}
After adding the \item
(and \RequirePackage[demo]{graphicx}
since I do not have the image) with the the full code, I get:
Code:
\RequirePackage[demo]{graphicx}
\documentclass{beamer}
\begin{document}
\begin{frame}
\frametitle{Svemir dominiran tvari}
\begin{columns}
\begin{column}{0.5\textwidth}
\begin{itemize}
\item \flushleft{\includegraphics[width=0.5\textwidth]{btph.eps}}
\end{itemize}
\end{column}
\begin{column}{0.5\textwidth}
\begin{itemize}
\item Barionska asimetrija se izražava omjerom broja bariona i fotona
\begin{equation}
\eta=\frac{n_b-n_{\bar{b}}}{n_\gamma}=6.1\pm 0.3\times 10^{-10}.
\end{equation}
\end{itemize}
\end{column}
\end{columns}
\begin{itemize}
\item $n_b\Rightarrow$ \quad gustoća broja (stanja) bariona\\
\item $n_{\bar{b}}\Rightarrow$ \quad gustoća broja antibariona\\
\item $n_\gamma\Rightarrow$ \quad gustoća broja fotona
$\frac{\zeta(3)}{\pi^2}g_\star T^3$
\end{itemize}
\end{frame}
\end{document}
Best Answer
You could use the options
t
(top alignment) andonlytextwidth
when initiating thecolumns
environment, and you could provide more-normal widths than0in
for the columns.