I'm typesetting a book with LaTeX. The text design includes pull quotes, which are supposed to look something like this:
Chicken chicken chicken chicken -------------
chicken chicken chicken chicken CHICKEN
chicken chicken chicken chicken CHICKEN
chicken chicken chicken chicken -------------
chicken chicken chicken chicken chicken chicken
So, wrapfig.sty
seems like it has the basic mechanism I need, and I just need to define an environment that does the horizontal rules, centering, and larger type. The problem is that wrapfigure doesn't seem to want to be nested in an environment definition. If I have this in my text body it works
\begin{wrapfigure}{o}{2in}
\large chicken chicken
\end{wrapfigure}
but if I do this in the prologue
\newenvironment{pullquote}
{\begin{wrapfigure}{o}{2in}\large}
{\end{wrapfigure}}
and then I have
\begin{pullquote}
chicken chicken
\end{pullquote}
I get this error message:
Package wrapfig Warning: Collision between wrapping environments ...
the pull quote is typeset several paragraphs below where I want it (at the approximate location of the next pull quote, it looks like, or else at the end of the document) and the body text doesn't get wrapped around the pull quote. What gives? How do I make this work?