幅の広い数式と柔軟な左余白の配置

幅の広い数式と柔軟な左余白の配置

幅の広い数式の左余白を 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}

ここに画像の説明を入力してください

関連情報