TransWikia.com

How to write Rules in Latex

TeX - LaTeX Asked on May 17, 2021

I want to add some logical rules in my paper

just to avoid confusion, I do not want to build rules

I want to display them in my paper

So I used equations terms

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

I want to see my paper something like this

if word = “and” then remove word. ……………. (1)

How to do it?

One Answer

A short term hack that will achieve the desired results is to use text{}:

enter image description here

Note:

Code:

documentclass{article}
usepackage{amsmath}

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

Correct answer by Peter Grill on May 17, 2021

Add your own answers!

Ask a Question

Get help from others!

© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP