Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

I was wondering how to create several rows in a box using the fbox command in latex

Tags:

latex

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.

like image 283
user603105 Avatar asked Feb 04 '11 12:02

user603105


1 Answers

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.

like image 55
pebox11 Avatar answered Oct 13 '22 20:10

pebox11