7
votes
1answer
1k views

Wrapping text inside framebox

I would like to wrap the text inside a \framebox, such that it continues on the next line instead of running out of the margins. A minimum working example: \documentclass[]{report} \begin{document} ...
3
votes
2answers
860 views

Framebox with long paragraph and line break

I want to make a border to a paragraph, so I use \framebox to do it. But I have a problem that my paragraph is so long, I can't insert a line break and my paragraph cross the frame. ...
3
votes
1answer
693 views

How to set frame size in a listing

I'm trying to put a frame around my code, but the frame has the wrong dimension. How can I set them right? ...
6
votes
2answers
971 views

In listings, lines that are broken (option breaklines enabled) cause frame to be drawn badly. How do you fix this?

I have an lstlisting which has breaklines and frame enabled. The actual setting is as follows. \lstset{ basicstyle=\ttfamily, showstringspaces=false, breaklines=true, keywordstyle={}, ...
6
votes
3answers
2k views

How can one prevent \fbox from running off the page?

I am using the \fbox command to box a large chunk of text: \fbox{Four score and seven years ago our fathers brought forth on this continent, a new nation, conceived in Liberty, and dedicated to the ...
5
votes
5answers
12k views

How can I insert a newline in a framebox?

I have several frameboxes in my document, using the following command: \framebox(115,115){ R-Sq: \newline For example} I want to force a new line, but neither \newline or \\ appear to work. Is ...