[Tex/LaTex] Design of a table from an article tables In an article I met this table. How can one design such a table? Best Answer Here's a solution that uses the dcolumn package to align the numbers on the decimal markers. \documentclass{article} \usepackage{dcolumn,booktabs} \newcolumntype{d}[1]{D..{#1}} \newcommand\mc[1]{\multicolumn{1}{c}{#1}} % handy shortcut macro \begin{document} \begin{table} \centering \begin{tabular}{ l *{4}{d{4.5}} } \toprule & \multicolumn{2}{c}{A} & \multicolumn{2}{c}{B}\\ \cmidrule(lr){2-3} \cmidrule(l){4-5} & \mc{Weight (lbs.)} & \mc{Weight (lbs.)} & \mc{Price} & \mc{Price} \\ \midrule Mileage & -108.4^{***} & -91.22^{***} & & \\ & (-11.60) & (-10.34) & & \\ \addlinespace Car type & & & & \\ & & & & \\ \addlinespace Weight (lbs.) & & & 1.747^{***} & 3.465^{***}\\ & & & (2.72) & (5.49) \\ \addlinespace Constant & 5328.8^{***} & & & \\ & (25.85) & & & \\ \midrule Observations & \mc{74} & \mc{74} & \mc{74} & \mc{74} \\ \bottomrule \multicolumn{5}{l}{\footnotesize $t$ statistics in parentheses}\\ \multicolumn{5}{l}{\footnotesize ${}^{*}\ p<0.05$, \dots}\\ \end{tabular} \end{table} \end{document} Related Solutions[Tex/LaTex] How to design multi-row and multi-column tables in latex Does that help ? \documentclass{article} \usepackage{booktabs} \usepackage{multirow} \begin{document} \begin{table} \centering \begin{tabular}{c|ccc|ccc} \toprule \multirow{2}{*}{two rows} & \multicolumn{3}{|c|}{three columns} & \multicolumn{3}{|c|}{three other columns} \\ \cline{2-7} & column 1 & column 2 & column 3 & column 4 & column 5 & column 6 \\ \midrule \midrule line 1 & \multicolumn{2}{c}{columns 1 and 2} & then 3 & then 4 & \multicolumn{2}{|c}{then 5 and 6 with vert bar} \\ \midrule line 2 & \multirow{2}{*}{2 rows' cell} & lorem & ipsum & & & \\ line 3 & & lorem & ipsum & & & \\ \bottomrule \end{tabular} \caption{Example of what you can do...} \end{table} \end{document} As @leandriis says, The code in your question seems to be only loosely related to the image. Might be helpful to be more precise in what you want to achieve. Related Question
Best Answer
Here's a solution that uses the
dcolumn
package to align the numbers on the decimal markers.