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 have this MWE:

\documentclass{article}
\usepackage{multirow}
\begin{document}
    \begin{table}[here]
        \begin{center}
            \begin{tabular}{|l|l|c|}
            \hline 
            \multicolumn{2}{|c|}{\textbf{SED}} & \multirow{2}{*}{\textbf{\% compressione}} \\
            \cline{1-2}
            \textbf{MC} & \textbf{DP} & \\ 
            \hline 
            \hline
            0.00016032 & 0.0001750267 & 10\%\\
            \hline
            \end{tabular} 
        \end{center}
    \end{table}
\end{document}

It realizes this image: enter image description here The first two columns are correctly formatted to the left, but I want that just MC and DP will be centered, how can I do that?

share|improve this question
    
I suggest you read the documentation of the package booktabs, see CTAN: tug.ctan.org/pkg/booktabs –  Sveinung May 8 '12 at 17:42
add comment

1 Answer

Like you did it with the "SED": with \multicolumn:

\multicolumn{1}{|c|}{\textbf{MC}}
share|improve this answer
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.