强制文本到页面的右侧

强制文本到页面的右侧

我想知道如何(如果可能的话)将文本强制移到 LaTeX 的右侧。

因此,您知道当您有一组联立方程并且方程从左边读取时,但是在右边有一个数字表示它是哪个方程以供以后使用......?

就像是:

2x + 6y + z = x ... [and then like way over here ----> ]...     -(1

3x + 4y + z = y ... [and then like way over here ----> ]...     -(2

3x + 5y + z = z ... [and then like way over here ----> ]...     -(3

x + y + z = 1 ..... [and then like way over here ----> ]...     -(4

我怎样才能将 (1、(2 等) 发送到 RHS?

抱歉,如果这不清楚,我不知道该如何解释......

答案1

这里介绍了两种排版方程式的方法。显然,还有更多的方法可以做到这一点,但这个答案只想展示两种简单的方法,如果你想要更复杂的方法,那就由你来决定吧。

\documentclass{article}

\usepackage{amsmath}

\begin{document}

\begin{equation}
2x + 6y + z = x
\end{equation}
\begin{equation}
3x + 4y + z = y
\end{equation}
\begin{equation}
3x + 5y + z = z
\end{equation}
\begin{equation}
x + y + z = 1
\end{equation}

\begin{align}
2x + 6y + z &= x\\
3x + 4y + z &= y\\
3x + 5y + z &= z\\
x + y + z &= 1
\end{align}
\end{document}

第二组方程式使用 将它们全部对齐到符号=&默认情况下,方程式将居中,但可以通过向包fleqn中添加选项使它们左对齐amsmath

输出

相关内容