I'm aware of the question and of the replies about borders around a textblock from the textpos package. This works but produces "very square" boxes...

I was wondering if there was a way to make those boxes more fancy with, for example with round borders, non rectangular shape (I was thinking about cartoon bubbles), or to add a title, itself in a fancy box, in one step.

I tried to play with tikz but I didn't manage to have a common coordinate system for the tikz and for the textpos and, moreover, as the height of the textblock is variable, I'm not sure to be able to draw the border properly around the textblock.

  • 3
    Packages mdframed and tcolorbox, very easy to use, the second one being my personal favorite, both highly configurable and with breaking-box-feature (both use TikZ in the background, actually) – user31729 Dec 30 '16 at 13:04

The OP's question leaves wide latitude, so I opted to make a fancy frame using those clipart frame corners you can find on the web. Once you have downloaded such a frame, which I called corner_299-282.png, use my macro


One additional parameter is \frameprop, which is the proportion of the content's width/height minimum to make the frame.

Here is the MWE. During the early part of the page, \frameprop is set to .45 (i.e., 45%). The first row shows the raw frame. The second row shows it applied to square content, but changing the offset-factor from 0 to .2. The 3rd row shows it applied to rectangular content, also varying the offset-factor. The last row shows it applied to a text \parbox, with the offset at .35 and \frameprop revised to .6 (60%).

EDITED to allow <content> to contain multi-paragraphs.

{\centering\scshape A LIMERICK\par}
The lemmings get set for their race.\\
With one step and two steps they pace.\\
\mbox{\quad}They take three and four,\\
\mbox{\quad}And then head on for more, \\
Without checking the limiting case.}}

enter image description here

Frame source: https://clipartfest.com/download/ANd9GcQdC6b9yPnapPFI-eBCKms0V65w7f9k4VOELXG0JSNKUetQmU2pzq-cFLQ.html

Limerick source: https://www.physics.harvard.edu/academics/undergrad/limericks

Note: \cframes can be nested:

enter image description here

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.