Put a Table/Figure/Equation at the right position
Just add h after begin tag. As simple as it is. H here means
Place the float here, i.e., at the same point it occurs in the source text.
begin{table}[h] center begin{tabular}{|l|l|} hline multicolumn{2}{|c|}{Schedule of This Week} hline Monday & SigNEW Tuesday & Artificial Intelligence, Compiler Wednesday & Research Meeting Thursday & Artificial Intelligence, Compiler Friday & Research hline end{tabular} caption{Complex Table} label{tab:complex} end{table} |
Here are two good resources 1 and 2.
<pre><code> String foo = "bar"; </code></pre>