![对齐浮动到中心的方程式](https://linux22.com/image/303918/%E5%AF%B9%E9%BD%90%E6%B5%AE%E5%8A%A8%E5%88%B0%E4%B8%AD%E5%BF%83%E7%9A%84%E6%96%B9%E7%A8%8B%E5%BC%8F.png)
我有这个代码(基于这回答):
\[
\SI{0.2}{\micro\second} =
(1 - FR) * \SI{0.1}{\micro\second} +
(\num{0.3} * FR) * \SI{8}{\milli\second} +
(\num{0.7} * FR) * \SI{20}{\milli\second}
\]
\[
\SI{0.2}{\micro\second} =
\SI{0.1}{\micro\second} -
FR * \SI{0.1}{\micro\second} +
FR * \SI{2.4}{\milli\second} +
FR * \SI{14}{\milli\second}
\]
\[
\SI{0.1}{\micro\second} =
-FR * \SI{0.1}{\micro\second} +
FR * \SI{2400}{\micro\second} +
FR * \SI{14000}{\micro\second}
\]
\[
\SI{0.1}{\micro\second} =
-FR * \SI{16399.9}{\micro\second}
\]
\[
FR = 0.000006
\]
输出:
我希望每一行都在同一列,而不是居中对齐。
答案1
也许您想将它们全部对齐到标志处=
。
\documentclass{article} %% preamble from egreg at http://tex.stackexchange.com/a/223438/11232
\usepackage{amsmath}
\usepackage{siunitx}
\usepackage{textgreek}
\sisetup{text-micro=\textmu,math-micro=\text{\textmu}}
\begin{document}
\begin{align*}
\SI{0.2}{\micro\second} &=
(1 - FR) * \SI{0.1}{\micro\second} +
(\num{0.3} * FR) * \SI{8}{\milli\second} +
(\num{0.7} * FR) * \SI{20}{\milli\second}\\
\SI{0.2}{\micro\second} &=
\SI{0.1}{\micro\second} -
FR * \SI{0.1}{\micro\second} +
FR * \SI{2.4}{\milli\second} +
FR * \SI{14}{\milli\second}\\
\SI{0.1}{\micro\second} &=
-FR * \SI{0.1}{\micro\second} +
FR * \SI{2400}{\micro\second} +
FR * \SI{14000}{\micro\second}\\
\SI{0.1}{\micro\second} &=
-FR * \SI{16399.9}{\micro\second}\\
FR &= \num{0.000006}
\end{align*}
\end{document}
在当今时代,阅读amsmath
手册大有裨益。texdoc amsldoc
要从命令提示符/终端运行它。