Math & ScienceBeamer error for math equations

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

Beamer error for math equations

Post by newbeamer »

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

\documentclass[10pt]{beamer}
\usetheme{Warsaw}
\usepackage[utf8]{inputenc}
\usepackage[english]{babel}
\usepackage{amsmath}
\usepackage{amsfonts}
\usepackage{amssymb}
\usepackage{graphicx}
\usepackage{times}
\usepackage{xcolor}
\usepackage{lmodern}
\usepackage{multimedia}
%\author{}
\title{Projectile on Inclined Plane}
\setbeamercovered{transparent}
%\setbeamertemplate{navigation symbols}{}
%\logo{}
%\institute{}
\date{}
\subject{Physics}
\begin{document}

%\begin{frame}
\titlepage
%\end{frame}

%\begin{frame}
%\tableofcontents
%\end{frame}

\begin{frame}
\frametitle{Projectile on an inclined Plane}
In an inclined plane projectile, we try to analyze a projectile motion when it is projected on an inclined plane.

\vspace{0.5cm}
Here we have two cases:
\vspace{0.5cm}
\begin{enumerate}
\item Up the plane
\item Down the plane
\end{enumerate}
\end{frame}

\begin{frame}
\frametitle{Equations of Inclined projectile}
We will try to resolve the velocity and acceleration according to the co-ordinate system we have selected.
\begin{itemize}
\item $ u_x = u cos(%alpha - %theta) $

\end{itemize}

\end{frame}

\end{document}

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
Ijon Tichy
Posts: 640
Joined: Mon Dec 24, 2018 10:12 am

Beamer error for math equations

Post by Ijon Tichy »

% 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.
Sorry, but I can no longer participate here as the administrator is trampling on my wishes on one of his other platforms. :cry:
newbeamer
Posts: 2
Joined: Wed Sep 09, 2020 11:02 am

Beamer error for math equations

Post by newbeamer »

Thanks a lot my problem got resolved.
Thank you
Post Reply