-1

I am trying to put this below equation in latex and also I need it in the middle of the line.

PPV =TP /(TP + FP)
Teja
  • 1,279
  • 3
  • 13
  • 19
  • 1
    Did you read Peter Grill's answer to your previous question? – kan Sep 09 '12 at 06:01
  • @HarishKumar: Do you want to make that an answer as display math will indeed center the equation. For readability I would define \newcommand*{\PPV}{\mathrm{PPV}} and two more for \TP, and \FP. – Peter Grill Sep 09 '12 at 06:11

1 Answers1

4

I am not sure about having those parameters in \mathrm as the nature of those functions are not known to me. However, the equation can be centered to a line as below.

\documentclass{article}
\usepackage[showframe]{geometry} %% added to show frames.
\newcommand*{\PPV}{\mathrm{PPV}}
\newcommand*{\TP}{\mathrm{TP}}
\newcommand*{\FP}{\mathrm{FP}}
\begin{document}
This is a line of text just for reference to know that the equation below is at the center of the line.
\[\PPV = \TP / (\TP + \FP)\]
\[\PPV = \frac{\TP}{(\TP + \FP)}\]

\end{document}

enter image description here