48

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?

2
  • 3
    Ah braces, that what they're called. A Google search to "latex moustache" didn't lead me to \overbrace
    – Paul
    Commented Nov 3, 2014 at 21:30
  • 3
    @Paul: Your comment will help the next person.
    – Neil G
    Commented Mar 4, 2015 at 11:33

1 Answer 1

64

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

2
  • I wonder why does adding underbrace/overbrace affect the font size? Commented Dec 12, 2020 at 10:02
  • Is it possible to move the under-/overbrace farther down/up? Commented Mar 21, 2022 at 8:30

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .