I'd like to accomplish the following:
Ut convallis libero in -------------------
urna ultrices accumsan. | |
Donec sed odio eros. | "an important |
Donec viverra mi quis | quote that de- |
quam pulvinar at | serves to be |
malesuada arcu rhoncus. | highlighted" |
Cum sociis natoque | ---sourcename |
| |
penatibus et magnis | |
dis parturient montes, -------------------
nascetur ridiculus mus. In rutrum accumsan
ultricies. Mauris vitae nisi at sem facilisis
semper ac in est.
So a quote-box, pull-quote or fact box (whatever you'd call it) that highlights a quote within a colored box, sticks to the right- or left-margin of the page and makes the text flow around it. I've searched around and found some topics that were a bit similar ( Block quote with big quotation marks and How do you create pull quotes? for instance), but not exactly. As you find this kind of style often within books, I was wondering if an existing package exist that does this for you.
Best Answer
This is easily accomplished using the
wrapfig
package if you're willing to specify the "number of lines" occupied by the block-quote. Here's a small example using dummy text created bylipsum
:Read the
wrapfig
documentation for more information on the environment specification forwrapfigure
.Note that this will be problematic if the block-quote spans beyond the page boundary.