Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

I feel the first column in my longtable is too wide. Please see the figure below alt text

My code is:

\begin{center}  
\begin{longtable}{|c|c|c|c|c|c|}  
\caption{Error rates for SVM and 100 random counts. \label{tab:2}}\\  
\hline  
\backslashbox{Concepts}{Train sizes} & 10 & 100 & 1000 & 10000 & 100000\\  
\hline  
1 & 0.49 (0.00) & 0.49 (0.00) & 0.47 (0.00) & 0.43 (0.00) & 0.33 (0.00)\\  
\hline  
\end{longtable}  
\end{center}  

I wonder if there is some way to reduce the width of the first column?

Thanks and regards!


EDIT:

As Hugo suggested, I tried to specify the width for the first column.

\begin{longtable}{|p{50pt}|c|c|c|c|c|}  

But it appears messed up

alt text

share|improve this question
1  
I don't find the width of the first column too bad. If you start trying to narrow it, the text is going to be pushed close to the diagonal line. –  Charles Stewart Apr 22 '10 at 6:51
add comment

migrated from stackoverflow.com Aug 1 '11 at 5:20

This question came from our site for professional and enthusiast programmers.

2 Answers

up vote 3 down vote accepted

Try

\backslashbox{Concepts\kern-1em}{\kern-1em Train sizes}

or

\backslashbox{Concepts\kern-2em}{\kern-2em Train sizes}

or

\backslashbox{Concepts\kern-3em}{\kern-3em Train sizes}
share|improve this answer
add comment

Did you tried to set the size of the first column like this:

\begin{longtable}{|p{50pt}|c|c|c|c|c|}

Have never worked with this \backslashbox. But this is the way you normally resize the columns in a longtable. Maybe it works..

EDIT: Or another try:

\backslashbox[2cm]..
share|improve this answer
    
Thanks, Hugo! As you suggested, I tried to specify the width for the first column. But it appears messed up. –  Tim Apr 21 '10 at 23:20
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.