Graphics, Figures & Tablesfloat table at the top of the page

Information and discussion about graphics, figures & tables in LaTeX documents.
Post Reply
alfabre
Posts: 3
Joined: Tue Nov 16, 2010 10:37 pm

float table at the top of the page

Post by alfabre »

Hi,

I have a short question. I made a table for my glossary. The last table is really short and I would like to get this table at the top of my page. I do not managed.
Here is what I have written:

\begin{table}[!t]
\center
\begin{tabular}{p{3cm} p{11cm}}

\bf{Symbol} & \bf{Meaning} \\
& \\
\hline
& \\
$\lambda$ & Insulation conductivity\\
$\Phi$ & Power of the heat losses through the pipe and toward the ground\\
$\rho$ & Water density\\
$\xi$ & Pressure drop coefficient\\
\end{tabular}
\label{tab:Glossary_C28}
\end{table}

I get the table in the middle of the page and I would prefer to get it at the top.
Somebody could help me?
Thanks a lot

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

buster
Posts: 19
Joined: Thu Mar 04, 2010 5:49 pm

Re: float table at the top of the page

Post by buster »

i have the same issue using figures when they are the only thing to appear on a page. using or not using \cleardouble page, if there is only one figure on the page and no other text, it places it at the centre not the top. tried changing to [!th] but that didn't work. couldn't find an answer via google either.
fwiw my code is below although to me it seems more a question of how to do something rather than error (but then i don't really know much about latex!)

\begin{figure}[!htb]
\centering
\includegraphics[width=0.8\textwidth]{images/chap04/text}
\caption{text}
\label{text}
\end{figure}

\cleardoublepage
User avatar
localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

float table at the top of the page

Post by localghost »

See the TeX FAQ for a solution [1]. This will affect all float pages.

[1] TeX Frequently Asked Questions — Vertical layout of float pages


Thorsten
buster
Posts: 19
Joined: Thu Mar 04, 2010 5:49 pm

Re: float table at the top of the page

Post by buster »

works for me, thanks very much for the link.
Post Reply