Graphics, Figures & Tablesctable error

Information and discussion about graphics, figures & tables in LaTeX documents.
Post Reply
merve
Posts: 2
Joined: Wed May 26, 2010 9:47 pm

ctable error

Post by merve »

Hi,
I need footnotes for my tables so I decided to use the ctable package but I can't even run the example I copied from the web.This is the error I get. I think ctable is not compatible with caption but I dont even use caption package...
! LaTeX Error: Option clash for package caption.

See the LaTeX m(./ctable.aux)
(/usr/local/texlive/2008/texmf-dist/tex/context/base/supp-pdf.tex
[Loading MPS to PDF converter (version 2006.09.02).]
)

Package caption Warning: \caption will not be redefined since it's already
(caption) redefined by a document class or package which is
(caption) unknown to the caption package.
See the caption package documentation for explanation.

(/usr/local/texlive/2008/texmf-dist/tex/latex/amsfonts/umsa.fd)
(/usr/local/texlive/2008/texmf-dist/tex/latex/amsfonts/umsb.fd)
(/usr/local/texlive/2008/texmf-dist/tex/latex/base/ulasy.fd)
Runaway argument?
{ caption = {Example with a specified width of 100mm}, label = width,\ETC.
! Paragraph ended before \XKV@setkeys was complete.
<to be read again>
I could not find out what is the problem and would appreciate any help. Here is my code

Code: Select all

\documentclass{article}
\usepackage{graphicx, fullpage, amsmath, amsfonts, latexsym, amsthm, amssymb, ctable}

\usepackage[compatibility=true]{caption} 

%\usepackage[margin=1.25in]{geometry}
%\usepackage{graphicx,ctable,booktabs}


%\usepackage{setspace} bu neymis ogren

%you can reference this table with \ref{demos1}

\begin{document}
\title{}
\author{}
\date{}
\maketitle



\ctable[ caption = {Example with a specified width of 100mm},
                label = width,
                width= 100mm,
                 pos =h,
                 left
                 
]{c>{\raggedright}Xc>{\raggedright}X}{ \tnote{footnotes are placed under the table}
}{                  \FL
\multicolumn{4}{c}{Example using tabularx}	\ML 
\multicolumn{2}{c}{Multicolumn entry!} & THREE & FOUR	  \NN
\cmidrule(r){1-2}\cmidrule(rl){3-3}\cmidrule(l){4-4}
 one&

The width of this column depends table.\tmark &
three& Column four will act in the same wa column two, with the same width. \LL
}

\end{document}

Recommended reading 2024:

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

Learn LaTeX easily with newest books:

The LaTeX Beginner's Guide: 2nd edition and perfect for students writing a thesis

The LaTeX Cookbook: 2nd edition full of practical examples for mathematics, physics, chemistry, and more

LaTeX Graphics with TikZ: the first book about TikZ for perfect drawings in your LaTeX thesis

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

ctable error

Post by gmedina »

Hi

simply delete some superfluous blank lines from your code (I also delete some lines not relevant to this particular example; don't forget those lines in your actual code):

Code: Select all

\documentclass{article}
\usepackage{graphicx, fullpage, amsmath, amsfonts, latexsym, amsthm, amssymb, ctable}

\usepackage[compatibility=true]{caption} 

\begin{document}

\ctable[
  caption = {Example with a specified width of 100mm},
  label = width,
  width= 100mm,
  pos =h,
  left
]
{c>{\raggedright}Xc>{\raggedright}X}{ \tnote{footnotes are placed under the table}
}{                  \FL
\multicolumn{4}{c}{Example using tabularx}   \ML 
\multicolumn{2}{c}{Multicolumn entry!} & THREE & FOUR     \NN
\cmidrule(r){1-2}\cmidrule(rl){3-3}\cmidrule(l){4-4}
one&
The width of this column depends table.\tmark &
three& Column four will act in the same wa column two, with the same width. \LL
}

\end{document}
1,1,2,3,5,8,13,21,34,55,89,144,233,...
merve
Posts: 2
Joined: Wed May 26, 2010 9:47 pm

Re: ctable error

Post by merve »

Thank you very much!

It still gives the same eror and does not produce the pdf at the first try, but it gives it on second time. I'm fine with it:)))

Merve
User avatar
svend_tveskaeg
Posts: 478
Joined: Sun Jul 12, 2009 5:31 am

ctable error

Post by svend_tveskaeg »

I need footnotes for my tables
I would suggest using the threeparttablex package by Lars Madsen.
``In the game of chess, you can never let your adversary see your pieces.''
-- Zapp Brannigan, Futurama (season 1, episode 4)
Post Reply