Hey guys,
Not sure if this should have gone in 'General' forum or not, feel free to move it if needed.
I'm trying to get a box to go around multiple lines (and actually multiple pages) of text, however within the text is a table (and possibly figures in the future).
The 'framed' package works perfectly if I take the table out, but doesn't work with the table in.
I subsequently noticed in the comments of framed.sty that it tables are on the to-do list.
Anyone got a solution for this? I can't think I'm the first. I've tried Google and searching here, but always end up with recommendations for 'framed'
Cheers,
Ben.
Text Formatting ⇒ Box around text including table
NEW: TikZ book now 40% off at Amazon.com for a short time.

- localghost
- Site Moderator
- Posts: 9202
- Joined: Fri Feb 02, 2007 12:06 pm
Box around text including table
At the moment floats and footnotes don't work inside the environments from the framed package. At least for figures and tables there is workaround in form of the \captionof command provided by the caption package. It allows to attach captions outside float environments as usual but the figures and tables won't float anymore. Thus you have to consider at the beginning where you want to place them.
Best egards
Thorsten
Best egards
Thorsten
How to make a "Minimal Example"
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10
Re: Box around text including table
Hi,
Thanks for your advice. I'm having a look at the documentation for the caption package, but not sure how to make it do what I need. Can you give me an example if possible?
Cheers,
Ben.
Thanks for your advice. I'm having a look at the documentation for the caption package, but not sure how to make it do what I need. Can you give me an example if possible?
Cheers,
Ben.
- localghost
- Site Moderator
- Posts: 9202
- Joined: Fri Feb 02, 2007 12:06 pm
Re: Box around text including table
The manual explains the command in detail. Just take the time for careful reading.
How to make a "Minimal Example"
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10