Graphics, Figures & TablesLarge Gap Before Table

Information and discussion about graphics, figures & tables in LaTeX documents.
Post Reply
zzchess
Posts: 2
Joined: Tue Aug 18, 2020 10:56 am

Large Gap Before Table

Post by zzchess »

Hi,
I've just starting learning Latex. Would somebody be so kind as to please explain to me why there is such a large gap between the last line of text and the table? I hope this post is acceptable and in the correct forum. If not, please let me know.

Code: Select all

\documentclass{article}

\title{M1 - Use of SI Units}
\author{Zane Allford}
\date{\today}
\usepackage{enumitem}
\usepackage{booktabs}
\usepackage[table,xcdraw]{xcolor}

\begin{document}
	\maketitle
	\section*{Specification Links}
\textbf{Unit 1 Topic 1 - Basic Physics}


(a) the 6 essential base SI units (kg, m, s, A, mol, K)


(b) representing units in terms of the 6 base SI units and their prefixes


(c) checking equations for homogeneity using units

	\section*{Introduction}

The units in bold are used in AS physics, so you should be familiar with them.

\begin{table}[]
	\centering
	\begin{tabular}{@{}ll@{}}
		\toprule
		Quantity    & Basic S.I. Unit \\ \midrule
		mass        & kilogram (kg)   \\
		length      & metre (m)       \\
		time        & second (s)      \\
		current     & ampere (A)      \\
		temperature & kelvin (K)      \\ \bottomrule
	\end{tabular}
\end{table}

\end{document}
Last edited by cgnieder on Sun Aug 23, 2020 8:06 pm, edited 1 time in total.

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

zzchess
Posts: 2
Joined: Tue Aug 18, 2020 10:56 am

Large Gap Before Table

Post by zzchess »

I believe I have solved this now. I needed to specify where the table goes via \begin{table}[h!]
Last edited by cgnieder on Sun Aug 23, 2020 8:07 pm, edited 1 time in total.
Post Reply