Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

I want to create an environment for a list of items, that should look like this for each item:

 Name     Image
 .......  Image
 ..............
 ..............

with this environment \begin{cuitem}{Name} ...... \end{cuitem}

and this definition:

\newenvironment{cuitem}[1]
{
 \textbf{#1} 
 \input{imagefile}
}{
}

where imagefile is a .tex that contains a tikzpicture wrapped inside a \begin{wrapfigure}{r}{0.5\textwidth}.

This works fine if I use only one of these cuitem. As soon as I use more than one they start being rendered into each other with the text overlaying the figure. What is the correct way to ensure the separation of two consecutive environments and is the wrapfigure the best solution for this problem?

share|improve this question

1 Answer 1

up vote 3 down vote accepted

It's hard to wrap around figures when lists are involved. The floatflt package has a workaround which uses a command \fltitem instead of \item.

Try floatflt instead of wrapfig.

share|improve this answer
    
Sorry about the bad formatting; I'm on my iPad. –  Matthew Leingang Nov 25 '10 at 13:22

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.