I know I'm doing something dumb here but I can't figure it out.
I am creating a .tex file with a header:
%% XXXXXXXXXXXXXX created this file.
\documentclass[english]{article}
\usepackage{avant}
\usepackage[T1]{fontenc}
\usepackage{geometry}
\geometry{verbose,tmargin=2cm,bmargin=2cm,lmargin=2cm,rmargin=2cm,headheight=1cm,headsep=1cm,footskip=1cm}
\usepackage{fancyhdr}
\pagestyle{fancy}
\usepackage{color}
\usepackage{babel}
\usepackage{array}
\usepackage{float}
\usepackage{graphicx}
\usepackage{parskip}
\usepackage[bookmarks=true,bookmarksnumbered=false,bookmarksopen=false,
breaklinks=false,pdfborder={0 0 1},backref=false,colorlinks=false]
{hyperref}
\hypersetup{pdftitle={XXXXXX},
pdfauthor={Autogenerated by XXXXXX}}
\providecommand{\tabularnewline}{\\}
\usepackage{color}
\lhead{XXXXXX}
\begin{document}
Then a number of sections:
\section{\textsf{Section Name}}
Each containing several tables and graphs:
\begin{tabular}{|l|r|r|r|r|r|}
\hline
& 1 Month & 3 Month & 6 Month & Average & Total\tabularnewline
\hline
World&-12.6867&-14.984&-19.1529&-15.9345&-95.6071\tabularnewline
\hline
Data Title&-12.6867&-14.984&-19.1529&-15.9345&-95.6071\tabularnewline
\hline
\end{tabular}
\newline
\vspace*{.25 cm}
\newline
\begin{figure}[h!]
\centering
\includegraphics[scale=.8]{MyGraph}
\caption{World}
\end{figure}
\begin{figure}[h!]
\centering
\includegraphics[scale=.8]{World}
\caption{World}
\end{figure}
Each section is far larger than a page, but before each section I have a
\newpage
For simple (ie very few sections / tables / graphs) the rendering to pdf via xelatex is often perfect. However once the document gets larger the tables are always in order but the graphs are all over the place - almost randomly.
I know I'm doing (or not doing) something really dumb here. I just want everything to appear in the order I write it.
Can anyone offer any assistance please?