text wrapping in enumerate environment

1,462 views
Skip to first unread message

Christopher Clark

unread,
Jul 24, 2009, 12:37:53 PM7/24/09
to latexus...@googlegroups.com
Hello!

In a homework I'm writing up, I have a TIkZ picture inside an enumerate environment. I'd like to wrap the text around the TIkZ picture.

I tried surrounding the tikzpicture environment with a wrapfigure environment, but I got the following error:
Package wrapfig Warning: wrapfigure used inside a conflicting environment on input line 51.

Here's the closest thing I can provide for a MWE: I really want the picture to be on the right, and the items to be on the left.

\documentclass{article}
\usepackage{tikz}

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

\begin{document}

% create title
\title{The Title}
\author{The Author}
\maketitle

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

\begin{enumerate}

\item blah blah blah blah blah blah blah blah blah blah blah blah blah
  blah blah.

  \begin{tikzpicture}
  \draw[help lines] (0,0) grid (3,3);
  \end{tikzpicture}

\item blah blah blah blah blah blah blah blah blah blah blah blah blah
  blah blah.

\end{enumerate}

\end{document}

Thanks to everyone for any help!
Chris

jon

unread,
Jul 24, 2009, 3:09:33 PM7/24/09
to LaTeX Users Group
On Jul 24, 12:37 pm, Christopher Clark <ludachrisp...@gmail.com>
wrote:

> In a homework I'm writing up, I have a TIkZ picture inside an enumerate
> environment. I'd like to wrap the text around the TIkZ picture.
>
> I tried surrounding the tikzpicture environment with a wrapfigure
> environment, but I got the following error:
> Package wrapfig Warning: wrapfigure used inside a conflicting environment on
> input line 51.

wrapfig will not work in any sort of list environment; this is a
feature of the package. i think you need to re-think what you're
trying to do. it will work in a two column environment, e.g., so you
could perhaps have the list in one column and the figure in the
other..?

cheers,
jon.
Reply all
Reply to author
Forward
0 new messages