[Tex/LaTex] threeparttable unrecognized command

threeparttablethreeparttablex

I have the following packages:

\usepackage{amsmath}
\usepackage{amssymb}
\usepackage{textcomp}
\usepackage{graphicx}
\usepackage{setspace}
\usepackage{booktabs}
\usepackage{threeparttable}
\usepackage{miscdoc}
\usepackage{pdflscape}
\usepackage{makeidx}
\usepackage{multirow}
\usepackage{multicol}
\usepackage{longtable}

And I have three tables like this one:

\begin{table}[htbp]
  \centering
  \begin{threeparttable}
  \caption{ML Estimates pre ethanol boom period}
    \begin{tabular}{lrrrrrr}
    \toprule
          & \multicolumn{1}{c}{$\lambda_{1}$ CP} & \multicolumn{1}{c}{$\lambda_{2} $ CP} & \multicolumn{1}{c}{$\lambda_{1} $ EP} & \multicolumn{1}{c}{$\lambda_{2} $ EP} & \multicolumn{1}{c}{$\lambda_{1} $ OP} & \multicolumn{1}{c}{$\lambda_{2} $ OP} \\
    \midrule
    Estimate & 0.5515** & 0.1946 & 0.7614** & 0.1208 & 0.7325** & 0.1528 \\
    Std Error & 0.1494 & 0.0695 & 0.1593 & 0.0573 & 0.1196 & 0.0486 \\
    T-Stat & 3.6906 & 2.7995 & 4.7782 & 2.1098 & 6.1242 & 3.1425 \\
    \bottomrule
    \end{tabular}%
  \begin{tablenotes}
                \small
    \begin{enumerate}
    \item Double asterisks (**) represent significance at the 5\% level. 
    \item  Maximized Log-Likelihood =     1071.1
    \item $\delta_{1}=0.9409 (0.1014)$ and  $\delta_{2}=0.0125 (0.0132)$  
    \item $df=8.86$

   \end{enumerate}
    \end{tablenotes} 

The \begin{tablenotes} and \end{tablenotes} it says unrecognized command and it compiles but is marked as an error and doesn't let me change between pages. Can someone help me please

Best Answer

Don't use enumerate inside tablenotes.

\documentclass{article}
\usepackage{booktabs}
\usepackage{threeparttable}
\begin{document}
  \begin{table}[htbp]
  \centering
  \begin{threeparttable}
  \caption{ML Estimates pre ethanol boom period}
    \begin{tabular}{lrrrrrr}
    \toprule
          & \multicolumn{1}{c}{$\lambda_{1}$ CP} & \multicolumn{1}{c}{$\lambda_{2} $ CP} & \multicolumn{1}{c}{$\lambda_{1} $ EP} & \multicolumn{1}{c}{$\lambda_{2} $ EP} & \multicolumn{1}{c}{$\lambda_{1} $ OP} & \multicolumn{1}{c}{$\lambda_{2} $ OP} \\
    \midrule
    Estimate & 0.5515** & 0.1946 & 0.7614** & 0.1208 & 0.7325** & 0.1528 \\
    Std Error & 0.1494 & 0.0695 & 0.1593 & 0.0573 & 0.1196 & 0.0486 \\
    T-Stat & 3.6906 & 2.7995 & 4.7782 & 2.1098 & 6.1242 & 3.1425 \\
    \bottomrule
    \end{tabular}%
  \begin{tablenotes}[flushleft]
    \item[1] Double asterisks (**) represent significance at the 5\% level.
    \item[2]  Maximized Log-Likelihood =     1071.1
    \item[3] $\delta_{1}=0.9409 (0.1014)$ and  $\delta_{2}=0.0125 (0.0132)$
    \item[4] $df=8.86$
    \end{tablenotes}
    \end{threeparttable}
    \end{table}
\end{document}

enter image description here