Graphics, Figures & TablesHow to wrap a list (itemize) around a figure?

Information and discussion about graphics, figures & tables in LaTeX documents.
Post Reply
Montag
Posts: 340
Joined: Wed Jul 15, 2009 9:25 am

How to wrap a list (itemize) around a figure?

Post by Montag »

Hello,

is there a package that can wrap text from an itemized / enumerated list around a figure--preferrably a non-floating figure/table?
Last edited by Montag on Wed Dec 29, 2010 11:14 pm, edited 1 time in total.
OS: Win 7 64-bit LaTeX: MikTeX 2.9 64-bit Editor: TXC 1 RC1

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p

shadgrind
Posts: 140
Joined: Thu Jul 16, 2009 12:39 am

How to wrap a list (itemize) around a figure?

Post by shadgrind »

You can use the picins package. The only problem is that sometimes it can mess up the indentation of the surrounding list, but the \suspend and \resume commands of the mdwlist package let you fix that. For example, here's how a 4-item list can be wrapped around a 4x4 table:

Code: Select all

\documentclass{article}
\usepackage{picins}
\usepackage{mdwlist}
\begin{document}
\noindent Here is the main body of the text. Say some
stuff here.

\begin{enumerate}
\parpic[r]{\begin{tabular}{|c|c|c|c|}
\hline
1 & 2 & 3 & 4\\
\hline
5 & 6 & 7 & 8\\
\hline
9 & 10 & 11 & 12\\
\hline
13 & 14 & 15 & 16\\
\hline
\end{tabular}}
 \item This here is item number 1. It is a good item
  and should be wrapped around a table.
 \item This here is item number 2. It is a good item
  and should be wrapped around a table.
 \item This here is item number 3. It is also a very
  good item but probably doesn't need wrapping.
\suspend{enumerate}
\resume{enumerate}
 \item This here is item number 4. It is also a very
  good item but probably doesn't need wrapping.
\end{enumerate}

\noindent The list has now ended. Say some more stuff
here.
\end{document}
Without the \suspend and \resume commands, the list in the above example would have a different indentation for the fourth item. You may have to play with different possibilities depending on your list.
System: TeX Live 2012, Fedora 18 x86_64, GNU Emacs 24.2
Montag
Posts: 340
Joined: Wed Jul 15, 2009 9:25 am

Re: How to wrap a list (itemize) around a figure?

Post by Montag »

Thank you, yes, that works, but I think I'll stick to another experimental solution I found: two minipages right next to each other. That works too and with some fine tuning, it look quite alright. :)
OS: Win 7 64-bit LaTeX: MikTeX 2.9 64-bit Editor: TXC 1 RC1
bachhavpramod
Posts: 1
Joined: Sun Jul 27, 2014 9:38 pm

Re: How to wrap a list (itemize) around a figure?

Post by bachhavpramod »

How to do this for afigure with caption.
Please reply.
User avatar
Johannes_B
Site Moderator
Posts: 4182
Joined: Thu Nov 01, 2012 4:08 pm

How to wrap a list (itemize) around a figure?

Post by Johannes_B »

It would be better to state your problem/wish in a new topic. You increase your chance for an answer by providing a minimal working example.
The smart way: Calm down and take a deep breath, read posts and provided links attentively, try to understand and ask if necessary.
Post Reply