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

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?

share|improve this question
2  
Ah braces, that what they're called. A Google search to "latex moustache" didn't lead me to \overbrace – Paul Nov 3 '14 at 21:30
1  
@Paul: Your comment will help the next person. – Neil G Mar 4 '15 at 11:33
up vote 21 down vote accepted

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

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.