LaTeX forum ⇒ Graphics, Figures & Tablesquestions about slide structure in beamer

Information and discussion about graphics, figures & tables in LaTeX documents.
yotama9
Posts: 61
Joined: Thu Sep 24, 2009 2:59 pm

questions about slide structure in beamer

Postby yotama9 » Sat Aug 28, 2010 9:17 pm

Hi guys.

I'm writing my Ms.C. defense presentation on beamer and I have a couple of questions.

I want to create a slide where is divided to three parts. On the top, there are two columns (left and right). On the left there is some text and on the right there is a figure. At the bottom, I wand to have a wide table which spreads over the whole page. I have added the code of the slide at the end of the message. I have also tried to use the columns environment with the same results

I have two problems.

1. I want the figure to be in the middle (regarding the y scale) but the figure sticks to the top. I think it's because of the overlayarea environment.
2. The table doesn't show on the page.

Thank you.

Yotam

  1. \begin{frame}
  2. \frametitle{KIE}
  3. \begin{minipage}{0.45\textwidth}
  4. \begin{itemize}
  5. \item <1-> The proton transfer or deuterium from APMS and APBS was measured in different temperatures in \ce{H2O} or \ce{D2O}.
  6. \item <2-> The kinetic isotope effect doesn't seem to change greatly between the moelcules.
  7. \end{itemize}
  8. \end{minipage}
  9. \begin{minipage}{0.45\textwidth}
  10. \begin{center}
  11. \begin{overlayarea}{\textwidth}{\textheight}
  12. \only<2>{ \includegraphics[width=\textwidth]{images/end_exp/KIE_all.pdf}}
  13. \end{overlayarea}
  14. \end{center}
  15. \end{minipage} \newline
  16. \begin{minipage}{\textwidth}
  17. \begin{tabular}{ccccc}
  18. Molecule & pK$_\text{a}*$ &$\tau_{\text dis}*$ & $k_{\ce{H}} / k_{\ce{D}}$ & E$_{\text a}*$ (\ce{H2O})/ E$_{\text a}*$ (\ce{D2O})\\
  19. 1-AP & -1.6 & 1.9 $ns$ & 4.0 & 4.3/5.3 $kcal/mol$ \\
  20. APMS & -6.1 & 0.41 $ns$ & 4.2 & 3.4/4.1 $kcal/mol$ \\
  21. APBS & -6.9 & 0.06 $ns$ & 5.0 & 1.8/3.1 $kcal/mol$ \\
  22. APTS & -8.0 & 0.027 $ns$ & 5.7 & 1.2/2.2 $kcal/mol$
  23. \end{tabular}
  24. \end{minipage}
  25. \end{frame}

Montag
Posts: 340
Joined: Wed Jul 15, 2009 9:25 am

Postby Montag » Sun Aug 29, 2010 12:30 am

Hello Yotam,

usually it is quite common to post these kinds of requests according to the board rules, especially section 2 called "when posting". :)

But I go ahead and say that you should start every minipage-environment like
  1. \begin{minipage}[t]{0.45\textwidth}
. You should check out this page for more information. I checked the translation myself and it's actually flawless, if I'm not mistaken. :)

Or you could make a tabular which includes 3 columns and features a minipage in each column, but from my own experience I can tell you that you should definitely and all the possible syllabifications via
  1. \-
.

A sidenote as an advice, but not really important, you should write
  1. $\tau_{\text dis}*$
and other terms alike as
  1. $\tau_{\text{dis}}^{*}$
OS: Win 7 64-bit LaTeX: MikTeX 2.9 64-bit Editor: TXC 1 RC1

yotama9
Posts: 61
Joined: Thu Sep 24, 2009 2:59 pm

Postby yotama9 » Sun Aug 29, 2010 8:04 pm

Hi.

I'm not sure what I did wrong in my previus post but I assume you want a mwe. Also, I wasn't sure if this is the right thread for this issue.

