是否可以在箭头指向的两个对齐方程之间输入诸如“and”之类的内容?如果可以,有人可以告诉我如何实现吗?
以下是截图
这是我的代码:
\begin{align*}
\bigl(Sf\bigr)\bigl(v_{1},\ldots,v_{k}\bigr) &:= \sum_{\sigma\in S_{k}}
f\bigl(v_{\sigma(1)},\ldots,v_{\sigma(k)} \bigr), \\
\bigl(Af \bigr) \bigl(v_{1},\ldots,v_{k}\bigr)
&:=\sum_{\sigma\in S_{k}} \bigl( \text{sgn\,}\sigma\bigr)
f\bigl( v_{\sigma(1)}, \ldots,v_{\sigma(k)} \bigr).
\end{align*}
答案1
此mathtools
包有\shortintertext
以下用途:
\documentclass{article}
\usepackage{mathtools}
\usepackage{lipsum}
\begin{document}
\lipsum[1]
\begin{align*}
\bigl(Sf\bigr)\bigl(v_{1},\ldots,v_{k}\bigr) &:= \sum_{\sigma\in S_{k}}
f\bigl(v_{\sigma(1)},\ldots,v_{\sigma(k)} \bigr), \\
\shortintertext{and}
\bigl(Af \bigr) &:=\sum_{\sigma\in S_{k}} \bigl( \text{sgn\,}\sigma\bigr)
f\bigl( v_{\sigma(1)}, \ldots,v_{\sigma(k)} \bigr).
\end{align*}
\end{document}
答案2
另一个解决方案:\ArrowBetweenLines
命令 from mathtools
,它接受可选参数。它必须在环境中使用alignedat
。注意,我将:=
(冒号不在数学轴的中心) 替换为coloneqq
。
\documentclass{article}
\usepackage{mathtools}
\begin{document}
Some text. Some text. Some text. Some text. Some text. Some text. Some text. Some text. Some text. Some text. Some text. Some text. Some text. Some text. Some text. Some text.
\documentclass{article}
\usepackage{mathtools}
\begin{document}
Some text. Some text. Some text. Some text. Some text. Some text. Some text. Some text. Some text. Some text. Some text. Some text. Some text. Some text. Some text. Some text.
\begin{alignat*}{2}
& & \bigl(Sf\bigr)\bigl(v_{1},\ldots,v_{k}\bigr) & \coloneqq \sum_{\sigma \in S_{k}}
f\bigl(v_{\sigma (1)},\ldots,v_{\sigma (k)} \bigr), \\
\ArrowBetweenLines[\text{and }]
& & \bigl(Af \bigr) & \coloneqq \sum_{\sigma \in S_{k}} \bigl( \text{sgn\,}\sigma \bigr)
f\bigl( v_{\sigma (1)}, \ldots,v_{\sigma (k)} \bigr).
\end{alignat*}
\end{document}