如何在 Latex 中編寫規則

如何在 Latex 中編寫規則

我想在我的論文中加入一些邏輯規則

只是為了避免混亂,我不想建立規則

我想將它們顯示在我的論文中

所以我使用了方程項

\begin{equation}
    $if word = “and” then remove word.$
    \label{Rule1}
\end{equation}

我想看到我的論文是這樣的

如果單字 =“and”,則刪除單字。 ................ (1)

怎麼做?

答案1

短期駭客達到預期結果的方法是使用\text{}

在此輸入影像描述

筆記:

代碼:

\documentclass{article}
\usepackage{amsmath}

\begin{document}
\begin{equation}
    \text{if word} = \text{``and'' then remove word.}
    \label{Rule1}
\end{equation}
\end{document}

相關內容