我想將以下方程式放在文字的左側,我不知道哪個命令對此有用。我使用了對齊,但它將所有方程式放在紙張的最右側。更準確地說,我想將所有方程式放在一起,並將它們的位置放在紙張的左側。
\begin{document}
\begin{align*}
(f,f)_{[x^3]_{1}} = (f,f)_{[x^3]_{1}}=0 \\
(f,g)_{[x^3]_{1}} =(f,g)_{[x^3]_{3}}=0\\
(f,h)_{[xxy]_{1}}=(f,h)_{[xxy]_{3}}=0\\
(f,p)_{[xxy]_{1}}=(f,p)_{[xxy]_{3}}=0\\
(f,m)_{[xxt]_{1}}=[xx]_{1} \dashv t - x \dashv ([xt]_{1} - [tx]_{2})= [xtx]_{1}\\
(f,m)_{[xxt]_{3}}=[xx]_{1}\vdash t - x \vdash ([xt]_{1} - [tx]_{2})=[xxt]_3-[xxt]_2+[xtx]_3\\
(g,f)_{[x^3]_{1}}=(g,f)_{[x^3]_{3}}=0\\
\end{align*}
\end{document}
答案1
該套件nncmath
提供fleqn
將方程式推到左側文字邊框的環境:
\documentclass{article}
\usepackage{nccmath}
%---------------- show page layout. don't use in a real document!
\usepackage{showframe}
\renewcommand\ShowFrameLinethickness{0.15pt}
\renewcommand*\ShowFrameColor{\color{red}}
%---------------------------------------------------------------%
\begin{document}
\begin{fleqn}
\begin{gather*}
(f,f)_{[x^3]_{1}} = (f,f)_{[x^3]_{1}}=0 \\
(f,g)_{[x^3]_{1}} =(f,g)_{[x^3]_{3}}=0 \\
(f,h)_{[xxy]_{1}}=(f,h)_{[xxy]_{3}}=0 \\
(f,p)_{[xxy]_{1}}=(f,p)_{[xxy]_{3}}=0 \\
(f,m)_{[xxt]_{1}}=[xx]_{1} \dashv t - x \dashv ([xt]_{1} - [tx]_{2})= [xtx]_{1}\\
(f,m)_{[xxt]_{3}}=[xx]_{1}\vdash t - x \vdash ([xt]_{1} - [tx]_{2})=[xxt]_3-[xxt]_2+[xtx]_3\\
(g,f)_{[x^3]_{1}}=(g,f)_{[x^3]_{3}}=0\\
\end{gather*}
\end{fleqn}
\end{document}
(紅線表示文字邊框)
答案2
這是一個可能的建議,包括三種不同的對齊方式(紅線表示邊距):
\documentclass{article}
\usepackage{amsmath}
\begin{document}
\begin{flalign*}
(f,f)_{[x^3]_{1}} &= (f,f)_{[x^3]_{1}}=0 &&\\
(f,g)_{[x^3]_{1}} &=(f,g)_{[x^3]_{3}}=0 \\
(f,h)_{[xxy]_{1}}&=(f,h)_{[xxy]_{3}}=0 \\
(f,p)_{[xxy]_{1}}&=(f,p)_{[xxy]_{3}}=0 \\
(f,m)_{[xxt]_{1}}&=[xx]_{1} \dashv t - x \dashv ([xt]_{1} - [tx]_{2})= [xtx]_{1}\\
(f,m)_{[xxt]_{3}}&=[xx]_{1}\vdash t - x \vdash ([xt]_{1} - [tx]_{2})=[xxt]_3-[xxt]_2+[xtx]_3\\
(g,f)_{[x^3]_{1}}&=(g,f)_{[x^3]_{3}}=0\\
\end{flalign*}
\begin{align*}
(f,f)_{[x^3]_{1}} &= (f,f)_{[x^3]_{1}}=0 \\
(f,g)_{[x^3]_{1}} &=(f,g)_{[x^3]_{3}}=0 \\
(f,h)_{[xxy]_{1}}&=(f,h)_{[xxy]_{3}}=0 \\
(f,p)_{[xxy]_{1}}&=(f,p)_{[xxy]_{3}}=0 \\
(f,m)_{[xxt]_{1}}&=[xx]_{1} \dashv t - x \dashv ([xt]_{1} - [tx]_{2})= [xtx]_{1}\\
(f,m)_{[xxt]_{3}}&=[xx]_{1}\vdash t - x \vdash ([xt]_{1} - [tx]_{2})=[xxt]_3-[xxt]_2+[xtx]_3\\
(g,f)_{[x^3]_{1}}&=(g,f)_{[x^3]_{3}}=0\\
\end{align*}
\begin{flalign*}
&(f,f)_{[x^3]_{1}} = (f,f)_{[x^3]_{1}}=0 &&\\
&(f,g)_{[x^3]_{1}} =(f,g)_{[x^3]_{3}}=0 \\
&(f,h)_{[xxy]_{1}}=(f,h)_{[xxy]_{3}}=0 \\
&(f,p)_{[xxy]_{1}}=(f,p)_{[xxy]_{3}}=0 \\
&(f,m)_{[xxt]_{1}}=[xx]_{1} \dashv t - x \dashv ([xt]_{1} - [tx]_{2})= [xtx]_{1}\\
&(f,m)_{[xxt]_{3}}=[xx]_{1}\vdash t - x \vdash ([xt]_{1} - [tx]_{2})=[xxt]_3-[xxt]_2+[xtx]_3\\
&(g,f)_{[x^3]_{1}}=(g,f)_{[x^3]_{3}}=0\\
\end{flalign*}
\end{document}
答案3
只是添加一個小變體,其中一些方程式居中,另一些方程式向左對齊,當然不如@leandriis 答案那麼優雅,但它可能很有用:
\documentclass{article}
\usepackage{amsmath}
\usepackage{blindtext}
\begin{document}
\begin{align*}
& (f,f)_{[x^3]_{1}} = (f,f)_{[x^3]_{1}}=0 \\
& (f,g)_{[x^3]_{1}} = (f,g)_{[x^3]_{3}}=0 \\
& (f,h)_{[xxy]_{1}} = (f,h)_{[xxy]_{3}}=0 \\
& (f,p)_{[xxy]_{1}} = (f,p)_{[xxy]_{3}}=0 \\
& (f,m)_{[xxt]_{1}} = [xx]_{1} \dashv t - x \dashv ([xt]_{1} - [tx]_{2}) = [xtx]_{1}\\
& (f,m)_{[xxt]_{3}} = [xx]_{1}\vdash t - x \vdash ([xt]_{1} - [tx]_{2})=[xxt]_3-[xxt]_2+[xtx]_3\\
& (g,f)_{[x^3]_{1}} =(g,f)_{[x^3]_{3}}=0\\
\end{align*}
%some blind text to check that margins are correct
\blindtext
\begin{align*}
& (f,f)_{[x^3]_{1}} = (f,f)_{[x^3]_{1}}=0 \\
& (f,g)_{[x^3]_{1}} = (f,g)_{[x^3]_{3}}=0 \\
\noalign{\hspace{-\parindent}$(f,h)_{[xxy]_{1}} = (f,h)_{[xxy]_{3}}=0$}
\noalign{\hspace{-\parindent}$(f,p)_{[xxy]_{1}} = (f,p)_{[xxy]_{3}}=0$}
& (f,m)_{[xxt]_{1}} = [xx]_{1} \dashv t - x \dashv ([xt]_{1} - [tx]_{2}) = [xtx]_{1}\\
& (f,m)_{[xxt]_{3}} = [xx]_{1}\vdash t - x \vdash ([xt]_{1} - [tx]_{2})=[xxt]_3-[xxt]_2+[xtx]_3\\
& (g,f)_{[x^3]_{1}} =(g,f)_{[x^3]_{3}}=0\\
\end{align*}
\end{document}