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 }}+\).

## Comments

Sort by:

TopNewestThere 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 }}+\).

Log in to reply

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

Eg: \( \displaystyle \fbox{Brilliant is awesome.} \)

Log in to reply

thanks

Log in to reply