I have a pretty typical format I follow for tables due to restrictions imposed by professors. While we are not required to use LaTeX it makes my life easier in terms of formatting and so on. However, due to the table format we must follow I am unable to use captions in my tables because I have struggled with a way to try and move them to the correct location. This in turn forces me to keep track of table numbers and all the annoying things that LaTeX tracks for us. I've included the format and what I used to create it below.
\begin{table}[H]
\centering
\setlength{\arrayrulewidth}{2pt}
\begin{tabular}{cccccc}
\multicolumn{5}{l}{\textbf{Table 3} Main Effects and Interactions}\\
\hline\\
\underline{Combination} & \underline{$\sum\Delta T^{+}$} & \underline{$\sum\Delta T^{-}$} & \underline{Contrast} & \underline{Main Effect (E)} & \underline{Absolute Effect $|E|$}\\[0.25cm]
A & 251.03& 376.99& -125.96& -10.49 & 10.49\\[0.125cm]
B & 372.03& 255.99& 116.04& 9.67 & 9.67\\[0.125cm]
AB & 305.82& 322.2& -16.38& -1.365 & 1.365\\[0.125cm]
C & 274.89& 353.13& -78.24& -6.52 & 6.52\\[0.125cm]
AC & 324.9& 303.12& 21.78& 1.815 & 1.815\\[0.125cm]
BC & 337.3& 290.72& 46.58& 3.88 & 3.88\\[0.125cm]
ABC & 306.09& 321.93& -15.84& -1.32 & 1.32\\[0.125cm]
\hline
\end{tabular}
\label{tab:effects}
\end{table}
I wanted to see if anyone knew of a way that I could position the table number and caption in the way that I have in the image so that I don't have to manually keep track of the numbers myself. I've tried things like defining the caption above the tabular environment and left justifying it but it hasn't worked. I don't necessarily agree with the positioning requirement but it effects our grade so I don't have much of a choice. Any help would be greatly appreciated.
\documentclass
, include all relevant\usepackage
commands, end with\end{document}
and compile without errors, even if it does not produce your desired output. That way other users can just cut an paste your entire MWE as a starting point..