# Wrap text around a tabular

I would like to wrap some text around a tabular as the figure shows.

Do I have to use minipage and fix the width of the table, and the width of the text on the left hand?

Isn't there a simpler way?

This is a MWE for David's answer (supplement).

\documentclass{article}
\usepackage{wrapfig,lipsum,booktabs}
%------------------------------------------
\begin{document}
This is where the table goes with text wrapping around it. You may
embed tabular environment inside wraptable environment and customize as you like.
%------------------------------------------
\begin{wraptable}{r}{5.5cm}
\caption{A wrapped table going nicely inside the text.}\label{wrap-tab:1}
\begin{tabular}{ccc}\\\toprule
2 &3 & 5\\  \midrule
2 &3 & 5\\  \midrule
2 &3 & 5\\  \bottomrule
\end{tabular}
\end{wraptable}
%------------------------------------------
{\lipsum[2]
\par
Table~\ref{wrap-tab:1} is a wrapped table.
%------------------------------------------
\end{document}


• Is there a configuration for page-end? In my case when it's at the end of a page, it overflows the page margins instead of going into next page. Dec 10 '17 at 14:34
• @fatih, here's a similar (answered) question.
– Igor
Jul 18 '18 at 19:23
• @Igor, thanks. that seems to be what I was looking for. Jul 19 '18 at 20:32

The wrapfig package provides this functionality.