จะจัดบรรทัดแรกของสมการไปทางซ้ายได้อย่างไร?
\documentclass{article}
\usepackage{amsmath}
\begin{document}
\begin{flalign*}
\det\bigg(\lambda I -ABC(G_1\circ G_2)\bigg)
\\
=
\left[
\begin{array}{cccccccccccccccccccc}
A(G_2)\otimes Q(G_1) \otimes I_{n_2} && G^T
\\
G &&
A(G_1)\otimes Q(G_2)\otimes I_{n_1}
\end{array}
\right].
\end{flalign*}
\end{document}
ฉันติดอยู่ที่รหัสต่อไปนี้ ฉันต้องการบรรทัดแรกคือ
\det\bigg(\lambda I -ABC(G_1\circ G_2)\bigg)
เริ่มจากด้านซ้ายของเอกสาร แต่ปัญหาคือบรรทัดแรกชิดขวาของเอกสารซึ่งทำให้ดูแปลก ๆ
เป็นไปได้หรือไม่ที่จะจัดตำแหน่งทุกอย่างให้ชิดซ้ายของเอกสาร
กรุณาช่วยคน
คำตอบ
ความเป็นไปได้สองประการ:

(เส้นสีแดงแสดงถึงเส้นขอบของพื้นที่ข้อความ)
\documentclass{article}
\usepackage{mathtools}
%---------------- show page layout. don't use in a real document!
\usepackage{showframe}
\renewcommand\ShowFrameLinethickness{0.15pt}
\renewcommand*\ShowFrameColor{\color{red}}
%---------------------------------------------------------------%
\begin{document}
\begin{align*} \det\biggl(\lambda I -ABC(G_1\circ G_2)\biggr) & = \begin{bmatrix} A(G_2)\otimes Q(G_1) \otimes I_{n_2} & G^T \\ G & A(G_1)\otimes Q(G_2)\otimes I_{n_1} \end{bmatrix}. \end{align*} or with use of the \verb+\MoveEqLeft+ defined in the \verb+mathtools+ package: \begin{align*} \MoveEqLeft[4]\det\Bigl(\lambda I -ABC(G_1\circ G_2)\Bigr) \\ & = \begin{bmatrix} A(G_2)\otimes Q(G_1) \otimes I_{n_2} & G^T \\ G & A(G_1)\otimes Q(G_2)\otimes I_{n_1} \end{bmatrix}. \end{align*}
ทำไมจัดทุกอย่างไปทางซ้าย? ฉันอยากจะแนะนำให้ใช้multline
ที่นี่
\documentclass{article}
\usepackage{mathtools}
\begin{document}
\begin{multline*}
\det\bigg(\lambda I -ABC(G_1\circ G_2)\bigg)\\
=
\left[
\begin{array}{ccc}
A(G_2)\otimes Q(G_1) \otimes I_{n_2} & G^T \\
G & A(G_1)\otimes Q(G_2)\otimes I_{n_1}
\end{array}
\right].
\end{multline*}
\end{document}

คุณต้องประกาศในโค้ดอย่างน้อยสองคอลัมน์การจัดแนว สภาพแวดล้อม flalign ไม่จัดชิดซ้ายโดยอัตโนมัติ
ฉันใช้เสรีภาพในการทำให้โค้ดของคุณง่ายขึ้นเนื่องจากฉันไม่เห็นว่าทำไมอาร์เรย์ถึงมี 20 คอลัมน์ฉันจึงแทนที่ด้วยbmatrix
สภาพแวดล้อมที่ง่ายกว่า ฉันยังไม่เห็นว่าทำไมวงเล็บขนาดใหญ่สำหรับการโต้แย้งของ\det
ฉันจึงแทนที่คู่\bigg( ... \bigg)
ด้วย\bigl( ... \bigr)
(สังเกต l และ r สุดท้าย)
\documentclass{article}
\usepackage{amsmath}
\usepackage{showframe}
\renewcommand{\ShowFrameLinethickness}{0.2pt}
\begin{document}
\begin{flalign*}
\det\bigl(\lambda I & -ABC(G_1\circ G_2)\bigr) & &
\\[0.5ex]
& =
\begin{bmatrix}
A(G_2)\otimes Q(G_1) \otimes I_{n_2} && G^T
\\[1ex]
G &&
A(G_1)\otimes Q(G_2)\otimes I_{n_1}
\end{bmatrix}
\end{flalign*}
\end{document}
