Tell me more ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

I am having issues inputting a table generated by excel2latex into my primary document.

I have called up packages bookends. And here is the code copied directly from excel2latex (in excel 2010 on a PC):

\begin{table}[htbp]  
  \centering  
  \caption{Add caption}  
    \begin{tabular}{rrrr}  
    \toprule  
    Group & Mean1 & Mean2 & Difference \\  
    \midrule  
    Men   & 2.6   & 3.6   & 1.0 \\  
    Women & 6.7   & 8.9   & 2.2 \\  
    \bottomrule  
    \end{tabular}%  
  \label{tab:junk}%  
\end{table}%  

With this code consistently I get the following 3 errors:

Too many }'s \end{table}  
\begin{document} ended by \end{table}. \end{table}  
Extra \endgroup \end{table}  

However, I can't seem to find any of these errors in the actual code.
I can't seem to get past these errors when the code is directly in the document or when input from a different file (as in \input{table_junk}).
Does anyone have any suggestions?

share|improve this question
Correction, I'm using the package booktabs. – marr Feb 19 at 21:01
You can edit your question to add that – leo Feb 19 at 22:07
My suggestion would be to narrow down the problem via a minimal working example (MWE). – Werner Feb 20 at 1:56

Know someone who can answer? Share a link to this question via email, Google+, Twitter, or Facebook.

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.