
\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}\\
\textit{Induktionsschritt:} \qquad
$\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}
¿Por qué coloca el cuadro qed en el lugar equivocado? Lo quiero en la última línea. ¿Puede alguien ayudarme aquí?
Respuesta1
El problema es la alineación hacia arriba (me refiero a la [t]
opción de entorno alineado; pruebe con otra alineación para ver la diferencia).
Pero este problema se puede solucionar con \qedhere
un comando (un \hspace
comando anterior \qedhere
también debería funcionar si necesita algo de espacio)
\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 before this line break does nothing
\textit{Induktionsschritt:} \qquad
\(
\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!\qedhere
\end{aligned}\)
\end{proof}
\end{document}
Respuesta2
\documentclass[10pt,a4paper]{article}
\usepackage[utf8]{inputenc}
\usepackage{amsmath}
\usepackage{amsthm}
\usepackage{amsfonts}
\usepackage{amssymb}
\begin{document}
\begin{proof}
\textit{Induktionsanfang:} $\Gamma (1)=\int_0^\infty e^{-t}dt=1=0!$\\
\hspace{1cm}\\
\textit{Induktionsschritt:} \qquad
$\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}$ \\[-\baselineskip] \qedhere
\end{proof}
\end{document}
Respuesta3
No deberías usar anchos explícitos, es mejor usar más puntos de alineación con alignedat
.
También evitaría el uso excesivo de cursiva.
\documentclass[10pt,a4paper]{article}
\usepackage[T1]{fontenc}
\usepackage[ngerman]{babel}
\usepackage{amsmath}
\usepackage{amsthm}
\begin{document}
\begin{proof}
Induktionsanfang:\quad $\displaystyle\Gamma (1)=\int_0^\infty e^{-t}\,dt=1=0!$
\medskip
\noindent
Induktionsschritt:\quad
$\begin{alignedat}[t]{3}
\Gamma(n+1) &= n\Gamma(n) &\qquad& \text{(2.85)} \\
&= n\cdot (n-1)! && \text{(Induktionsvoraussetzung)} \\
&= n! &&
\end{alignedat}$\\*[-\baselineskip]
\end{proof}
\end{document}