無法將 \mathindent 設定為 0pt

無法將 \mathindent 設定為 0pt

我試圖使我的方程式與文字完全齊平於左側。即使 \mathindent 設定為 0pt,仍然存在縮排。

我究竟做錯了什麼?

\documentclass[fleqn]{amsart}
\setlength{\parindent}{0pt}
\setlength{\mathindent}{0pt}

\begin{document}
    \underline{Impedance Z Parameters:}
    \[V_1 = z_{11}I_1 + z_{12}I_2\]
    \[V_2 = z_{21}I_1 + z_{22}I_2\]
\end{document}

在此輸入影像描述

答案1

解決方法是將行移到\setlength{\mathindent}{0pt}\begin{document}。我在此處添加封裝幾何形狀僅用於演示目的。

\documentclass[fleqn]{amsart}
\usepackage[showframe]{geometry} % for showing actual frame in this example; uncomment this line for your real paper
\setlength{\parindent}{0pt}


\begin{document}
\setlength{\mathindent}{0pt}
    \underline{Impedance Z Parameters:}
    \[V_1 = z_{11}I_1 + z_{12}I_2\]
    \[V_2 = z_{21}I_1 + z_{22}I_2\]
\end{document}

在此輸入影像描述

答案2

我建議使用amsmathand\@mathmargin而不是\mathindent,請參考以下標籤:

\documentclass[fleqn]{amsart}
\usepackage{amsmath}

\makeatletter
\def\@mathmargin{0pt}
\makeatother

\begin{document}
    \underline{Impedance Z Parameters:}
    \[V_1 = z_{11}I_1 + z_{12}I_2\]
    \[V_2 = z_{21}I_1 + z_{22}I_2\]
\end{document}

相關內容