Latex에서 규칙을 작성하는 방법

Latex에서 규칙을 작성하는 방법

내 논문에 몇 가지 논리적 규칙을 추가하고 싶습니다.

혼란을 피하기 위해 규칙을 만들고 싶지 않습니다.

내 논문에 표시하고 싶어요

그래서 방정식 용어를 사용했습니다.

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

내 논문이 이런 걸 보고 싶어

word = "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}

관련 정보