Graphics, Figures & TablesWarnings using ctable

Information and discussion about graphics, figures & tables in LaTeX documents.
Post Reply
kit_neel
Posts: 3
Joined: Tue Sep 09, 2008 4:01 pm

Warnings using ctable

Post by kit_neel »

Hi. I'm trying to use ctable to get footnotes to be under the table, rather than at the bottom of the page. It looks great, but give me an error I'd like to get rid of. Here is my code for the table (at line 33 of my tex file):

Code: Select all

\ctable[
cap = Particle sizes for ceramic particles,
caption = Particle sizes for ceramic particles,
label = tab:particles,
]{lccr}{
\tnote[a]{As reported by ATK, using blah blah blah.}
\tnote[b]{ATK did not take data blah blah blah.}
}{ \hline \hline
Material   & Nominal Size & Avg. actual size   & Size range\tmark[a] \\
\hline
stuff      & 1 ($\mu$m)   & 6 ($\mu$m)         & 2-24 ($\mu$m)       \\
stuff      & 10           & 8                  & 3-16                \\
stuff      & 100          & 109                & 55-178              \\
ZrC        & 10           & --\tmark[b]        & --\tmark[b]         \\
\hline \hline }
This code makes a beautifully typset table, but gives me a warning:
Package array Warning: Column X is already defined on input line 33.

Any help? Every time I use ctable, it makes more of these warning, and since I have a lot of tables, I'd like to minimize the unimportant warnings so that I know when I get an important warning.

thanks,

Kit

Recommended reading 2024:

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

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

kit_neel
Posts: 3
Joined: Tue Sep 09, 2008 4:01 pm

Re: Warnings using ctable

Post by kit_neel »

I just caught a mistake above and in the thread title. it doesn't give me an error- it only gives me a warning.

Also, I use texniccenter to write my tex, and it has a handly little project tree that shows the structure of your project. When I use ctable instead of table, the tables don't show up in the directory tree anymore, which makes it more difficult to find them in a big file (like a dissertation). Is there a workaround for this?

thanks again,
Kit
User avatar
localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

Warnings using ctable

Post by localghost »

kit_neel wrote:I just caught a mistake above and in the thread title. it doesn't give me an error- it only gives me a warning. […]
You can edit your intial post and change the title. But now I have done that for you.
kit_neel wrote:[…] Also, I use texniccenter to write my tex, and it has a handly little project tree that shows the structure of your project. When I use ctable instead of table, the tables don't show up in the directory tree anymore, which makes it more difficult to find them in a big file (like a dissertation). Is there a workaround for this? […]
I tried your code with some modifications regarding the line breaks in the table itself. See Section 2 and 3 of the ctable manual for correct usage and examples. But I didn't manage to get rid of these warnings. I must admit that I'm not very familiar with this package. An alternative (also for the TeXnicCenter issue) could be the threeparttable package.


Best regards
Thorsten¹
kit_neel
Posts: 3
Joined: Tue Sep 09, 2008 4:01 pm

Re: Warnings using ctable

Post by kit_neel »

thanks.
User avatar
localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

Warnings using ctable

Post by localghost »

kit_neel wrote:[…] I tried to use threeparttable, but since the package does not come with Miktex I couldn't figure out how to use package manager to install it. […]
Of cause this package is incorporated into the MiKTeX distribution. Open a command prompt and find out where it is located.

Code: Select all

kpsewhich threeparttable.sty
The package is part of the ltxmisc bundle, which can be found in the package manager.
kit_neel wrote:[…] I tried several things, including placing the threeparttable.sty file in my working directory, but even though I have \usepackage{threeparttable} in my preamble, it says there is an undefined control sequence. […]
Build a minimal working example (MWE) that produces exactly the error message you got. Just modify your former sample code.
Post Reply