
我想在我的論文中加入一些邏輯規則
只是為了避免混亂,我不想建立規則
我想將它們顯示在我的論文中
所以我使用了方程項
\begin{equation}
$if word = “and” then remove word.$
\label{Rule1}
\end{equation}
我想看到我的論文是這樣的
如果單字 =“and”,則刪除單字。 ................ (1)
怎麼做?
答案1
短期駭客達到預期結果的方法是使用\text{}
:
筆記:
- 對於長期解決方案,請使用專門為演算法設計的套件。一個好的起點是演算法、演算法、algorithmicx、algorithm2e、algpseudocode = 混淆
代碼:
\documentclass{article}
\usepackage{amsmath}
\begin{document}
\begin{equation}
\text{if word} = \text{``and'' then remove word.}
\label{Rule1}
\end{equation}
\end{document}