Graphics, Figures & TablesTable wont compile

Information and discussion about graphics, figures & tables in LaTeX documents.
Post Reply
kotoko
Posts: 12
Joined: Sat Jan 09, 2010 8:33 pm

Table wont compile

Post by kotoko »

Hello!

I've run into some trouble with a table.

What happens is I've made a table in a separate file. If I "input" it into a simple tex file everything works fine but if I "input" into my report I get

Code: Select all

(./chapters/estadoDaArte/tab_comparacaoCasoEstudo.tex [14]
! Extra }, or forgotten \endgroup.
\color@endbox ->\egroup 
                        
l.30 \end{table}
                
? h
I've deleted a group-closing symbol because it seems to be
spurious, as in `$x}$'. But perhaps the } is legitimate and
you forgot something else, as in `\hbox{$x}'. In such cases
the way to recover is to insert both the forgotten and the
deleted material, e.g., by typing `I$}'.

?
The project for the report has a lot of files and I'm a bit new to LaTeX so I can't post here the whole thing because it's too big.

I'm unsure were to look for the bug.
Attachments
smallExample.zip
Small example that works
(3.14 KiB) Downloaded 145 times

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

gmedina
Posts: 2313
Joined: Wed Jul 11, 2007 11:45 pm

Re: Table wont compile

Post by gmedina »

Hi,

the error message gives useful information: the problem comes from the file

./chapters/estadoDaArte/tab_comparacaoCasoEstudo.tex

and the culprit is (seemingly) a superfluous closing brace, at (or near) line 30 of that file, somewhere inside a table environment. Try to build a small file with that table; if the problem persists in that small file and you cannot detect the reason, then post it here and we'll try to provide help.
1,1,2,3,5,8,13,21,34,55,89,144,233,...
kotoko
Posts: 12
Joined: Sat Jan 09, 2010 8:33 pm

Re: Table wont compile

Post by kotoko »

Thank you for the quick reply.

I have searched for the a superfluous } but found nothing. If it was indeed that the cause the file wouldn't compile even without the table or the another file with the exact same table wouldn't compile. And it's not the case.

I have finally managed to reduce the project enough to post. Here it goes.
Attachments
minduino_reduzido 3.zip
reduced version of report
(182.73 KiB) Downloaded 140 times
User avatar
gmedina
Posts: 2313
Joined: Wed Jul 11, 2007 11:45 pm

Table wont compile

Post by gmedina »

I've managed to detect the problem: there's some incompatibility between the files rotating.sty and my_thesis.sty; the following simple example will produce an error similar to the one that you are getting:

Code: Select all

\documentclass{book}
\usepackage{estilos/my_thesis} %DAL Thesis Style
\usepackage{rotating}

\begin{document}

\begin{table}[!ht]
  \centering
  \rule{4cm}{2cm}% to simulate an actual table
\end{table}

\end{document}
One possible solution would be to delete (or to comment out) the line

Code: Select all

\usepackage{rotating}
that loads the rotating package, but obviously then you won't be able to use any of the commands provided by that package.

If, however, you really need to use the rotating package together with the file my_thesis.sty, then, for the moment I cannot provide more help, since I don't have time to search and fix the incompatibility.
1,1,2,3,5,8,13,21,34,55,89,144,233,...
Post Reply