Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

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
1  
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

1 Answer 1

up vote 4 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.

\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

share|improve this answer

Your Answer

 
discard

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.