Graphics, Figures & Tablesltx table error

Information and discussion about graphics, figures & tables in LaTeX documents.
Post Reply
frnz65
Posts: 2
Joined: Sun Aug 01, 2010 9:32 am

ltx table error

Post by frnz65 »

Hi, I am using ltxtable to build a long table.
In the main file I have this line:

\LTXtable{\textwidth}{reviewtable.tex}

and the reviewtable.tex file looks like this:

\newcolumntype{Y}{>{\small\raggedright\arraybackslash}X}
\renewcommand{\arraystretch}{1.5}
\noindent
\begin{longtable}{|X|X|X|}
\caption{Summary of the literature review}
\hline
Reference & Description &Key points \\
\hline
\cite{W:1963p603} & some text & some text \\
\hline
\cite{W:1963p603} & some text & some text \\
\hline
\label{default}
\end{longtable}

I get the following list of errors:

Underfull \hbox (badness 10000) in paragraph at lines 66--67

[3] (/usr/local/texlive/2007/texmf-dist/tex/latex/base/omscmr.fd)
(./reviewtable.tex
! Misplaced \noalign.
\hline ->\noalign
{\ifnum 0=`}\fi \penalty \@M \futurelet \@let@token \LT@@h...
l.8 \hline

?
! Misplaced \omit.
\multispan ->\omit
\@multispan
l.9

?
! Extra alignment tab has been changed to \cr.
<template> \endtemplate

l.9

?
! Misplaced \noalign.
\hline ->\noalign
{\ifnum 0=`}\fi \penalty \@M \futurelet \@let@token \LT@@h...
l.13 \hline


etc.....


some suggestions?

Thanks,
Francesco
Last edited by frnz65 on Mon Aug 02, 2010 10:08 am, 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.

sommerfee
Posts: 503
Joined: Mon Apr 09, 2007 4:20 pm

ltx table error

Post by sommerfee »

Change

Code: Select all

\caption{Summary of the literature review}
to

Code: Select all

\caption{Summary of the literature review}\\
frnz65
Posts: 2
Joined: Sun Aug 01, 2010 9:32 am

Re: ltx table error

Post by frnz65 »

Thanks!!!
it works

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

ltx table error

Post by localghost »

As it is clearly written in the Board Rules, topics with a solved problem have to be marked accordingly by the OP.


Best regards
Thorsten
Post Reply