tags:

views:

64

answers:

2

Hi I'm using LateX. I have a block of text that I'd like to have a small box like space highlighting the are (just like a \begin{equation} but for text).

Is there such a thing in LateX?

+1  A: 

Is \makebox what you're looking for? There are some examples at http://www.artofproblemsolving.com/Wiki/index.php/LaTeX:Layout#Boxes

David Gelhar
It's actually parbox[] that was shown in your article. Is there something similar to parbox but also creates a border with the box?
Carlo del Mundo
(Not my article, just something I found on the web.) To create a border, maybe \framebox is what you want. To put the text inside, you might need to use a minipage, as John Wordsworth said.
David Gelhar
+1  A: 

I'm not 100% sure what you're asking I'm afraid, but if you just want to indent text with a margin on each side of the page to make it stand out, you can use...

\begin{quotation} Quotation is good for long blocks of text that you want highlighted \end{quotation}

\begin{quote} Quote is suited to a single block of quoted text. \end{quote}

If you actually want to have a physical black box around the text, you might want to consider wrapping it in a tabular / table, or you might want to delve into minipages and/or par box environments...

John Wordsworth