Math & Sciencetext in equation

Information and discussion about LaTeX's math and science related features (e.g. formulas, graphs).
Post Reply
mahbube
Posts: 5
Joined: Tue Sep 07, 2021 12:29 am

text in equation

Post by mahbube »

hi
how can I write this line in latex?
or.PNG
or.PNG (5.82 KiB) Viewed 8458 times

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

Bartman
Posts: 369
Joined: Fri Jan 03, 2020 2:39 pm

text in equation

Post by Bartman »

I tend to use \text{ or }. You can learn more on TeXFAQ and in the mathmode guide.
mahbube
Posts: 5
Joined: Tue Sep 07, 2021 12:29 am

text in equation

Post by mahbube »

Bartman wrote:I tend to use \text{ or }. You can learn more on TeXFAQ and in the mathmode guide.
thank you
vaman
Posts: 17
Joined: Wed Oct 09, 2019 5:51 am

text in equation

Post by vaman »

Code: Select all

\documentclass{article}
\begin{document}	
	\begin{equation}
	I(p)= \frac{1}{p} \left(1- \frac{1-p}{K(1-p)}\right) \;\;\; Or \;\;\;	
	 K(P)=\frac{p}{1-(1-p) \;I(1-p)}
			\end{equation}
			\end{document}
User avatar
Stefan Kottwitz
Site Admin
Posts: 10324
Joined: Mon Mar 10, 2008 9:44 pm

text in equation

Post by Stefan Kottwitz »

That's a bad advice to keep "Or" in math mode, italic math font. That looks like a product of two variables O and r.

It's better to use what Bartman said, \text{ Or }, to have it in upright text font with correct kerning. "Or" is text, and \text is for text in equations. It requires amsmath, but amsmath should be used in any math document anyway.

Stefan
LaTeX.org admin
Post Reply