Graphics, Figures & TablesTable lines don't show up

Information and discussion about graphics, figures & tables in LaTeX documents.
Post Reply
sds
Posts: 6
Joined: Sun Nov 14, 2010 6:36 pm

Table lines don't show up

Post by sds »

Hi All, I have a problem about Table bounding lines. After compiling, my table only has contents, no bounding lines. and the \hline command does not work. I am pretty sure it is the problem of my template, but I have no idea where the problem is and how it fix it. It has spent me 2 days on this problem and no progress. The table code works with other template. Due to some reason, I need to use the current template. The template is attached, and the table code can be found below. Any help is highly appreciated.

Thank you very much!

Code: Select all

\begin{table}
  \caption{Benchmarks Characteristics.}\label{tab:2benchs}
  \centering
  \begin{tabular}{|c|c|c|c|}\hline\hline
    Bench & \# of gates & \# of & \# of Total \\
          &             & FFs   & standard cells \\ \hline\hline
    tv    &  6,802      & 359   & 7,161 \\ \hline
    mem   &  10,357     & 1,083 & 11,440 \\ \hline
  \end{tabular}
\end{table}

Edit by localghost: No support per e-mail, thus no e-mail addresses in posts (see Board Rules).
Attachments
thesis_cls.cls
(16.17 KiB) Downloaded 120 times
Last edited by sds on Sun Nov 14, 2010 11:43 pm, edited 1 time in total.

Recommended reading 2024:

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

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

localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

Table lines don't show up

Post by localghost »

The special class is definitely the culprit. Usually the width of these lines (array rules) are determined by the length \arrayrulewidth and this is not defined in the LaTeX kernel. So this must be done in a class file. But the used class doesn't do that (which makes it not recommendable for use). The class file misses also to define some other very important lengths related to tables and arrays. Add the following lines (copied from the standard »article« class) to your preamble for the most important settings.

Code: Select all

\makeatletter
\setlength\arraycolsep{5\p@}
\setlength\tabcolsep{6\p@}
\setlength\arrayrulewidth{.4\p@}
\setlength\doublerulesep{2\p@}
\makeatother
Since the class file is not built on top of one of the standard classes, these lengths are all missing. This also concerns others lengths and you might run into to further problems later on. I suggest to contact the class maintainer and tell him about his severe mistakes.


Best regards and welcome to the board
Thorsten
sds
Posts: 6
Joined: Sun Nov 14, 2010 6:36 pm

Re: Table lines don't show up

Post by sds »

The problem has be solved. I also checked the green check-mark. Just want to deliver my deep gratitude to localghost. Thank you very much for your info.
Post Reply