我想人们已经问过这个问题了,但是:
我有一个非常长的多行方程,在一个align
环境里面,又在一个环境里面subequation
。
方程的每一行都太长了,方程和方程行号都放不进一行。所以,我想将整个多行方程向左移动一点,比文本的左边缘更靠左。然而,方程只会忽略左边距,将第一行向左移动。方程中的任何其他行都会与文本的左边缘对齐。
我们应该如何告诉 LaTeX 将整个等式向左移动而忽略左边距?
具体来说,\hspace{-5in}
nor\hspace*{-5in}
都不起作用。
以下是等式的前两行:(原始等式有 10 多行,因此)
\documentclass[11pt, oneside]{article}
\usepackage{geometry}
\geometry{letterpaper}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage[english]{babel}
\usepackage{amsmath}
\begin{document}
\begin{subequations}
\begin{align}
\hspace*{-20cm}
\langle\tilde{\Theta}(\mathbf{l_1})...\tilde{\Theta}{(\mathbf{l_4})}\rangle&=\langle
\Theta(\mathbf{l_1})
\Theta(\mathbf{l_2})
\Theta(\mathbf{l_3})
\Theta(\mathbf{l_4})\rangle\\
+(
\iint\frac{d^2\mathbf{l_1'}d^2\mathbf{l_2'}}{(2\pi)^4}&\langle
\Theta(\mathbf{l_3})
\Theta(\mathbf{l_4})
\Theta(\mathbf{l_1'})
\Theta(\mathbf{l_2'})
\phi(\mathbf{l_1}-\mathbf{l_1'})
\phi(\mathbf{l_2}-\mathbf{l_2'})\rangle
[(\mathbf{l_1}-\mathbf{l_1'})\cdot \mathbf{l_1'}]
[(\mathbf{l_2}-\mathbf{l_2'})\cdot \mathbf{l_2'}]
\end{align}
\end{subequations}
\end{document}
答案1
\adjustwidth
您可以在本地使用包中的环境扩大文本宽度changepage
,并将方程式向左移动并在宽环境中居中:
\documentclass[11pt, oneside]{article}
\usepackage[showframe]{geometry}
\geometry{letterpaper}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage[english]{babel}
\usepackage{amsmath}
\usepackage[strict]{changepage}
\begin{document}
\begin{adjustwidth}{-1em}{}
\begin{subequations}
\begin{align}
\langle\tilde{\Theta}(\mathbf{l_1})...\tilde{\Theta}{(\mathbf{l_4})}\rangle&=\langle
\Theta(\mathbf{l_1})
\Theta(\mathbf{l_2})
\Theta(\mathbf{l_3})
\Theta(\mathbf{l_4})\rangle\\
+(
\iint\frac{d^2\mathbf{l_1'}d^2\mathbf{l_2'}}{(2\pi)^4}&\langle
\Theta(\mathbf{l_3})
\Theta(\mathbf{l_4})
\Theta(\mathbf{l_1'})
\Theta(\mathbf{l_2'})
\phi(\mathbf{l_1}-\mathbf{l_1'})
\phi(\mathbf{l_2}-\mathbf{l_2'})\rangle
[(\mathbf{l_1}-\mathbf{l_1'})\cdot \mathbf{l_1'}]
[(\mathbf{l_2}-\mathbf{l_2'})\cdot \mathbf{l_2'}]
\end{align}
\end{subequations}
\end{adjustwidth}
\begin{adjustwidth}{-2em}{}
\begin{equation}
\begin{multlined}
\langle\tilde{\Theta}(\mathbf{l_1}) \dots \tilde{\Theta}{(\mathbf{l_4})}\rangle
= \langle
\Theta(\mathbf{l_1})\Theta(\mathbf{l_2})\Theta(\mathbf{l_3})\Theta(\mathbf{l_4})
\rangle\\
+(
\iint\frac{d^2\mathbf{l_1'}d^2\mathbf{l_2'}}{(2\pi)^4}
\langle
\Theta(\mathbf{l_3})\Theta(\mathbf{l_4})\Theta(\mathbf{l_1'})\Theta(\mathbf{l_2'})
\phi(\mathbf{l_1}-\mathbf{l_1'})\phi(\mathbf{l_2}-\mathbf{l_2'})
\rangle
[(\mathbf{l_1}-\mathbf{l_1'})\cdot \mathbf{l_1'}]
[(\mathbf{l_2}-\mathbf{l_2'})\cdot \mathbf{l_2'}]
\end{multlined}
\end{equation}
\end{adjustwidth}
\end{document}
Note, so far I didn't see that part of one equations is numbered. See, if the use `multlined` is better suit to what you like to have.
\documentclass[11pt, oneside]{article}
\usepackage[showframe]{geometry}
\geometry{letterpaper}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage[english]{babel}
\usepackage{mathtools}
\usepackage[strict]{changepage}
\begin{document}
\begin{adjustwidth}{-1em}{-1em}
\begin{subequations}
\begin{align}
\langle\tilde{\Theta}(\mathbf{l_1})...\tilde{\Theta}{(\mathbf{l_4})}\rangle&=\langle
\Theta(\mathbf{l_1})
\Theta(\mathbf{l_2})
\Theta(\mathbf{l_3})
\Theta(\mathbf{l_4})\rangle\\
+(
\iint\frac{d^2\mathbf{l_1'}d^2\mathbf{l_2'}}{(2\pi)^4}&\langle
\Theta(\mathbf{l_3})
\Theta(\mathbf{l_4})
\Theta(\mathbf{l_1'})
\Theta(\mathbf{l_2'})
\phi(\mathbf{l_1}-\mathbf{l_1'})
\phi(\mathbf{l_2}-\mathbf{l_2'})\rangle
[(\mathbf{l_1}-\mathbf{l_1'})\cdot \mathbf{l_1'}]
[(\mathbf{l_2}-\mathbf{l_2'})\cdot \mathbf{l_2'}]
\end{align}
\end{subequations}
\end{adjustwidth}
\begin{adjustwidth}{-1em}{-1em}
\begin{equation}
\begin{multlined}
\langle
\tilde{\Theta}(\mathbf{l_1}) \dots \tilde{\Theta}(\mathbf{l_4})
\rangle
= \langle
\Theta(\mathbf{l_1})\Theta(\mathbf{l_2})\Theta(\mathbf{l_3})\Theta(\mathbf{l_4})
\rangle\\
+(
\iint\frac{d^2\mathbf{l_1'}d^2\mathbf{l_2'}}{(2\pi)^4}
\langle
\Theta(\mathbf{l_3})\Theta(\mathbf{l_4})\Theta(\mathbf{l_1'})\Theta(\mathbf{l_2'})
\phi(\mathbf{l_1}-\mathbf{l_1'})\phi(\mathbf{l_2}-\mathbf{l_2'})
\rangle
[(\mathbf{l_1}-\mathbf{l_1'})\cdot \mathbf{l_1'}]
[(\mathbf{l_2}-\mathbf{l_2'})\cdot \mathbf{l_2'}]
\end{multlined}
\end{equation}
\end{adjustwidth}
\end{document}
另一种可能性是使用较小的字体来表示这个等式。
答案2
尝试使用\begin{flalign}...\end{flalign}
软件包自带的amsmath.sty