Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

wrapfigure conflicts with proof environment

902 views
Skip to first unread message

novis

unread,
Jul 12, 2010, 5:04:16 PM7/12/10
to
Hello,
I'm having trouble putting wrapfigure to work inside proof
environment. For example consider the following code. The figure is
always placed at the end of the section. Is there anyway this can be
fixed? Thanks


#######################
\begin{proof}
bla bla bla
\begin{wrapfigure}{L}{0.5 \textwidth}
\includegraphics[width = 0.2 \textwidth]{name}
\end{wrapfigure}
bla bla bla bla
\end{proof}
########################

Dan Luecking

unread,
Jul 14, 2010, 4:23:04 PM7/14/10
to

The proof environment is implemented as a trivlist
environment. Any list environment sets the paragraph
parameters (things like how much indentation on how
many lines, etc.) However wrapfigure needs to take
control of these and so there is a conflict.

It is not hard to mimic the proof environment:

\noindent\textit{Proof.} bla bla bla


\begin{wrapfigure}{L}{0.5 \textwidth}
\includegraphics[width = 0.2 \textwidth]{name}
\end{wrapfigure}

bla bla bla bla.\qed

As I am not sure what exactly you want this to do, I cannot
say if this will do it. I do believe, howver, that a
wrapfigure environment takes effect on the _next_ available
paragraph, not the current one.

Also, I ran this with the amsart class, the wrapfig
environment and a \rule{0.2\textwidth}{0.1\textwidth}
replacing the \includegraphics. I would not have to
guess if you had included a minimal document wrapper
for your code, and used an appropriately sized \rule
yourself.


Dan
To reply by email, change LookInSig to luecking

0 new messages