# Alignment Problem in Beamer for Maths code

\documentclass{beamer}
\newcommand\Fontvi{\fontsize{2}{6}\selectfont}
\usepackage[utf8]{inputenc}
\usepackage[compat=1.1.0]{tikz-feynman}
\usepackage{amsmath, amsthm, amssymb,amsfonts}
\usepackage{graphicx}
\usepackage{tikz}
\usepackage{tcolorbox}
\usepackage{amsmath}
\usepackage{amsthm}
\usepackage{amssymb}
\usepackage{tikz-feynman}
\setcounter{MaxMatrixCols}{20}
%\usepackage{breqn}
\usepackage{tikz-feynman}
\usepackage{amsmath}
\newtheorem{rules}{Rule}
\usetheme{Antibes}
\usecolortheme{}
\title{Negative Dimensional Integral and Modified Method of Brackets}
\author[Sumit Banik]{\textbf {Work By-Sumit Banik\\ \footnotesize Supervised by: B Ananthanarayan}}
\institute{Indian Institute of Science\\Bangalore- 560012}
\date{}
\begin {document}
\begin{frame}
\frametitle{Negative Dimensional Integral Method}
\begin{itemize}
\item Using the above equation \eqref{3} and Gauss Summation Theorem for terminating hyper-geometric series  we get:
\begin{equation*}
I(a_1,a_2)=\frac{\pi^{d/2}(p^2)^{-a_1-a_2+d/2}\Gamma(d/2-a_1)\Gamma(d/2-a_2)\Gamma(a_1+a_2-d/2)}{\Gamma(a_1)\Gamma(a_2)\Gamma(d-a_1-a_2)}
\end{equation*}

\end{itemize}
\end{frame}
\end{document}

• What is this alignment problem? – Bernard Jul 12 at 18:04
• I compiled using LuaLaTeX. The equation is just going out of the page. Need Help – Sumit Banik Jul 12 at 18:13

You can write this equation on two lines, using the \MoveEqLeft command from mathtools (needless to load amsmath in this case: mathtools already does it).

Unrelated: it is not necessary to load tikz-feymann thrice.

\documentclass{beamer}
\newcommand\Fontvi{\fontsize{2}{6}\selectfont}
\usepackage[utf8]{inputenc}
\usepackage[compat=1.1.0]{tikz-feynman}
\usepackage{mathtools, amsthm, amssymb,amsfonts}
\usepackage{graphicx}
\usepackage{tikz}
\usepackage{tcolorbox}
\setcounter{MaxMatrixCols}{20}
%\usepackage{breqn}
\newtheorem{rules}{Rule}
\usetheme{Antibes}
\usecolortheme{}
\title{Negative Dimensional Integral and Modified Method of Brackets}
\author[Sumit Banik]{\textbf {Work By-Sumit Banik\\ \footnotesize Supervised by: B Ananthanarayan}}
\institute{Indian Institute of Science\\Bangalore- 560012}
\date{}
\begin {document}

\begin{frame}
\frametitle{Negative Dimensional Integral Method}
\begin{itemize}
\item Using the above equation \eqref{3} and Gauss Summation Theorem for terminating hyper-geometric series we get:
\begin{align*}
I(a_1,a_2)= & \\
\MoveEqLeft[4] \frac{\pi^{d/2}(p^2)^{-a_1-a_2+d/2}\Gamma(d/2-a_1)\Gamma(d/2-a_2)\Gamma(a_1+a_2-d/2)}{\Gamma(a_1)\Gamma(a_2)\Gamma(d-a_1-a_2)}
\end{align*}
\end{itemize}
\end{frame}

\end{document}