# Edit align environment correctly

\documentclass[10pt,a4paper]{article}
\usepackage[utf8]{inputenc}
\usepackage{amsmath}
\usepackage{amsfonts}
\usepackage{amssymb}
\usepackage{pgfplots}
\begin{document}
\textit{Induc.:}
\begin{align*}
\hspace{2cm}\Gamma (n+1)&=n\Gamma (n) && (B)\\
&=n\cdot (n-1)! && (\textit{AA})
\end{align*}
\end{document}


Do you have any idea how i can have the Start of the Align environment right behind the "Induc." so like 2 rows higher?

Edit Problem:

\documentclass[10pt,a4paper]{article}
\usepackage[utf8]{inputenc}
\usepackage{amsmath}
\usepackage{amsthm}
\usepackage{amsfonts}
\usepackage{amssymb}
\usepackage{pgfplots}
\begin{document}
\begin{proof}
\textit{Induktionsanfang:} $\Gamma (1)=\int_0^\infty e^{-t}dt=1=0!$\\
\hspace{1cm}\\
\begin{aligned}[t] \hspace{-0.7cm}\Gamma (n+1)&=n\Gamma (n) \hspace{1.6cm} (2.85)\\ &=n\cdot (n-1)! \qquad (\textit{Induktionsvoraussetzung})\\ &=n! \end{aligned}
\end{proof}
\end{document}


You can use aligned inside an in-line math $..$ mode.

\documentclass[10pt,a4paper]{article}
\usepackage[utf8]{inputenc}
\usepackage{amsmath}
\usepackage{amsfonts}
\usepackage{amssymb}
\usepackage{pgfplots}
\begin{document}
\begin{aligned}[t] \Gamma (n+1)&=n\Gamma (n) && (B)\\ &=n\cdot (n-1)! && (\textit{AA}) \end{aligned}
\end{document}


Perhaps, you'd like to have the alignment centred w.r.t. the remaining part of the line. I propose two variants with the linegoal package:

\documentclass[10pt,a4paper]{article}
\usepackage[utf8]{inputenc}
\usepackage{linegoal}
\usepackage{amsmath}
\usepackage{amsfonts}
\usepackage{amssymb}
\usepackage{pgfplots}
\begin{document}

\textit{Induc.:}\hfill \begin{aligned}[t] \Gamma (n+1)&=n\Gamma (n) && (B)\\ &=n\cdot (n-1)! && (\textit{AA}) \end{aligned}\hfill\null \\
Some more text. Some more text. Some more text. Some more text. Some more text. Some more text. Some more text. Some more text.\bigskip

\textit{Induc.:} \makebox[\linegoal]{\begin{aligned}[t] \Gamma (n+1)&=n\Gamma (n) && (B)\\ &=n\cdot (n-1)! && (\textit{AA}) \end{aligned}}
Some more text. Some more text.

\end{document}


• Thank you.. the aligned environment is in a proof environment and it does not put the qed-box at the end. Do you know why? – chri11 Mar 1 at 11:52
• At the end of the last line of the environment? – Bernard Mar 1 at 11:55
• Yes i want it at the very end (of course) but it puts it next to the "Induc." line. – chri11 Mar 1 at 11:57
• Did you try \qedhere in the place of \null for the first way, or inside \makebox for the other way? – Bernard Mar 1 at 12:01
• both ways are not working.. – chri11 Mar 1 at 12:29