在相关文章中得到了一些很大的帮助:
我想对齐两个方程组,并能够在两者之间添加文本。我找到了如何通过互文实现这一点的方法。你能帮我找到一种方法,只对前五个方程进行编号,并将数字置于这五个方程的右侧吗?这是我的 MWE:
\documentclass[12pt]{scrreprt}
\usepackage[a4paper, includehead, left=3.5cm, right=1.7cm, top=2.5cm, bottom=2.0cm]{geometry}
\usepackage[no-math]{fontspec}
\setmainfont{Arial}
\usepackage[ngerman]{babel}
\usepackage{array,booktabs,amsmath}
\usepackage[]{siunitx}
\sisetup{load-configurations = abbreviations}
\sisetup{locale = DE,group-separator={.}}
\sisetup{per-mode=symbol}
\sisetup{detect-all}
\begin{document}
\begin{align*}
t_a & = \frac{v}{a} & h_a & = \frac{1}{2} \times a \times {t_a}^2 \\
h_v & = h_t - h_a - h_r & t_v & = \frac{h_v}{v} \\
t_t & = 2 \times (t_a + t_v + t_r + t_d) & &
\intertext{Some Text}
t_a & = \frac{\SI{6}{\metre\per\second}}{\SI{0,6}{\metre\per\second\squared}} & h_a & = \frac{1}{2} \times \SI{6}{\metre\per\second\squared} \times {\SI{10}{s}}² \\
& = \SI{10}{s} & & = \SI{30}{m} \\[1ex]
t_v & = \frac{\SI{240}{m}}{\SI{6}{\metre\per\second}} & h_v & = \SI{300}{m} - \SI{30}{m} - \SI{30}{m} \\
& = \SI{40}{s} & & = \SI{240}{m} \\[1ex]
t_t & = 2 \times (\SI{10}{s} + \SI{40}{s} + \SI{8}{s} + \SI{120}{s}) \\
& = \SI{356}{s}
\end{align*}
\end{document}
答案1
除第二行外,每一行都使用align
with 。\nonumber
\documentclass[12pt]{scrreprt}
\usepackage[a4paper, includehead, left=3.5cm, right=1.7cm, top=2.5cm, bottom=2.0cm]{geometry}
\usepackage[no-math]{fontspec}
\setmainfont{Arial}
\usepackage[ngerman]{babel}
\usepackage{array,booktabs,amsmath}
\usepackage[]{siunitx}
\sisetup{load-configurations = abbreviations}
\sisetup{locale=DE,group-separator={.}}
\sisetup{per-mode=symbol}
\sisetup{detect-all}
\begin{document}
\begin{align}
t_a & = \frac{v}{a} & h_a & = \frac{1}{2} \times a \times {t_a}^2\nonumber \\
h_v & = h_t - h_a - h_r & t_v & = \frac{h_v}{v} \\
t_t & = 2 \times (t_a + t_v + t_r + t_d) & & \nonumber
\intertext{Some Text}
t_a & = \frac{\SI{6}{\metre\per\second}}{\SI{0,6}{\metre\per\second\squared}} & h_a & = \frac{1}{2} \times \SI{6}{\metre\per\second\squared} \times {\SI{10}{s}}² \nonumber\\
& = \SI{10}{s} & & = \SI{30}{m} \nonumber\\[1ex]
t_v & = \frac{\SI{240}{m}}{\SI{6}{\metre\per\second}} & h_v & = \SI{300}{m} - \SI{30}{m} - \SI{30}{m} \nonumber\\
& = \SI{40}{s} & & = \SI{240}{m} \nonumber\\[1ex]
t_t & = 2 \times (\SI{10}{s} + \SI{40}{s} + \SI{8}{s} + \SI{120}{s}) \nonumber\\
& = \SI{356}{s} \nonumber
\end{align}
\end{document}