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.

Attempting to use wraptable/wrapfigure from within a bulleted list results in the table going below the list, and not within the list itself.

The text in the bulleted list should be paragraph-sized, but I've shortened them for the purpose of a MWE.

Preamble text
\begin{itemize}
\item Bullet 1
\item Bullet 2
\item Bullet 3

\begin{wraptable}{r}{4.3cm}
\begin{tabular}{|c|c|}
\hline
  &\textbf{YYYYY}\\
\hline
HF/HF &XXXX         \\  
HF/HF &XXXX         \\  
HF/HF &XXXX         \\
\hline 
\end{tabular}
\caption{Caption.}
\label{table: XXYY}
\end{wraptable}

\item Bullet 4
\item Bullet 5
\item Bullet 6
\end{itemize}

Prologue text

Usually the way I've worked around this is to place the wraptable just before \begin{itemize}, but this anchoring only works so far and is undesirable if the table needs to be, say on the second page of a two-page bulleted list.

share|improve this question
add comment

1 Answer 1

up vote 3 down vote accepted

enter image description here

\documentclass{article}
\def\t{Bullet 3 Bullet 3 Bullet 3 Bullet 3 Bullet 3 Bullet 3 }
\usepackage{wrapfig}
\newsavebox\wrbox
\sbox\wrbox{\parbox[t]{\dimexpr\columnwidth-\leftmargini}{%
\mbox{}\par\vspace{-\baselineskip}
\begin{wraptable}{r}{4.3cm}
\begin{tabular}{|c|c|}
\hline
  &\textbf{YYYYY}\\
\hline
HF/HF &XXXX         \\  
HF/HF &XXXX         \\  
HF/HF &XXXX         \\
\hline 
\end{tabular}
\caption{Caption.}
\label{table: XXYY}
\end{wraptable}
\t\t\t\t\t\t\t\t\t\t}}

\begin{document}


Preamble text
\begin{itemize}
\item Bullet 1
\item Bullet 2
\item \usebox\wrbox


\item Bullet 4
\item Bullet 5
\item Bullet 6
\end{itemize}

\noindent X\dotfill X

Prologue text


\end{document}
share|improve this answer
add comment

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.