General ⇒ Columns on a beamer slide
Columns on a beamer slide
I want two colums in one of my slides, in which in one I have a picture and in the other a block with a formula...
\begin{multicols}{2}{
\[ \mathnormal{
caplet(t)=\beta(t)\mathbb{E}_{t}^{\mathbb{Q}}\biggl[\frac{\tau(L(T,T+\tau)-K)^{+}}{\beta(T+\tau)}\biggl] }
\]
where $\mathnormal{L(T,T+\tau)}$ are MC simulated.
\begin{figure}
\centering
\includegraphics[width=0.40\textwidth]{C:/Users/Pictures/Test2.png}
\label{fig:Test2}
\end{figure}
}
\end{multicols}
If I write before my formula
\begin{block}{}
formula
\end{block}
the result is a block with width the entire slide and not only a half slide as I wanted....
Any ideas?
Thanks a lot!
Learn LaTeX easily with newest books:
The LaTeX Beginner's Guide: 2nd edition and perfect for students writing a thesis
The LaTeX Cookbook: 2nd edition full of practical examples for mathematics, physics, chemistry, and more
LaTeX Graphics with TikZ: the first book about TikZ for perfect drawings in your LaTeX thesis
Columns on a beamer slide
according to your code, you are using the multicol package with beamer. That's not necessary. To split a frame into columns, use the columns environment provided by beamer. Please refer to the beamer user guide (12.7 Splitting a Frame into Multiple Columns pp. 118 ff.)
- localghost
- Site Moderator
- Posts: 9202
- Joined: Fri Feb 02, 2007 12:06 pm
Columns on a beamer slide
Best regards
Thorsten¹
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10
Columns on a beamer slide
Yes, but, in presentation mode, beamer takes care of placing the figure where the environment starts and ignores any placement specification. The standard figure and table environments can be useful if the article mode is going to be used as well.localghost wrote:The figure environment is not necessary here because the image is not to float. If you need a caption with a label, use the caption package which provides the \captionof command.
Re: Columns on a beamer slide
- in the first I need a formula in a block
-in the second a table
For the table I had o problmes, but if I use the block environment the result is a block with width the entire slide and not only the colums as I wanted... any indeas?
Thanks
Columns on a beamer slide
the following code does what you expect with no problems (at least on my system). I attach the resulting pdf.
Code: Select all
\documentclass{beamer}
\begin{document}
\begin{frame}
\begin{columns}
\begin{column}{.5\linewidth}
\begin{block}{Some equation}
\begin{align*}
a &= b\\
&= d\\
&= f
\end{align*}
\end{block}
\end{column}
\begin{column}{.5\linewidth}
\begin{tabular}{cc}\hline
some text & some text \\\hline
\end{tabular}
\end{column}
\end{columns}
\end{frame}
\end{document}- Attachments
-
- test.pdf
- (15.17 KiB) Downloaded 2466 times