×

How to enclose final answers into box in latex?

Please tell! (the title is self sufficient)

Note by Kushagraa Aggarwal
3 years, 2 months ago

Sort by:

There are two types of boxes that I know of: $$\verb+\boxed{}+$$ and $$\verb+\fbox{}+$$. $$\verb+\boxed{}+$$ is for if you want to box anything with $$\LaTeX$$ commands $\text{e.g. }\verb+\boxed{ \dfrac{x\sqrt5}2 }+\text{ gives }\boxed{\dfrac{x\sqrt5}2}.$

$$\verb+\fbox{}+$$ is for boxing text $\text{e.g. }\verb+\fbox{ hello, world }+\text{ gives }\fbox{hello, world}.$

Note that $$\verb+\fbox{ X }+$$ behaves like $$\verb+\boxed{\text{ X }}+$$. · 3 years, 1 month ago

Using the command \fbox{}. Write the text in curly braces.

Eg: $$\displaystyle \fbox{Brilliant is awesome.}$$ · 3 years, 2 months ago