Anyhow, here is a simpler code:


  1. \documentclass{beamer}
  2. \usepackage[latin1]{inputenc}
  3. \usepackage{graphicx}
  4.  
  5. \usetheme{Madrid}
  6.  
  7. \AtBeginSubsection[]
  8. {
  9. \begin{frame}<beamer>
  10. \frametitle{Layout}
  11. \tableofcontents[currentsection,currentsubsection]
  12. \end{frame}
  13. }
  14.  
  15. \begin{document}
  16.  
  17. \begin{frame}
  18. \frametitle{KIE}
  19. \begin{minipage}{0.45\textwidth}
  20. \begin{itemize}
  21. \item <1-> some text
  22. \item <2-> even more text
  23. \end{itemize}
  24. \end{minipage}
  25. \begin{minipage}{0.45\textwidth}
  26. \includegraphics[width=\textwidth]{p.pdf}
  27. \end{minipage}
  28. \begin{minipage}{\textwidth}
  29. \centering
  30. \begin{tabular}[t]{ccccc}
  31. a & a & a & a & a \\
  32. a & a & a & a & a \\
  33. a & a & a & a & a \\
  34. a & a & a & a & a
  35.  
  36. \end{tabular}
  37. \end{minipage}
  38. \end{frame}
  39.  
  40. I only see the top line of the table. Also, I didn't manage, no matter what I tried, to lower down the figure.
  41.  
  42. As for the tau tip. I know it should be done this way, I'm just not used to it.
  43.  
  44. Thanks.
  45.  
  46. \end{document}


edit:

I think that the problem is that the table is too low, how can I confirm this?

yotama9
Posts: 61
Joined: Thu Sep 24, 2009 2:59 pm

Postby yotama9 » Wed Sep 01, 2010 8:24 am

bump.

Montag
Posts: 340
Joined: Wed Jul 15, 2009 9:25 am

Postby Montag » Wed Sep 01, 2010 10:38 am

I ran your code and since you didn't upload the file "p.pdf", I got a totally different result. Maybe if you upload the file, someone could help you.
My result was that I could everything. The table was in the middle on the bottom, the graphic in the upper right corner...
OS: Win 7 64-bit LaTeX: MikTeX 2.9 64-bit Editor: TXC 1 RC1

yotama9
Posts: 61
Joined: Thu Sep 24, 2009 2:59 pm

Postby yotama9 » Mon Sep 06, 2010 8:42 pm

What about this text?

  1. \documentclass{beamer}
  2. \usepackage[latin1]{inputenc}
  3. \usepackage{graphicx}
  4.  
  5. \usetheme{Madrid}
  6.  
  7. \AtBeginSubsection[]
  8. {
  9. \begin{frame}<beamer>
  10. \frametitle{Layout}
  11. \tableofcontents[currentsection,currentsubsection]
  12. \end{frame}
  13. }
  14.  
  15. \begin{document}
  16.  
  17. \begin{frame}
  18. \frametitle{KIE}
  19. \begin{minipage}{0.45\textwidth}
  20. \begin{itemize}
  21. \item <1-> some text
  22. \item <2-> even more text
  23. \end{itemize}
  24. \end{minipage}
  25. \begin{minipage}{0.45\textwidth}
  26. \begin{overlatarea}{\textwidth}{\textheight}
  27. \includegraphics[width=\textwidth]{p.pdf}
  28. \end{overlayarea}
  29. \end{minipage}
  30. \begin{minipage}{\textwidth}
  31. \centering
  32. \begin{tabular}[t]{ccccc}
  33. a & a & a & a & a \\
  34. a & a & a & a & a \\
  35. a & a & a & a & a \\
  36. a & a & a & a & a
  37.  
  38. \end{tabular}
  39. \end{minipage}
  40. \end{frame}

Montag
Posts: 340
Joined: Wed Jul 15, 2009 9:25 am

Postby Montag » Fri Sep 10, 2010 8:17 pm

This example gives me 49 errors. :shock:
OS: Win 7 64-bit LaTeX: MikTeX 2.9 64-bit Editor: TXC 1 RC1


Return to “Graphics, Figures & Tables”

Who is online

Users browsing this forum: No registered users and 2 guests