1

How can I make the spacing of the x, y and z columns the same size. The code follows below. It also follows a picture of how it is.

Thank you for the help.

\begin{table}[!h]
\caption{Nível e dimensões das \emph{boxes} de refinamento utilizadas neste trabalho.}
\begin{center}
\begin{tabular}{c|c|c|c}
\hline
\multirow{2}{*}{Nível de Refinamento} & \multicolumn{3}{c}{Dimensões da \emph{Box} de Refinamento {[}m{]}} \\ \cline{2-4} 
                                      & x                  & y                  & z                  \\ \hline
5                                     & 1,000              & 1,000              & 2,500              \\ \hline
6                                     & 0,750              & 0,750              & 1,250              \\ \hline
7                                     & 0,500              & 0,500              & 0,625              \\ \hline
\end{tabular}
\end{center}
\label{tabrefinamento}
\legend{Fonte: Próprio Autor.}
\end{table}

enter image description here

F. Pantigny
  • 40,250
Sílvio
  • 73

1 Answers1

2

Here are three different versions of your table:

enter image description here

\documentclass{Article}
\usepackage{multirow}
\usepackage{makecell}
\usepackage{array}
\usepackage{booktabs}
\begin{document}

\begin{table}[!h] \caption{Nível e dimensões das \emph{boxes} de refinamento utilizadas neste trabalho.} \begin{center} \begin{tabular}{c{3}{|wc{1.75cm}}} \hline \multirow{2}{}{Nível de Refinamento} & \multicolumn{3}{c}{Dimensões da \emph{Box} de Refinamento {[}m{]}} \ \cline{2-4} & x & y & z \ \hline 5 & 1,000 & 1,000 & 2,500 \ \hline 6 & 0,750 & 0,750 & 1,250 \ \hline 7 & 0,500 & 0,500 & 0,625 \ \hline \end{tabular} \end{center} \label{tabrefinamento}

\end{table}

\begin{table}[!h] \caption{Nível e dimensões das \emph{boxes} de refinamento utilizadas neste trabalho.} \begin{center} \begin{tabular}{c|c|c|c} \hline \multirow{2}{*}{\makecell{Nível de\ Refinamento}} & \multicolumn{3}{c}{\makecell{Dimensões da \emph{Box}\ de Refinamento {[}m{]}}} \ \cline{2-4} & x & y & z \ \hline 5 & 1,000 & 1,000 & 2,500 \ \hline 6 & 0,750 & 0,750 & 1,250 \ \hline 7 & 0,500 & 0,500 & 0,625 \ \hline \end{tabular} \end{center} \label{tabrefinamento}

\end{table}

\begin{table}[!h] \caption{Nível e dimensões das \emph{boxes} de refinamento utilizadas neste trabalho.} \begin{center} \begin{tabular}{cccc} \toprule \makecell{Nível de\ Refinamento} & \multicolumn{3}{c}{\makecell{Dimensões da \emph{Box}\ de Refinamento {[}m{]}}} \ \cmidrule{2-4} & x & y & z \ \midrule 5 & 1,000 & 1,000 & 2,500 \ 6 & 0,750 & 0,750 & 1,250 \ 7 & 0,500 & 0,500 & 0,625 \ \midrule \end{tabular} \end{center} \label{tabrefinamento}

\end{table}

\end{document}

leandriis
  • 62,593