Graphics, Figures & TablesAssociating tables with items in lists

Information and discussion about graphics, figures & tables in LaTeX documents.
Post Reply
aoeu
Posts: 2
Joined: Mon Jan 15, 2024 9:58 pm

Associating tables with items in lists

Post by aoeu »

I'm trying to write my math homework in LaTeX. I have problems (ex. Exercise 3.1) and then subproblems (a, b, c, d), so I'm using {description} and {enumerate} to create the problems and subproblems.

Some of the subproblems require tables to be created, but I can't figure out how to cleanly associate a table with a subproblem, just like the sentences are. Attached are pictures showing what I have so far.

I've included \usepackage{float} , \usepackage[singlelinecheck=false]{caption}, and \restylefloat{table} in the preamble based on other forum comments/replies, but they haven't worked exactly like I'd like them to.
Attachments
HW 3 tex screenshot.png
HW 3 tex screenshot.png (16.83 KiB) Viewed 19596 times
HW 3 pdf screenshot.png
HW 3 pdf screenshot.png (73.29 KiB) Viewed 19596 times

Recommended reading 2024:

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

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

Stefan Kottwitz
Site Admin
Posts: 10348
Joined: Mon Mar 10, 2008 9:44 pm

Associating tables with items in lists

Post by Stefan Kottwitz »

Welcome to the forum!

Don't use a table environment here, because that's for floating (moving) environments with captions. Just use the tabular environment.

Stefan
LaTeX.org admin
aoeu
Posts: 2
Joined: Mon Jan 15, 2024 9:58 pm

Associating tables with items in lists

Post by aoeu »

Stefan Kottwitz wrote:Welcome to the forum!

Don't use a table environment here, because that's for floating (moving) environments with captions. Just use the tabular environment.

Stefan
Worked perfectly. Thanks!
Post Reply