I very new to Latex, so apologies in advance if this question is simple. I've been using commands in Stata that automatically create latex-code for statistical regression tables. I've been able to figure out everything except for two things: centering the captions, and fixing Stata's automatic table numbers.
According to what I've read, captions should be automatically centered in the middle of the table, but mine are skewed left (they look as if they are centering on only the first three columns, but I'm using six). I've tried using
\centering
but to no avail. Also, the Stata command has made it so that the table is automatically labelled "table 1" before the caption heading. That's fine, but I want to change the number and can't seem to find where in the code I can do that. My syntax is below; thanks in advance. Code: Select all
\documentclass{article}
\begin{document}
\begin{table}[htbp]\centering
\def\sym#1{\ifmmode^{#1}\else\(^{#1}\)\fi}
\caption{Logistic Regression Tables\label{tab1}}
\begin{tabular}{l*{6}{c}}
\hline\hline \\
[1em]
&\multicolumn{1}{c}{(1)}&\multicolumn{1}{c}{(2)}&\multicolumn{1}{c}{(3)}&\multicolumn{1}{c}{(4)}&\multicolumn{1}{c}{(5)}&\multicolumn{1}{c}{(6)}\\
&\multicolumn{1}{c}{}&\multicolumn{1}{c}{}&\multicolumn{1}{c}{}&\multicolumn{1}{c}{}&\multicolumn{1}{c}{}&\multicolumn{1}{c}{}\\
\hline \\
[1em]
....Table-specific data below this point.