
論文に論理的なルールを追加したい
混乱を避けるために、ルールを作りたくありません
それを私の新聞に掲載したい
そこで私は方程式の用語を使いました
\begin{equation}
$if word = “and” then remove word.$
\label{Rule1}
\end{equation}
私の論文はこんな感じです
単語が「and」の場合、単語を削除します。................(1)
どうやってするの?
答え1
短期ハック望ましい結果を得るには、以下を使用します\text{}
。
注記:
- 長期的な解決策としては、アルゴリズム専用に設計されたパッケージを使用します。まずはalgorithm、algorithmic、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}