\documentclass[11pt,a4paper]{article}
\usepackage{blindtext}
\usepackage{mathtools}
\DeclareMathOperator{\sgn}{sgn}
\begin{document}
\begin{flalign*}
&D=
\sum_{\epsilon(1,2,3)}\epsilon(1,2,3)a_{11}a_{22}a_{33}.&\\
&\end{flalign*}
\begin{multline*}
D=
\epsilon(1,2,3)a_{11}a_{22}a_{33}+\epsilon(1,3,2)a_{11}a_{23}a_{32}+
\epsilon(2,1,3)a_{12}a_{21}a_{33}+\\
\epsilon(2,3,1)a_{12}a_{23}a_{31}+\epsilon(3,1,2)a_{11}a_{21}a_{31}+
\epsilon(3,2,1)a_{13}a_{22}a_{31}.
\end{multline*}
\end{document}
答案1
mathtools
提供了一个multlined
环境,即,multline
因此您可以在 内使用它。请注意负空间。aligned
align
flalign
\!
\documentclass[11pt,a4paper]{article}
\usepackage{mathtools}
\usepackage{showframe} % to indicate border of text area
\begin{document}
\begin{flalign*}
&D=
\sum_{\epsilon(1,2,3)}\epsilon(1,2,3)a_{11}a_{22}a_{33}.&\\
&\!\begin{multlined}
D=
\epsilon(1,2,3)a_{11}a_{22}a_{33}+\epsilon(1,3,2)a_{11}a_{23}a_{32}+
\epsilon(2,1,3)a_{12}a_{21}a_{33}+\\
\epsilon(2,3,1)a_{12}a_{23}a_{31}+\epsilon(3,1,2)a_{11}a_{21}a_{31}+
\epsilon(3,2,1)a_{13}a_{22}a_{31}.
\end{multlined}
\end{flalign*}
\end{document}
答案2
您还可以通过在序言中添加以下内容来更改数学环境的边距大小:
%% -> Define horizontal spacing for equations
\setlength{\mathindent}{length}
您可以将其更改length
为您喜欢的任何长度。例如,如果您使用1cm
,它将使公式从其默认位置向页面左侧显著移动。如果您愿意,您还可以使用范围类型的输入(例如0pt plus 1pt minus 1pt
) 。请注意,也可以是负数。length
length
答案3
相同的代码。根据align*
环境略作修改
代码
\documentclass[11pt,a4paper]{article}
\usepackage{blindtext}
\usepackage{mathtools}
\DeclareMathOperator{\sgn}{sgn}
\begin{document}
\begin{align*}
D &=\sum_{\epsilon(1,2,3)}\epsilon(1,2,3)a_{11}a_{22}a_{33}.\\
D &=\epsilon(1,2,3)a_{11}a_{22}a_{33}\\
&= +\epsilon(1,3,2)a_{11}a_{23}a_{32}\\
&= +\epsilon(2,1,3)a_{12}a_{21}a_{33}\\
&= +\epsilon(2,3,1)a_{12}a_{23}a_{31}\\
&=+\epsilon(3,1,2)a_{11}a_{21}a_{31}\\
&=+\epsilon(3,2,1)a_{13}a_{22}a_{31}.\\
\end{align*}
\end{document}
答案4
尝试split
在以下范围内使用flalign
:
\documentclass[11pt,a4paper]{article}
\usepackage{blindtext}
\usepackage{mathtools}
\DeclareMathOperator{\sgn}{sgn}
\begin{document}
\begin{flalign*}
D={} & \sum_{\epsilon(1,2,3)}\epsilon(1,2,3)a_{11}a_{22}a_{33}\\
\begin{split}
D={} & \epsilon(1,2,3)a_{11}a_{22}a_{33}+\epsilon(1,3,2)a_{11}a_{23}a_{32}+
\epsilon(2,1,3)a_{12}a_{21}a_{33}+\\
& \epsilon(2,3,1)a_{12}a_{23}a_{31}+\epsilon(3,1,2)a_{11}a_{21}a_{31}+
\epsilon(3,2,1)a_{13}a_{22}a_{31}
\end{split}
\end{flalign*}
\end{document}