Presentations and Posters1 bloc and 3 images in a frame

Beamer, Powerdot and KOMA-Script presentations, Conference posters (a0poster, baposter, tikzposter)
Post Reply
Colin93
Posts: 57
Joined: Mon Apr 04, 2016 2:55 pm

1 bloc and 3 images in a frame

Post by Colin93 »

Hi everyone !

I need to put 1 bloc and 3 images on 1 frame. I used this code :

Code: Select all

\begin{frame}\frametitle{The Mesh - Blades}

\begin{columns}
\begin{column}{0.5\textwidth}

	\begin{block}{Blades}
		\begin{itemize}
			\item Counter-rotating rotors,  Optimized blades	
			\item $\sim 0.4$ million cells 	
		\end{itemize}									
	\end{block}
	
\end{column}
\begin{column}{0.5\textwidth}

	\begin{figure}
		\begin{center}	
    	\includegraphics[scale=0.11]{images2/b2.jpg}\\
		{{\footnotesize \emph{CAD version of the blades}}} 
		\end{center}		
	\end{figure}
	
\end{column}
\end{columns}

\begin{table}[ht]
	\centering
	\begin{tabu}to \textwidth {X[c]X[c]}
  		\includegraphics[width=52mm]{images2/b3.jpg}\captionof{figure}{blade root} &\includegraphics[width=52mm]{images2/b1.jpg}\captionof{figure}{Meshed blade} 
	\end{tabu}
\end{table}


\end{frame}
but I can't get my images aligned nicely. Could you help me ?

This is my preamble :

Code: Select all

\documentclass[10pt,english]{beamer}
%%\documentclass[10pt,francais,handout]{beamer} %Pour un pdf plus facilement imprimable

\newenvironment{hblock}[2]{%
\begin{block}{#1}%
\begin{minipage}[c]{0mm}%
\etai[#2]%
\end{minipage}%
\begin{minipage}[c]{\textwidth}%
}{%
\end{minipage}%
\end{block}%
}

Also, I'd like not use \captinof as I do not want Figure to appear. What can I do ?
Last edited by Colin93 on Tue Jun 21, 2016 10:40 am, edited 1 time in total.

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

User avatar
Johannes_B
Site Moderator
Posts: 4182
Joined: Thu Nov 01, 2012 4:08 pm

Re: 1 bloc and 3 images in a frame

Post by Johannes_B »

Why don't you post a minimal working example?
The smart way: Calm down and take a deep breath, read posts and provided links attentively, try to understand and ask if necessary.
Colin93
Posts: 57
Joined: Mon Apr 04, 2016 2:55 pm

1 bloc and 3 images in a frame

Post by Colin93 »

Code: Select all

\documentclass{beamer}

\usepackage{graphicx}
\usepackage{array}
\usepackage{multirow}
\usepackage{capt-of}
\usepackage{tabu}
\usepackage{xcolor}

\begin{document}
\title{Simple Beamer Class}   
\author{Sascha Frank} 
\date{\today} 

\frame{\titlepage} 

\frame{\frametitle{Table of contents}\tableofcontents} 


\section{Section no.1} 
\frame{\frametitle{Title} 
Each frame should have a title.
}
\subsection{Subsection no.1.1  }
\frame{ 
\begin{columns}
    \begin{column}{0.5\textwidth}

            \begin{block}{Blades}
                    \begin{itemize}
                            \item Counter-rotating rotors,  Optimized blades       
                            \item $\sim 0.4$ million cells  
                    \end{itemize}                                                                  
            \end{block}
           
    \end{column}
    \begin{column}{0.5\textwidth}

            \begin{figure}
                    \begin{center} 
          \includegraphics[scale=0.11]{b2.jpg}\\
                    {{\footnotesize \emph{CAD version of the blades}}}
                    \end{center}           
            \end{figure}
           
    \end{column}
    \end{columns}

    \begin{table}[ht]
            \centering
            \begin{tabu}to \textwidth {X[c]X[c]}
                    \includegraphics[width=52mm]{b3.jpg}\captionof{figure}{blade root} &\includegraphics[width=52mm]{b1.jpg}\captionof{figure}{Meshed blade}
            \end{tabu}
    \end{table}
}



\end{document}
Images :
b3.jpg
b3.jpg (18.82 KiB) Viewed 9086 times
b1.jpg
b1.jpg (18.82 KiB) Viewed 9086 times
b2.jpg
b2.jpg (18.82 KiB) Viewed 9086 times
Colin93
Posts: 57
Joined: Mon Apr 04, 2016 2:55 pm

1 bloc and 3 images in a frame

Post by Colin93 »

About \captinof, I found a way to get rid of the prefix Figure but when I'm in tabular environment, this doesn't work...
User avatar
Johannes_B
Site Moderator
Posts: 4182
Joined: Thu Nov 01, 2012 4:08 pm

Re: 1 bloc and 3 images in a frame

Post by Johannes_B »

What is your expected output? Can you draw a sketch?

Also, why are you using freaking tabu?
The smart way: Calm down and take a deep breath, read posts and provided links attentively, try to understand and ask if necessary.
Colin93
Posts: 57
Joined: Mon Apr 04, 2016 2:55 pm

1 bloc and 3 images in a frame

Post by Colin93 »

Hi Johannes_B

Here's my expected layout. I'm using tabu 'cause that's what I found on the net... What should I use ? I'm pretty new at this...
layout001.png
layout001.png (3.54 KiB) Viewed 9033 times
User avatar
Johannes_B
Site Moderator
Posts: 4182
Joined: Thu Nov 01, 2012 4:08 pm

1 bloc and 3 images in a frame

Post by Johannes_B »

Like this?

Code: Select all

\documentclass{beamer}

\usepackage{graphicx}
\usepackage{capt-of}
\usepackage{caption}
\captionsetup{style=base}

\begin{document}
\title{Simple Beamer Class}  
\author{Sascha Frank}
\date{\today}

\frame{\titlepage}

\frame{\frametitle{Table of contents}\tableofcontents}


\section{Section no.1}
\frame{\frametitle{Title}
Each frame should have a title.
}
\subsection{Subsection no.1.1  }
\begin{frame}{Blades}
	\begin{columns}
		\begin{column}{0.5\textwidth}
			\begin{itemize}
				\item Counter-rotating rotors,  Optimized blades      
				\item $\sim 0.4$ million cells   
			\end{itemize}
		\end{column}
		\begin{column}{0.4\textwidth}
			\centering
			\includegraphics[width=.5\linewidth]{example-image-b.jpg}\\
			{{\footnotesize \emph{CAD version of the blades}\par}}

		\end{column}
	\end{columns}

	\vspace{.1\textheight}
	\begin{tabular}{cc}
		\includegraphics[width=52mm]{example-image-c.jpg} &
		\includegraphics[width=52mm]{example-image-a.jpg} \\
		blade root &Meshed blade
	\end{tabular}
\end{frame}
\end{document}
The smart way: Calm down and take a deep breath, read posts and provided links attentively, try to understand and ask if necessary.
Colin93
Posts: 57
Joined: Mon Apr 04, 2016 2:55 pm

Re: 1 bloc and 3 images in a frame

Post by Colin93 »

Exactly !!!! wow big thanks !
Post Reply