LaTeX forum ⇒ Math & Sciencetext in equation Topic is solved

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

text in equation

Postby mahbube » Tue Sep 07, 2021 12:49 am

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

Recommended reading 2021:

LaTeXguide.org • LaTeX-Cookbook.net
LaTeX Beginner's Guide LaTeX Cookbook
Bartman
Posts: 301
Joined: Fri Jan 03, 2020 2:39 pm

text in equation

Postby Bartman » Tue Sep 07, 2021 6:49 am

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

Postby mahbube » Tue Sep 07, 2021 7:52 am

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

Postby vaman » Mon Sep 13, 2021 12:42 pm

\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: 9878
Joined: Mon Mar 10, 2008 9:44 pm

text in equation  Topic is solved

Postby Stefan Kottwitz » Mon Sep 13, 2021 1:02 pm

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


Return to “Math & Science”

Who is online

Users browsing this forum: No registered users and 3 guests