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 :

  1. \begin{frame}\frametitle{The Mesh - Blades}
  2.  
  3. \begin{columns}
  4. \begin{column}{0.5\textwidth}
  5.  
  6. \begin{block}{Blades}
  7. \begin{itemize}
  8. \item Counter-rotating rotors, Optimized blades
  9. \item $\sim 0.4$ million cells
  10. \end{itemize}
  11. \end{block}
  12.  
  13. \end{column}
  14. \begin{column}{0.5\textwidth}
  15.  
  16. \begin{figure}
  17. \begin{center}
  18. \includegraphics[scale=0.11]{images2/b2.jpg}\\
  19. {{\footnotesize \emph{CAD version of the blades}}}
  20. \end{center}
  21. \end{figure}
  22.  
  23. \end{column}
  24. \end{columns}
  25.  
  26. \begin{table}[ht]
  27. \centering
  28. \begin{tabu}to \textwidth {X[c]X[c]}
  29. \includegraphics[width=52mm]{images2/b3.jpg}\captionof{figure}{blade root} &\includegraphics[width=52mm]{images2/b1.jpg}\captionof{figure}{Meshed blade}
  30. \end{tabu}
  31. \end{table}
  32.  
  33.  
  34. \end{frame}


but I can't get my images aligned nicely. Could you help me ?

This is my preamble :
  1. \documentclass[10pt,english]{beamer}
  2. %%\documentclass[10pt,francais,handout]{beamer} %Pour un pdf plus facilement imprimable
  3.  
  4. \newenvironment{hblock}[2]{%
  5. \begin{block}{#1}%
  6. \begin{minipage}[c]{0mm}%
  7. \etai[#2]%
  8. \end{minipage}%
  9. \begin{minipage}[c]{\textwidth}%
  10. }{%
  11. \end{minipage}%
  12. \end{block}%
  13. }



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: 3805
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

  1. \documentclass{beamer}
  2.  
  3. \usepackage{graphicx}
  4. \usepackage{array}
  5. \usepackage{multirow}
  6. \usepackage{capt-of}
  7. \usepackage{tabu}
  8. \usepackage{xcolor}
  9.  
  10. \begin{document}
  11. \title{Simple Beamer Class}
  12. \author{Sascha Frank}
  13. \date{\today}
  14.  
  15. \frame{\titlepage}
  16.  
  17. \frame{\frametitle{Table of contents}\tableofcontents}
  18.  
  19.  
  20. \section{Section no.1}
  21. \frame{\frametitle{Title}
  22. Each frame should have a title.
  23. }
  24. \subsection{Subsection no.1.1 }
  25. \frame{
  26. \begin{columns}
  27. \begin{column}{0.5\textwidth}
  28.  
  29. \begin{block}{Blades}
  30. \begin{itemize}
  31. \item Counter-rotating rotors, Optimized blades
  32. \item $\sim 0.4$ million cells
  33. \end{itemize}
  34. \end{block}
  35.  
  36. \end{column}
  37. \begin{column}{0.5\textwidth}
  38.  
  39. \begin{figure}
  40. \begin{center}
  41. \includegraphics[scale=0.11]{b2.jpg}\\
  42. {{\footnotesize \emph{CAD version of the blades}}}
  43. \end{center}
  44. \end{figure}
  45.  
  46. \end{column}
  47. \end{columns}
  48.  
  49. \begin{table}[ht]
  50. \centering
  51. \begin{tabu}to \textwidth {X[c]X[c]}
  52. \includegraphics[width=52mm]{b3.jpg}\captionof{figure}{blade root} &\includegraphics[width=52mm]{b1.jpg}\captionof{figure}{Meshed blade}
  53. \end{tabu}
  54. \end{table}
  55. }
  56.  
  57.  
  58.  
  59. \end{document}


Images :

b3.jpg
b3.jpg (18.82 KiB) Viewed 2588 times

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

b2.jpg
b2.jpg (18.82 KiB) Viewed 2588 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: 3805
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 2535 times

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

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

Like this?

  1. \documentclass{beamer}
  2.  
  3. \usepackage{graphicx}
  4. \usepackage{capt-of}
  5. \usepackage{caption}
  6. \captionsetup{style=base}
  7.  
  8. \begin{document}
  9. \title{Simple Beamer Class}
  10. \author{Sascha Frank}
  11. \date{\today}
  12.  
  13. \frame{\titlepage}
  14.  
  15. \frame{\frametitle{Table of contents}\tableofcontents}
  16.  
  17.  
  18. \section{Section no.1}
  19. \frame{\frametitle{Title}
  20. Each frame should have a title.
  21. }
  22. \subsection{Subsection no.1.1 }
  23. \begin{frame}{Blades}
  24. \begin{columns}
  25. \begin{column}{0.5\textwidth}
  26. \begin{itemize}
  27. \item Counter-rotating rotors, Optimized blades
  28. \item $\sim 0.4$ million cells
  29. \end{itemize}
  30. \end{column}
  31. \begin{column}{0.4\textwidth}
  32. \centering
  33. \includegraphics[width=.5\linewidth]{example-image-b.jpg}\\
  34. {{\footnotesize \emph{CAD version of the blades}\par}}
  35.  
  36. \end{column}
  37. \end{columns}
  38.  
  39. \vspace{.1\textheight}
  40. \begin{tabular}{cc}
  41. \includegraphics[width=52mm]{example-image-c.jpg} &
  42. \includegraphics[width=52mm]{example-image-a.jpg} \\
  43. blade root &Meshed blade
  44. \end{tabular}
  45. \end{frame}
  46. \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