# [texhax] Positioning of tables

Eduardo M KALINOWSKI eduardo at kalinowski.com.br
Wed May 28 19:13:23 CEST 2008

Afshartous, David escreveu:
> All,
>
> I have a latex paper with several sections within an appendix.
> The first section is a series of tables, each started as follows:
>
> \begin{table}[h]
> \begin{tabular}
>
> The next section is some computer code, started as follows:
>
> \newpage
> \section{Computer Code}
>
>
> Unfortunately, when I compile the document, the computer code gets mixed in
> with the tables, i.e., some of the tables appear after the computer code.
> I've also tried to insert the [h] with \begin{tabular}[h], but this doesn't
> seem to help either.
>
> Any suggestions much appreciated.
>

You can substitutute "\newpage" with "\clearpage". This will output all
pending tables and start a new page for the Computer Code section.