I am trying to use overbrace in a beamer presentation (compiled on Overleaf). But overbrace is giving this unexpected result:

enter image description here

Notice that the text is being shown below everything, instead of above the brace. My code is:



Any ideas on what can be happening?

Here is a full code reproducible example, error is in slide 2.


  \setbeamertemplate{navigation symbols}{}
  \setbeamertemplate{footline}[frame number]



\title[Your Short Title]{my title}




  • 3
    $\overbrace{3}^{student}$ ?
    – Zarko
    Feb 11, 2020 at 22:32
  • yes, that is it. I did not notice. Please add as an answer. Feb 12, 2020 at 2:47

1 Answer 1


You looking for $\overbrace{3}^{student}$ (see ^)

Command \overbrace{...} put only brace over 3, position of index (label) is determined by ^˙ (for above brace) or-for below of3`.

Similarly is with command \underbrace{3}_{test}, which put brace below 3 and test below braces, or \underbrace{3}^{test}, which put brace below 3 and test above it.

Shortly, those commands have sense in the following form:


You must log in to answer this question.

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