I have referred the previous answers to solve hbox badness. However, I have got even more confused and I am not able to understand my mistake. Here is my code:
\documentclass[12pt,oneside]{report}
\usepackage{booktabs}
\usepackage{float}
\usepackage{multirow}
\begin{document}
\begin{table}[H]
\caption{Contact details for $2D$ model in ABAQUS}
\begin{tabular}{l l l l}
\toprule
\multicolumn{2}{c}{Tangential Contact} & \multicolumn{2}{c}{Normal Contact}\\
\midrule
Friction formulation & Penalty & Pressure-overclosure & `Hard' contact\\
Friction coefficient & $1$ & Constraint enforcement method & Penalty (standard)\\
Shear Stress limit & $\SI{80}{\kilo\pascal}$ & Allow separation after contact & Yes\\
\bottomrule
\end{tabular}
\label{table:2.1}
\end{table}
\end{document}
However, this is not desirable. Here are the concerns/problems 1. Underfull hbox badness 10000- I think that Latex is not creating white space in the first row after each of the two words. 2. 1st two and last two columns need to have same width to appeal aesthetically. Also the text must wrap around.
I have read about \parbox, tabularx package, creating new command with \ragggedright. But at the end, I am confused as to how to use them. Can anybody help me out here please? In short, I am not understanding how TABLES work. Can anybody give a short term and long term solution to this. Thanks.
Underfull hbox badness 10000
message from your example; and it doesn't compile becausesiunitx
is missing. I only getOverfull \hbox (60.7209pt too wide)
which is because the table is too wide. Please, make a real example showing the issue.\include{chapterfile}
by the chapter (with most text removed) until you have the smallest file that you can make that demonstrates your problem. then post that.