Waste less time on Facebook — follow Brilliant.
×

How to enclose final answers into box in latex?

Please tell! (the title is self sufficient)

Note by Kushagraa Aggarwal
3 years, 11 months ago

No vote yet
1 vote

Comments

Sort by:

Top Newest

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 }}+\). Ryan Soedjak · 3 years, 11 months ago

Log in to reply

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

Eg: \( \displaystyle \fbox{Brilliant is awesome.} \) Pranav Arora · 3 years, 11 months ago

Log in to reply

@Pranav Arora thanks Kushagraa Aggarwal · 3 years, 11 months ago

Log in to reply

×

Problem Loading...

Note Loading...

Set Loading...