LaTeX forum ⇒ Presentations and Posters1 bloc and 3 images in a frame

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

1 bloc and 3 images in a frame

Postby Colin93 » Tue Jun 21, 2016 10:22 am

Hi everyone !

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

\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 :
\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.

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

Postby Johannes_B » Tue Jun 21, 2016 10:27 am

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

Postby Colin93 » Tue Jun 21, 2016 11:03 am

\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 5154 times

b1.jpg
b1.jpg (18.82 KiB) Viewed 5154 times

b2.jpg
b2.jpg (18.82 KiB) Viewed 5154 times

Colin93
Posts: 57
Joined: Mon Apr 04, 2016 2:55 pm

Postby Colin93 » Tue Jun 21, 2016 3:39 pm

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: 4185
Joined: Thu Nov 01, 2012 4:08 pm

Postby Johannes_B » Thu Jun 23, 2016 7:34 pm

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

Postby Colin93 » Fri Jun 24, 2016 11:45 am

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 5101 times

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

Postby Johannes_B » Sun Jun 26, 2016 12:58 am

Like this?

\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

Postby Colin93 » Mon Jun 27, 2016 9:16 am

Exactly !!!! wow big thanks !


Return to “Presentations and Posters”

Who is online

Users browsing this forum: No registered users and 1 guest