In the middle of a paragraph (text is justified), I have a 5-row matrix. I've been trying to find a way to wrap the text in the paragraph around the matrix, so there aren't large gaps above and below the text on that line. I have heard of the wrapfig package, but haven't managed to get this to work yet. Below is a sample similar to the code I have so far (I switched from using an array environment to tabular after discovering I may be able to use \begin{wraptable}):
`This is a paragraph containing random text which I want to wrap around the matrix $L$. This is a paragraph containing random text which I want to wrap around the matrix $L$. This is a paragraph containing random text which I want to wrap around the matrix $L$. This is a paragraph containing random text which I want to wrap around the matrix $L$. This is a paragraph containing random text which I want to wrap around the matrix $L$. This is a paragraph containing random text which I want to wrap around the matrix $L$. This is a paragraph containing random text which I want to wrap around the matrix $L$. $L = \left[ \begin{tabular}{ccccc}
$F_1$&$F_2$&$\cdots$&$F_{d-1}$&$F_d$ \\
$P_1$&$0$&$\cdots$&$0$&$0$ \\
$0$&$P_2$&$0$&$\cdots$&$0$ \\
$\vdots$&$\ddots$&$\ddots$&$\ddots$&$\vdots$ \\
$0$&$\cdots$&$0$&$P_{d-1}$&$0$
\end{tabular} \right].$ This is a paragraph containing random text which I want to wrap around the matrix $L$. This is a paragraph containing random text which I want to wrap around the matrix $L$. This is a paragraph containing random text which I want to wrap around the matrix $L$.`
Thank you in advance!
wrapfigure
I have to ask: Is there a reason why you're not willing to use the usual displaymath\[…\]
? You get more whitespace, but on the other hand the matrix is placed exactly where you put it in the paragraph. This could make for a more fluid reading experience in my opinion.bmatrix
environment fromamsmath
/mathtools
instead oftabular
orarray
to typeset matrices