I want to make slide using beamer
. Is it possible figure is in the top left side and quote is in the top right side of the figure? Is there any special environment
for quote?
\begin{frame}[t]{Factorization Methods}
\begin{figure}[htb]
\includegraphics[width=0.15\textwidth]{gauss.jpeg}
\end{figure}
\textbf{``The problem of distinguishing prime numbers from composites, and of resolving composite numbers into their prime factors, is one of the most important and useful in all of arithmetic."}- Carl Friedrich Gauss
\vspace*{10pt}
\begin{itemize}
\item Pollard's $p-1$ algorithm (1974)
\vspace*{10pt}
\item Dixon's Random Squares Algorithm (1981)
\vspace*{10pt}
\item Quadratic Sieve (QS): Pomerance (1981)
\vspace*{10pt}
\item Williams' $p+1$ method (1982)
\end{itemize}
\end{frame}
Best Answer
You do not need a
figure
environment to use\includegraphics
. To place the image on the left and quote on the right, you can use for examplebeamer
scolumns
, or a normaltabular
. Both are demonstrated below.By default a
p
column has justified text. By adding\raggedright\arraybackslash
at the beginning of the cell, the text is set with left justification only.If you want to align the top of the image with the top of the image, you can use the
adjustbox
package and its\adjincludegraphics[valign=t]{image}
to set the 'anchor' of the image at the top, and also use[t]
as an optional argument to thecolumns
environment.