在 \therefore 後對齊

在 \therefore 後對齊

如果我將對齊符號放在“therefore”符號(來自 amssymb)之後,則“therefore”和方程式其餘部分之間的適當間距就會丟失。有沒有辦法防止這種情況發生?

前任:

\documentclass[a4paper]{article}
\usepackage{amsmath}
\usepackage{amssymb}

\begin{document}

\begin{align*}
\text{Characteristic equation: } &r^2 + \lambda^2 c^2 = 0\\
\therefore &r = \pm\lambda ci
\end{align*}

\end{document}

(與將 & 符號放在 then 符號之前相比)

答案1

在和{}之間插入對齊符號。這恢復了適當的空間\therefore&二元關係

\begin{align*}
\text{Characteristic equation: } &r^2 + \lambda^2 c^2 = 0\\
\therefore{}&r = \pm\lambda ci
\end{align*}   

產生

在此輸入影像描述

代替

在此輸入影像描述

\mathrel每當我們使用由對齊符號定義或\mathbin後跟對齊符號定義的符號時,這種方法就很有用&。在本例中\therefore是在amssymb.stywith中定義的\mathrel

相關內容