I want to draw a table like the attached with LaTeX. I'm using the table
and tabular
environmnet. My problem is how I can represent the line which goes from the begining to the end of the table at the bottom of the figure. My idea is draw a line with \multicolumn{6}{|c|}{...}
but I can't obtain it, because the height is too long.
Any idea? I hope I have explained my problem plainly.
If I use the solution that @egreg says I have another problem. I need colour some cells of another tables, so I use the code \usepackage[table]{xcolor}
but it does the line shorter. The code is something like this:
\documentclass{article}
\usepackage{amsmath,array}
\usepackage[table][hiperref]{xcolor} % Need for colour cells
\providecommand{\textsubscript}[1]{$_\textnormal{#1}$}
\begin{document}
\setlength{\extrarowheight}{2pt}
\begin{tabular}{|*6{c|}}
\multicolumn{1}{c}{1 bit} &
\multicolumn{1}{c}{2 bits} &
\multicolumn{1}{c}{1 bit} &
\multicolumn{1}{c}{4 bits} &
\multicolumn{1}{c}{4 bits} &
\multicolumn{1}{c}{4 bits} \\
\hline
VALIDEZ & DIVERSIFICACI\'ON &
TAMA\~NO & KDC\textsubscript{AUTH/ENC} &
KDC\textsubscript{KEK} & KDC\textsubscript{MAC} \\
\hline
\multicolumn{6}{@{}c@{}}{\vrule height 2pt depth 2pt \hrulefill \vrule height 2pt depth 2pt} \\
\multicolumn{6}{c}{2 bytes}
\end{tabular}
\end{document}