
넓은 방정식에 대해 Latex가 왼쪽 여백을 유지하도록 강제할 수 있습니까?
fleqn
모든 방정식을 왼쪽 정렬할 수 있는 옵션이 활성화된 문서가 있습니다 . 방정식이 사용 가능한 공간보다 길면 LaTeX는 방정식을 왼쪽으로 이동하고 공간이 충분하지 않으면 방정식 태그를 다음 줄로 이동합니다. 방정식이 사용 가능한 공간보다 길더라도 LaTeX가 항상 왼쪽 여백을 유지하도록 하고 싶습니다. 적절한 여백을 위반하는 대가를 치르더라도 이를 문서 전체에 적용하고 싶습니다. 이것을 달성할 수 있는 방법이 있나요?
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}
답변1
나는 장기적인 관점을 깨뜨릴 것이다. 어쨌든 최종 판단자는 당신입니다.
사용 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}