[texhax] Problem with column width

Kenneth Cabrera krcabrer at une.net.co
Tue May 22 16:26:18 CEST 2007


Dr. Krishnan:

Thank you for your help.

I'm attaching the files.

Kenneth
On Mon, 21 May 2007 20:19:59 -0500, E. Krishnan <ekmath at asianetindia.com>  
wrote:

> On Sun, 20 May 2007, Kenneth Cabrera wrote:
>
>> Hi TeX users:
>>
>> Why do I obtain a table with the last column wider than the rest?
>
> The reason is that the multicolumn entry is too long and this length is
> not evenly divided among the spanned columns. Please see the attached  
> file
> for a solution. I've also included code for a slightly beautified version
> using multirow.
>
>

\documentclass{article}
\usepackage[spanish]{babel}
\usepackage[latin1]{inputenc}
\usepackage{graphicx}
\usepackage{amsmath,amssymb,latexsym,amsthm}
\usepackage{fancyvrb}
\usepackage[margin=2cm]{geometry}

\setlength{\parindent}{0pt}
\setlength{\parskip}{1.5ex plus 0.5ex minus 0.2ex}

\begin{document}

  \begin{table}[ht]
  \begin{center}
  \caption{Tabla X}\label{tb}
  \vspace{2ex}
   \begin{tabular}{ccccccc}
    \hline
    \multicolumn{3}{c}{} & \multicolumn{4}{c}{Número de viajes diarios en  
la ruta} \\
    \cline{4-7}
    Tipo     & Capacidad   & Número             &    &   &   &   \\
    de avión & (pasajeros) & de aviones         &  1 & 2 & 3 & 4 \\
    \hline
    1        & 50          & 5                  & 3  & 2 & 2 & 1 \\
    2        & 30          & 8                  & 4  & 3 & 3 & 2 \\
    3        & 20          & 10                 & 5  & 5 & 4 & 2 \\
    \hline
    \multicolumn{3}{l}{Número de clientes diarios} & 1000 & 2000 & 900 &  
1200 \\
    \hline
   \end{tabular}
  \end{center}
  \end{table}


\end{document}



-- 
Kenneth Roy Cabrera Torres
Cel 315 504 9339
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ensayo1.tex
Type: application/x-tex
Size: 1025 bytes
Desc: not available
Url : http://tug.org/pipermail/texhax/attachments/20070522/476acd16/attachment.tex 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ensayo1.pdf
Type: application/pdf
Size: 7735 bytes
Desc: not available
Url : http://tug.org/pipermail/texhax/attachments/20070522/476acd16/attachment.pdf 


More information about the texhax mailing list