[OS X TeX] Table Formatting Issues

KHALID NADIRI khalid.nadiri at gmail.com
Mon Dec 6 02:36:17 EST 2010


Hey everyone,

I'm having trouble getting the right formatting in the following tables, as well as other issues.  Does anyone have any suggestions to fixing the following problems?

1. How do I make my table captions aligned to the left margin? justification=raggedright isn't working for me.

2. How do I move Table 1 to the top of the page?

3. How do I align Table 1 and its source note?

4. When I use \autoref or \ref to reference the tables below, I receive '??' instead of the label reference.  Any ideas as to what may be causing this?

5. For some strange reason, the colors of my footnotes are red, but I haven't (to my knowledge) adjusted its default format.  Any reasons for this?

6. Also, why, in general, do figures and tables not respond to \pagebreak?

Thanks so much in advance for any help or suggestions.

Best Regards,

Khalid

-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

\documentclass[11pt,letterpaper]{article}
\usepackage{hyperref}
\usepackage[all]{hypcap}
\usepackage{setspace}
\usepackage{array}
\usepackage{tabulary}
\usepackage{geometry}
\usepackage{enumitem}
\usepackage[T1]{fontenc}
\usepackage{amssymb}
\usepackage{tabularx}
\usepackage[justification=\textwidth, format=hang, skip=0.5cm, labelsep=colon, font=large, font=bf]{caption}
\usepackage{graphicx}
\usepackage{rotating}
\usepackage{amsmath}


\hypersetup{
  colorlinks = true,
  citecolor = blue,
}

\begin{document}


%*********TABLES & FIGURES*********


\begin{table}
\caption{Filler Filler Filler Filler Filler Filler Filler Filler Filler Filler Filler Filler Filler Filler Filler Filler Filler Filler }
\label{tab:Table 1}
\noindent\makebox[\textwidth]{%
\setlength{\extrarowheight}{5.5pt}
\begin{tabularx}{1.3\textwidth}{lXXXX}
\textbf{Filler} & \textbf{Filler} & \textbf{Filler} & \textbf{Filler} \\
\hline
Filler Filler Filler  & 17,223 & 5,957 & 23,180 \\
Filler Filler Filler  & 16,914 & 5,651 & 22,565 \\
Filler Filler Filler  & 16,502 & 5,736 & 22,238 \\
Filler Filler Filler  & 16,263 & 5,866 & 22,129 \\
Filler Filler Filler  & 27,555 & 22,670 & 50,255 \\
Filler Filler Filler  & 26,603 & 23,528 & 50,131\\
Filler Filler Filler  & 10,410 & 28,409 & 28,819 \\
Filler Filler Filler  & 1,057 & 14,216 & 15,273 \\
Filler Filler Filler  & \$284MM & \$419MM & \$703MM \\
Filler Filler Filler  (\$) & \$27,281 & \$14,749 & \$24,394 \\
Filler Filler Filler  & \$268,685 & \$29,474 & \$46,029 \\
\hline\hline
\end{tabularx}
}
Source: Filler Filler Filler .
\end{table}
\pagebreak
\clearpage

%%%%%%%%%

\begin{table}
\caption{Filler Filler Filler Filler Filler Filler Filler Filler Filler Filler Filler Filler Filler Filler Filler Filler Filler Filler }
\label{tab:Table 2}
\noindent\makebox[\textwidth]{%
\setlength{\extrarowheight}{5.5pt}
\begin{tabularx}{1.3\textwidth}{lXXXX}
\hline
 & (1) & (2) & (3) & (4) \\
Dependent Variable: & $inc_{p,t}$ & $inc_{p,t}$ & $inc_{p,t}$ & $inc_{p,t}$ \\ \hline
Filler  \$10,000s & 0.601*** & 0.554*** & 0.613*** & 0.564*** \\
 & (0.00379) & (0.00359) & (0.00415) & (0.00387) \\
 Filler & No & Yes & No & Yes \\
 Filler & No & No & Yes & Yes \\
Observations & 13,255 & 13,255 & 13,255 & 13,255 \\
 R-squared & 0.660 & 0.831 & 0.699 & 0.856 \\
\hline\hline
\multicolumn{5}{c}{ Robust standard errors in parentheses} \\
\multicolumn{5}{c}{ *** p$<$0.01, ** p$<$0.05, * p$<$0.1} \\

\end{tabularx}
}
\end{table}

\end{document}




More information about the MacOSX-TeX mailing list