I'm having trouble getting my figures and tables in the proper order. They seem to be in the document in a seemingly random manner. Here is the code I am using:
\documentclass[12pt]{article}
\usepackage{fullpage}
\usepackage{graphicx}
\begin{document}
...
\appendix
\section*{Appendix A: Figures and Tables}
\begin{figure}[h!]
\centering
\caption{Relationship Between GDP per Capita and Mean Tariff Rates}
\includegraphics[width=0.7\linewidth]{gdpscatter}
\label{fig:gdpscatter}
\end{figure}
\begin{figure}[h!]
\centering
\caption[]{Low Income Countries Mean Tariff Rates}
\label{fig:lowinchist}
\includegraphics[width=0.7\linewidth]{lowinchist}
\end{figure}
\begin{figure}[h!]
\centering
\caption[]{High Income Countries Mean Tariff Rates}
\label{fig:upinchist}
\includegraphics[width=0.7\linewidth]{upinchist}
\end{figure}
\begin{table}[htbp]\centering
\def\sym#1{\ifmmode^{#1}\else\(^{#1}\)\fi}
\caption{Results\label{tab1}}
\begin{tabular}{l*{3}{c}}
\hline\hline
&\multicolumn{1}{c}{(1)}&\multicolumn{1}{c}{(2)}&\multicolumn{1}{c}{(3)}\\
&\multicolumn{1}{c}{LN GDP Per Cap}&\multicolumn{1}{c}{LN GDP Per Cap}&\multicolumn{1}{c}{LN GDP Per Cap}\\
\hline
Tariff& 0.662\sym{***}& 0.260\sym{***}& 0.232\sym{***}\\
& (0.0250) & (0.0234) & (0.0227) \\
[1em]
Propright& & 0.276\sym{***}& 0.182\sym{***}\\
& & (0.0179) & (0.0220) \\
[1em]
Govtcon& & -0.162\sym{***}& -0.135\sym{***}\\
& & (0.0104) & (0.0101) \\
[1em]
Forex& & 0.0754\sym{***}& 0.0702\sym{***}\\
& &(0.00611) &(0.00586) \\
[1em]
Moneygrowth & & 0.0344\sym{*} & 0.00939 \\
& & (0.0145) & (0.0144) \\
[1em]
Bribes& & 0.120\sym{***}& 0.269\sym{***}\\
& & (0.0177) & (0.0228) \\
[1em]
Constant & 2.999\sym{***}& 4.368\sym{***}& 4.010\sym{***}\\
& (0.206) & (0.220) & (0.238) \\
Fixed Effects & No & No & Yes\\
\hline
Observations & 2033 & 1753 & 1753 \\
\hline\hline
\multicolumn{4}{l}{\footnotesize Standard errors in parentheses}\\
\multicolumn{4}{l}{\footnotesize \sym{*} \(p<0.05\), \sym{**} \(p<0.01\), \sym{***} \(p<0.001\)}\\
\end{tabular}
\end{table}
\begin{table}[htbp]\centering
\def\sym#1{\ifmmode^{#1}\else\(^{#1}\)\fi}
\caption{Results by Country Income Level\label{tab2}}
\begin{tabular}{l*{4}{c}}
\hline\hline
&\multicolumn{1}{c}{(Low)}&\multicolumn{1}{c}{(Low-Middle)}&\multicolumn{1}{c}{(Upper-Middle)}&\multicolumn{1}{c}{(Upper)}\\
&\multicolumn{1}{c}{LN GDP Per Cap}&\multicolumn{1}{c}{LN GDP Per Cap}&\multicolumn{1}{c}{LN GDP Per Cap}&\multicolumn{1}{c}{LN GDP Per Cap}\\
\hline
Tariff& 0.110\sym{***}& 0.0652\sym{**} & 0.00176 & -0.0184 \\
& (0.0299) & (0.0203) & (0.0180) & (0.0375) \\
[1em]
Propright& 0.0397 & 0.0297 & 0.0375 & 0.193\sym{***}\\
& (0.0291) & (0.0229) & (0.0192) & (0.0232) \\
[1em]
Govtcon& 0.0237 & 0.00742 & -0.0250\sym{*} & -0.0365\sym{***}\\
& (0.0155) & (0.0107) &(0.00980) &(0.00801) \\
[1em]
Forex& -0.00707 &-0.000292 & 0.0203\sym{***}& -0.0135 \\
&(0.00682) &(0.00502) &(0.00499) & (0.0109) \\
[1em]
Moneygrowth & 0.0184 & -0.0248 & -0.0221 & 0.0119 \\
& (0.0149) & (0.0135) & (0.0122) & (0.0199) \\
[1em]
Bribes& -0.0184 & 0.162\sym{***}& -0.00570 & 0.0747\sym{***}\\
& (0.0312) & (0.0244) & (0.0227) & (0.0208) \\
[1em]
Constant & 5.431\sym{***}& 6.282\sym{***}& 8.758\sym{***}& 8.307\sym{***}\\
& (0.323) & (0.240) & (0.201) & (0.367) \\
\hline
Observations & 297 & 457 & 416 & 583 \\
\hline\hline
\multicolumn{5}{l}{\footnotesize Standard errors in parentheses}\\
\multicolumn{5}{l}{\footnotesize \sym{*} \(p<0.05\), \sym{**} \(p<0.01\), \sym{***} \(p<0.001\)}\\
\end{tabular}
\end{table}
\end{document}
However, in the document itself, it shows the first two figures, then the tables, and then the final figure. I want it to go all figures and then all tables. I tried making it two seperate appendices, but that just created more formatting issues (at the end of Figure 3, on the same page, it would begin Appendix B, but then there was a lot of awkward white space since the table wouldn't fit and I couldn't get rid of it to save my life).
article
document class, by default, imposes a limit (3
, given by the countertotalnumber
, of which only2
are allowed to be top-aligned) of how many floats of typefigure
andtable
are allowed to be on any given page. Have you tried (a) increasing the values of the counter variables (via\setcounter{topnumber}[8}
and\setcounter{totalnumber}{10}
) and (b) inserting a\clearpage
instruction between the groups offigure
andtable
environments?