%%
%% The LaTeX Companion, 3ed
%%
%% Example 7-3-8 on page I-537 in "wrapfig --- Inline floats, wrapping text around a figure".
%%
%% Copyright (C) 2022 Frank Mittelbach
%%
%% It may be distributed and/or modified under the conditions
%% of the LaTeX Project Public License, either version 1.3c
%% of this license or (at your option) any later version.
%%
%% See https://www.latex-project.org/lppl.txt for details.
%%

\documentclass{tlc3exa}
\pagestyle{empty}
\setcounter{page}{6}
\setlength\textwidth{177.0pt}

 \tolerance=3000

%StartShownPreambleCommands
\usepackage{wrapfig}
%StopShownPreambleCommands

\begin{document}
\begin{wraptable}[4]{l}{3cm}  \centering
 \fbox{Wrapped Table}\caption{Caption}\label{T}
\end{wraptable}
Text with a reference to Table~\ref{T}. More text
to fill the paragraph such that the text can
flow around the table. The line-breaking results
are rather ugly in such narrow measure.
\end{document}