Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to box a formula in MathJax?

Tags:

latex

mathjax

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?

like image 971
warbaker Avatar asked Mar 03 '11 18:03

warbaker


People also ask

How do you write MathJax formulas?

For inline formulas, enclose the formula in $ … $ . For displayed formulas, use $$ … $$ .

How do I put an equation in markdown?

To insert in-line math use the $ symbol within a Markdown cell. For example, the text $this_{is}^{inline}$ will produce: t h i s i s i n l i n e .

How do you put a box around math in LaTeX?

\boxed{Answer} produces a box around your answer.


1 Answers

\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{}.

like image 113
Davide Cervone Avatar answered Sep 20 '22 15:09

Davide Cervone