I was wondering why I am unable to see table caption using
\minipage
command: apparently right-side table caption overlaps left-side table caption but I do not understand why. Can someone help me? I leave the Latex code I wrote.Code: Select all
Code, edit and compile here:
\newcolumntype{x}[1]{>{\centering\arraybackslash\hspace{0pt}}p{#1}}\newcolumntype{?}{!{\vrule width 1pt}}\begin{table}[H]\tiny\begin{minipage}[b]{0.4\textwidth}\centering\begin{tabular}{?x{26mm}?x{20mm}?}\Xhline{2.5\arrayrulewidth}\textbf{Ingredient} & \textbf{WT. Percent} \\ \Xhline{2.5\arrayrulewidth}R-45M (1\% A02246) & 13.83 \\ \hlineIPDI & 0.86 \\ \hlineHX-752 & 0.30 \\ \hlineTPB & 0.01 \\ \hline\textit{Mg} & 22.00 \\ \hlineAP & 62.80 \\ \hline\textit{Fe$_{\,2}$O$_{\,3}$} & 0.20 \\ \Xhline{2.5\arrayrulewidth}\end{tabular}\captionof{table}{\textit{Mg} composition}\label{tab: neutralized composition}\end{minipage}%\hspace{7mm}\begin{minipage}[b]{0.4\textwidth}\centering\begin{tabular}{?x{15mm}?x{35mm}?x{22mm}?}\Xhline{2.5\arrayrulewidth}\rule{0pt}{14pt}\shortstack{\textbf{Exhaust} \\ \textbf{Products}} & \shortstack{\textbf{Nozzle Exit} \\ (1000 psi - 14.7 psi - 1962 K)} & \shortstack{\textbf{50-50 Air} \\ (14.7 psi - 300 °F)} \\ \Xhline{2.5\arrayrulewidth}\textit{C$_{\,2}$H$_{\,4}$} & - & 0.128 \\ \hline\textit{CO} & 1.031 & - \\ \hline\textit{CO$_{\,2}$} & 0.035 & 0.406 \\ \hline\textit{HCl} & 0.417 & - \\ \hline\textit{MgCl$_{\,2}$} & 0.059 & 0.134 \\ \hline\textit{H$_{\,2}$} & 1.455 & - \\ \hline\textit{H$_{\,2}$O} & 0.218 & 0.686 \\ \hline\textit{MgO} & 0.845 & 0.318 \\ \Xhline{2.5\arrayrulewidth}\end{tabular}\captionof{table}{\textit{Mg} exhaust products}\label{tab: neutralized composition}\end{minipage}\end{table}