This is a very basic question, but I cant find the answer to this question.... I would like to create a box that looks like:
___________________
|hello1 |
|hello2 |
|hello3 |
|__________________|
I have tried the fbox command in Latex. However I only get the text on one line and not several.
Also, if you append \noindent before \fbox , i.e.
\documentclass{article}
\begin{document}
\noindent \fbox{\parbox{\textwidth}{%
hello1\\
hello2\\
hello3
}}
\end{document}
you can prevent indentation of the box.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With