47

Given an equation, say Bayes' rule,

$P(X \mid O) \propto P(X)P(O \mid X)$

how do I label the different parts of the equation using curly braces?

Caramdir
  • 89,023
  • 26
  • 255
  • 291
Neil G
  • 17,947

1 Answers1

63

I think you're after the \underbrace and \overbrace commands, which you could use as

$\underbrace{P(X \mid O)}_{p_1} \propto \overbrace{P(X)P(O \mid X)}^{p_2}$.

Which results in:

Under- and overbraces

LondonRob
  • 4,422
Michael Underwood
  • 21,356
  • 13
  • 52
  • 41