Text FormattingBox around text including table

Information and discussion about LaTeX's general text formatting features (e.g. bold, italic, enumerations, ...)
Post Reply
bgeorge
Posts: 7
Joined: Thu Oct 29, 2009 2:13 pm

Box around text including table

Post by bgeorge »

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.

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p

localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

Box around text including table

Post by localghost »

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
bgeorge
Posts: 7
Joined: Thu Oct 29, 2009 2:13 pm

Re: Box around text including table

Post by bgeorge »

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.
User avatar
localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

Re: Box around text including table

Post by localghost »

The manual explains the command in detail. Just take the time for careful reading.
Post Reply