# LaTeX fails... and fixes!

I thought it might be a good idea to brush up my LaTeX skills by writing my maths homework in it… big mistake… lots of time wasted! I’m much more informed on LaTeX now, so here’s some of the things I struggled with in the hopes it will help future me from spending hours figuring out how to put multiple tables on one line!

## Referencing figures and tables

You must put the label after the caption in a figure or table:

## Multiple tables on a single line

Use the subcaption package, this allows you to specify the width of subtables and subfigures.

## Specify the location of tables

[specifier] takes one of the following {h,t,b,p}

• h - Here
• t - Top
• b - Bottom
• p - Own page

These can be combined like hbp, close to the place in the text on it’s own separate page at the bottom

## Spacing and measures

• \quad - space
• \linewidth - width of page, use this with the subtable environment when you’re setting the width of a subtable.