[Tex/LaTex] Can’t set \mathindent to 0pt

amsartformattingmath-mode

I am trying to make my equations completely flush to the left, along with the text. Even with \mathindent set to 0pt, there is still an indentation.

What am I doing wrong?

\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}

enter image description here

Best Answer

A workaround is to move the line \setlength{\mathindent}{0pt} after \begin{document}. I add here the package geometry only for demonstration purpose.

\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}

enter image description here