I want to create a document with three tables inside minipage environments. See MWE below.
While I do get three tables side by side, the contents of these tables overlap. One way to get rid of these could be if the longer cells get line break inside a cell.
MWE
\documentclass{article}
\usepackage[demo]{graphicx}
%\usepackage{tcolorbox}
\usepackage{tabularx}
\begin{document}
\fbox{
\begin{minipage}{.3\textwidth}
OT goods for CA-GB
\rule{\textwidth}{0.9pt}
\begin{center}
\begin{tabular}{ lr }
Inj Stacef-1g & 2 \
Disposable syringes-5ml & 5 \
Shi mediwear gown & 5
\end{tabular}
\end{center}
\end{minipage}%
}
\fbox{
\begin{minipage}{.3\textwidth}
OT goods for CA-GB
\rule{\textwidth}{0.9pt}
\begin{center}
\begin{tabular}{ lr }
Inj Stacef-1g & 2 \
Disposable syringes-5ml & 5 \
Shi mediwear gown & 5
\end{tabular}
\end{center}
\end{minipage}%
}
\fbox{
\begin{minipage}{.3\textwidth}
OT goods for CA-GB
\rule{\textwidth}{0.9pt}
\begin{center}
\begin{tabular}{ lr }
Inj Stacef-1g & 2 \
Disposable syringes-5ml & 5 \
Shi mediwear gown & 5
\end{tabular}
\end{center}
\end{minipage}%
}
\end{document}
How can I keep these three tables side by side, yet avoid overlapping? Any workaround or a complete new way to achieve this?


p{2cm}or whatever width you want. This is a duplicate of https://tex.stackexchange.com/questions/332902/my-table-doesnt-fit-what-are-my-options/332903#332903 – David Carlisle Jan 12 '21 at 19:04