
Ist es möglich, Latex zu zwingen, den linken Rand für breite Gleichungen beizubehalten?
Ich habe ein Dokument mit fleqn
aktivierter Option, alle Gleichungen linksbündig auszurichten. Wenn die Gleichung länger als der verfügbare Platz ist, verschiebt LaTeX die Gleichung nach links und, wenn dadurch nicht genügend Platz entsteht, verschiebt es den Gleichungstag in die nächste Zeile. Ich möchte LaTeX zwingen, immer den linken Rand beizubehalten, auch wenn die Gleichungen länger als der verfügbare Platz sind. Ich möchte dies im gesamten Dokument durchsetzen, selbst wenn dadurch der rechte Rand verletzt wird. Gibt es eine Möglichkeit, dies zu erreichen?
MWE:
\documentclass{article}
\usepackage[fleqn]{amsmath}
\begin{document}
What I have now:
\begin{equation}
f(x) = x^2
\end{equation}
\begin{equation}
f(x) = x^2 + x^3 + x^4 + x^5 + x^6 + x^7 + x^8 + x^9 + x^{10} + x^{11} + x^{12} + x^{13} + x^{14} + x^{15} + x^{16}
\end{equation}
\begin{equation}
f(x) = x^2 + x^3 + x^4 + x^5 + x^6 + x^7 + x^8 + x^9 + x^{10} + x^{11} + x^{12} + x^{13} + x^{14} + x^{15} + x^{16} + x^{17}
\end{equation}
\begin{equation}
f(x) = x^2 + x^3 + x^4 + x^5 + x^6 + x^7 + x^8 + x^9 + x^{10} + x^{11} + x^{12} + x^{13} + x^{14} + x^{15} + x^{16} + x^{17} + x^{18}
\end{equation}
What I want:
\begin{equation}
f(x) = x^2
\end{equation}
\begin{equation}
\qquad\,\, f(x) = x^2 + x^3 + x^4 + x^5 + x^6 + x^7 + x^8 + x^9 + x^{10} + x^{11} + x^{12} + x^{13} + x^{14} + x^{15} + x^{16}
\end{equation}
\begin{equation}
\qquad\,\,\, f(x) = x^2 + x^3 + x^4 + x^5 + x^6 + x^7 + x^8 + x^9 + x^{10} + x^{11} + x^{12} + x^{13} + x^{14} + x^{15} + x^{16} + x^{17}
\end{equation}
\begin{equation}
\qquad\,\,\,f(x) = x^2 + x^3 + x^4 + x^5 + x^6 + x^7 + x^8 + x^9 + x^{10} + x^{11} + x^{12} + x^{13} + x^{14} + x^{15} + x^{16} + x^{17} + x^{18}
\end{equation}
\end{document}
Antwort1
Ich würde die langen Laufzeiten brechen. Wie dem auch sei, Sie sind der letzte Richter.
Verwenden gather
.
\documentclass{article}
\usepackage[fleqn]{amsmath}
\begin{document}
\begin{equation}
0=0
\end{equation}
Now let's see the result
\begin{gather}
f(x) = x^2
\\
f(x) = x^2 + x^3 + x^4 + x^5 + x^6 + x^7 + x^8 + x^9 + x^{10}
+ x^{11} + x^{12} + x^{13} + x^{14} + x^{15} + x^{16}
\\
f(x) = x^2 + x^3 + x^4 + x^5 + x^6 + x^7 + x^8 + x^9 + x^{10}
+ x^{11} + x^{12} + x^{13} + x^{14} + x^{15} + x^{16} + x^{17}
\end{gather}
It also works for a single equation
\begin{gather}
f(x) = x^2 + x^3 + x^4 + x^5 + x^6 + x^7 + x^8 + x^9 + x^{10}
+ x^{11} + x^{12} + x^{13} + x^{14} + x^{15} + x^{16} + x^{17} + x^{18}
\end{gather}
\end{document}