LaTeX forum ⇒ Math & ScienceBeamer error for math equations Topic is solved

Information and discussion about LaTeX's math and science related features (e.g. formulas, graphs).
newbeamer
Posts: 2
Joined: Wed Sep 09, 2020 11:02 am

Beamer error for math equations

Postby newbeamer » Wed Sep 09, 2020 11:22 am

When i am inserting equations in beamer it is showing an error message for \end{frame} and its not giving the out put for the equations


Error messages are

! Extra }, or forgotten \endgroup.
! Missing } inserted.
! Missing $ inserted.

Code: [Select all] [Expand/Collapse] [Download] ({untitled.tex})
  1. \documentclass[10pt]{beamer}
  2. \usetheme{Warsaw}
  3. \usepackage[utf8]{inputenc}
  4. \usepackage[english]{babel}
  5. \usepackage{amsmath}
  6. \usepackage{amsfonts}
  7. \usepackage{amssymb}
  8. \usepackage{graphicx}
  9. \usepackage{times}
  10. \usepackage{xcolor}
  11. \usepackage{lmodern}
  12. \usepackage{multimedia}
  13. %\author{}
  14. \title{Projectile on Inclined Plane}
  15. \setbeamercovered{transparent}
  16. %\setbeamertemplate{navigation symbols}{}
  17. %\logo{}
  18. %\institute{}
  19. \date{}
  20. \subject{Physics}
  21. \begin{document}
  22.  
  23. %\begin{frame}
  24. \titlepage
  25. %\end{frame}
  26.  
  27. %\begin{frame}
  28. %\tableofcontents
  29. %\end{frame}
  30.  
  31. \begin{frame}
  32. \frametitle{Projectile on an inclined Plane}
  33. In an inclined plane projectile, we try to analyze a projectile motion when it is projected on an inclined plane.
  34.  
  35. \vspace{0.5cm}
  36. Here we have two cases:
  37. \vspace{0.5cm}
  38. \begin{enumerate}
  39. \item Up the plane
  40. \item Down the plane
  41. \end{enumerate}
  42. \end{frame}
  43.  
  44. \begin{frame}
  45. \frametitle{Equations of Inclined projectile}
  46. We will try to resolve the velocity and acceleration according to the co-ordinate system we have selected.
  47. \begin{itemize}
  48. \item $ u_x = u cos(%alpha - %theta) $
  49.  
  50. \end{itemize}
  51.  
  52. \end{frame}
  53.  
  54. \end{document}

User avatar
Ijon Tichy
Posts: 314
Joined: Mon Dec 24, 2018 10:12 am

Postby Ijon Tichy » Wed Sep 09, 2020 11:44 am

% always starts a comment. So your equation is \item $ u_x = u cos( only and indeed a $ is missing. To add a percent-character you have to use \% instead of %. But note, cos is the product of the three variables c, o and s not the cosine function. The function would be \cos. And \%alpha would also be a product. I don't know, whether this should be \alpha or \text{\%alpha}. Same for %theta.

BTW: Loading deprecated package times before lmodern makes no sense.

newbeamer
Posts: 2
Joined: Wed Sep 09, 2020 11:02 am

Postby newbeamer » Wed Sep 09, 2020 12:20 pm

Thanks a lot my problem got resolved.
Thank you


Return to “Math & Science”

Who is online

Users browsing this forum: No registered users and 5 guests