Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Caption in longtable

Tags:

latex

I find that the caption in my longtable takes two lines but it seems that it can fit in one line. See the figure below: alt text

My code is:

\begin{longtable}{|c|c|c|c||c|c|c|}  
\caption{Testing error for training size 100000 and 8000 random counts}\\  
\hline  
\multicolumn{2}{|c|}{Concept} & \multicolumn{2}{c||}{Negative Class} & \multicolumn{2}{c|}{Positive Class} & Error rate \\  
\hline  
...  
\end{longtable}

How to make the caption fit into a single line?


EDIT:

Thank, Geoff. But I tried "\usepackage{fullpage}" as you suggested, the whole content in the pdf file is messed up.

As you can see, there is still lot of space on the left of the caption. If the caption can be moved to the left, it will fit into a single line.

like image 684
Tim Avatar asked Apr 21 '10 19:04

Tim


1 Answers

You can do this:

\LTcapwidth=\textwidth

\begin{longtable}
like image 113
xl42ii Avatar answered Sep 18 '22 15:09

xl42ii