How can I draw the following table in LaTeX?
I tried this code, but it was not so good:
\documentclass[12pt]{article}
\usepackage[utf8]{inputenc}
\usepackage{geometry}
\geometry{a4paper,left=3.5cm,right=3.5cm,top=3cm,bottom=3cm}
\begin{document}
\begin{table}[h!]
\caption{A complex example for handling tables.}
\centering
Coefficients of friction\\
\begin{tabular}{||c|l|l|c|l||}
\hline\hline \multicolumn{2}{||c|} { Static friction } & & \multicolumn{2}{|c||} { Sliding friction } \\
\cline { 1 - 5} dry and clean & lubricated & & dry and clean & lubricated \\
\hline \hline $0.15$ & $0.111$ & steel on steel & $0.14$ & $0.001$ \\
$0.19$ & $0.1$ & steel on iron & $0.18$ & $0.001$ \\
\hline\hline
\end{tabular}
\label{tab:my_label}
\end{table}
\end{document}
Best Answer
I'd like to propose you choose a layout that's quite different from the screenshot shown in your query. While that layout features a certain hierarchy of objects, the multitude of line styles give it a rather busy and cluttered, even baroque, "look", with the material in the table's header looking quite cramped -- uncomfortably so, in fact.
I would like to propose using a less cluttered look, one which invites your readers to linger a while and actually study and absorb the table's contents.