General ⇒ Table keeps appearing bottom of page
Table keeps appearing bottom of page
Can you please help me. Every time i create a simple table it keeps appearing at the bottom of the page i really dont know why.
This is my complete latex coding:
\documentclass[openany,a4paper,10pt]{book}
\usepackage{times,a4wide}
\usepackage{graphicx}
\usepackage{amssymb}
\usepackage{epstopdf}
\DeclareGraphicsRule{.tif}{png}{.png}{`convert #1 `dirname #1`/`basename #1 .tif`.png}
\usepackage[round]{natbib}
\title{My Project Report}
\author{James Allen\\Supervisor: Dr R Kibble}
\date{\today} % Activate to display a given date or no date
% Activate to display a given date or no date
\begin{document}
\maketitle
\def\thepage{\arabic{page}}
\tableofcontents
\listoftables
\chapter{Introduction}
\begin{table}
\begin{center}
\begin{tabular}{ | l | l | }
\hline
Test No & \\ \hline
Input & \\ \hline
Result & \\ \hline
Conclusion & \\
\hline
\end{tabular}
\caption{Test 2}
\label{tb:Test 2}
\end{center}
\end{table}
Learn LaTeX easily with newest books:
The LaTeX Beginner's Guide: 2nd edition and perfect for students writing a thesis
The LaTeX Cookbook: 2nd edition full of practical examples for mathematics, physics, chemistry, and more
LaTeX Graphics with TikZ: the first book about TikZ for perfect drawings in your LaTeX thesis
Re: Table keeps appearing bottom of page
\usepackage{float} - this was required as a package
[H] - this was required beside the table to indicate the position.
Table keeps appearing bottom of page
Code: Select all
\documentclass[openany,a4paper,10pt]{book}
%obsolete packages (read l2tabu document)
\usepackage{times,a4wide}
%%%%%%%%%%%%
\usepackage{graphicx}
\usepackage{amssymb}
\usepackage{epstopdf}
%use it at your own risk
\DeclareGraphicsRule{.tif}{png}{.png}{`convert #1 `dirname #1`/`basename #1 .tif`.png}
%%%%%%%%%%%%%%
\usepackage[round]{natbib}
\title{My Project Report}
\author{James Allen\\Supervisor: Dr R Kibble}
\date{\today} % Activate to display a given date or no date
% Activate to display a given date or no date
\begin{document}
\maketitle
\def\thepage{\arabic{page}}
%I would suggest
\renewcommand{\thepage}{\arabic{page}}
\tableofcontents
\listoftables
\chapter{Introduction}
\begin{table}[!ht]
\centering
\begin{tabular}{|l|l|}
\hline
Test No & \\ \hline
Input & \\ \hline
Result & \\ \hline
Conclusion & \\
\hline
\end{tabular}
\caption{Test 2}
\label{tb:Test 2}
\end{table}
\end{document}
2) Read the l2tabu document.