TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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)
share|improve this question
Did you read Peter Grill's answer to your previous question? – kan Sep 9 '12 at 6: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 9 '12 at 6:11
up vote 7 down vote accepted

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.

\usepackage[showframe]{geometry} %% added to show frames.
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)}\]


enter image description here

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.