I'm using LateX beamer for the slides of my dissertation.
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!
General ⇒ Columns on a beamer slide
NEW: TikZ book now 40% off at Amazon.com for a short time.
Columns on a beamer slide
Hi,
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.)
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.)
1,1,2,3,5,8,13,21,34,55,89,144,233,...
- localghost
- Site Moderator
- Posts: 9202
- Joined: Fri Feb 02, 2007 12:06 pm
Columns on a beamer slide
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.
Best regards
Thorsten¹
Best regards
Thorsten¹
How to make a "Minimal Example"
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10
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.
1,1,2,3,5,8,13,21,34,55,89,144,233,...
Re: Columns on a beamer slide
Given we want two columns in a slides where:
- 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
- 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
Hi gozzi84,
the following code does what you expect with no problems (at least on my system). I attach the resulting pdf.
In order to detect what could be wrong, we need a minimal working example showing your problem.
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 2437 times
1,1,2,3,5,8,13,21,34,55,89,144,233,...