12

How do I draw a box around a formula in MathJax?

I've seen \boxed{} recommended for LaTeX in general, but MathJax doesn't support that operation. Is there an alternative that does the trick?

warbaker
  • 307
  • 3
  • 9

1 Answers1

10

\boxed is in the AMSmath extension, so if you put "TeX/AMSmath.js" in the extensions array of your configuration, you will be able to use the \boxed{} macro. Alternatively, try \fbox{}.

Davide Cervone
  • 11,211
  • 1
  • 28
  • 48