0

can anyone help me coding a table like that one, please? I already have this, but I also wanted to center the first two columns text.

\begin{tabular}{|c|c|c|c|}\hline
Atividade &Precedência &\multicolumn{2}{|c|}{Duração}\\ \hline 
&&Média&Desvio padrão\\ \hline
\end{tabular}

enter image description here

1

With the help of \multirow and \cline:

enter image description here

\documentclass{article}
\usepackage{multirow}

\begin{document}

\begin{tabular}{|c|c|c|c|}\hline
\multirow{2}{*}{Atividade} & \multirow{2}{*}{Precedência} &\multicolumn{2}{|c|}{Duração}\\ \cline{3-4} 
&&Média&Desvio padrão\\ \hline
\end{tabular}

\end{document}
| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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